-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. First R2RML binary available, generated using maven assembly plugin 2. Spring context file can be passed as a command-line argument 3. Catch exception and inform user when input model does not exist
- Loading branch information
Showing
13 changed files
with
233 additions
and
76 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
src/main/resources/dspace/dcterms-empty.rdf → dspace/dcterms-empty.rdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE rdf:RDF> | ||
<rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:dcam="http://purl.org/dc/dcam/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> | ||
|
||
</rdf:RDF> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE rdf:RDF> | ||
<rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:dcam="http://purl.org/dc/dcam/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"> | ||
|
||
</rdf:RDF> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@prefix map: <#>. | ||
@prefix rr: <http://www.w3.org/ns/r2rml#>. | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. | ||
@prefix owl: <http://www.w3.org/2002/07/owl#>. | ||
@prefix dc: <http://purl.org/dc/elements/1.1/>. | ||
@prefix dcterms: <http://purl.org/dc/terms/>. | ||
@prefix dctype: <http://purl.org/dc/dcmitype/>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
|
||
map:groups | ||
rr:logicalTable [ rr:tableName '"epersongroup"'; ]; | ||
rr:subjectMap [ | ||
rr:template 'http://data.example.org/repository/group/{"eperson_group_id"}'; | ||
rr:class foaf:Group; | ||
]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate foaf:name; | ||
rr:objectMap [ rr:template '{"name"}' ; | ||
rr:termType rr:Literal; ] | ||
]. | ||
|
||
map:persons | ||
rr:logicalTable [ rr:tableName '"eperson"'; ]; | ||
rr:subjectMap [ | ||
rr:template 'http://data.example.org/repository/person/{"eperson_id"}'; | ||
rr:class foaf:Person; | ||
]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate foaf:name; | ||
rr:objectMap [ rr:template '{"firstname"} {"lastname"}' ; | ||
rr:termType rr:Literal; ] | ||
]. | ||
|
||
map:persons-groups | ||
rr:logicalTable [ rr:tableName '"epersongroup2eperson"'; ]; | ||
rr:subjectMap [ | ||
rr:template 'http://data.example.org/repository/group/{"eperson_group_id"}'; | ||
]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate foaf:member; | ||
rr:objectMap [ rr:template 'http://data.example.org/repository/person/{"eperson_id"}' ; | ||
rr:termType rr:IRI; ] | ||
]. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo off | ||
echo This is R2RML Parser | ||
|
||
java -cp "./*;./lib/*;" gr.ekt.r2rml.beans.Main %1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
echo "This is R2RML Parser" | ||
|
||
java -cp "./*;./lib/*;" gr.ekt.r2rml.beans.Main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,64 @@ | ||
#---------------------------------------------------------------# | ||
#-------------------- General configuration --------------------# | ||
#---------------------------------------------------------------# | ||
mapping.file=src/main/resources/dspace/dspace-mapping.rdf | ||
|
||
# Valid types are RDF/XML, N-TRIPLE, TURTLE, TTL, N3. | ||
mapping.file.type=TURTLE | ||
|
||
default.namespace=http://example.com/base | ||
|
||
# Uncomment the following to log inserted triples | ||
default.verbose=false | ||
|
||
# File where last run is logged | ||
default.log=status.rdf | ||
|
||
#---------------------------------------------------------------# | ||
#------------------------- Input Model -------------------------# | ||
#---------------------------------------------------------------# | ||
input.model=src/main/resources/dspace/dcterms-empty.rdf | ||
|
||
# Valid types are RDF/XML, N-TRIPLE, TURTLE, TTL, N3. | ||
#input.model.type=TURTLE | ||
input.model.type=RDF/XML | ||
|
||
#---------------------------------------------------------------# | ||
#-------------------- Database connectivity --------------------# | ||
#---------------------------------------------------------------# | ||
#db.host=127.0.0.1 | ||
#db.port=3306 | ||
#db.name=sakila | ||
#db.login=root | ||
#db.password=1234 | ||
#db.driver=com.mysql.jdbc.Driver | ||
|
||
db.host=localhost | ||
db.port=5432 | ||
db.name=dspace3 | ||
db.login=postgres | ||
db.password=postgres | ||
db.driver=org.postgresql.Driver | ||
|
||
#---------------------------------------------------------------# | ||
#------------------ Jena Database Output ----------------------# | ||
#---------------------------------------------------------------# | ||
jena.db.host=127.0.0.1 | ||
jena.db.port=3306 | ||
jena.db.name=jena | ||
jena.db.login=root | ||
jena.db.password=1234 | ||
jena.db.driver=com.mysql.jdbc.Driver | ||
|
||
# Store the resulting triples in the database | ||
jena.storeOutputModelInDatabase=false | ||
# Clean database on startup is activated only when the output model is stored in the database, i.e. jena.storeOutputModelInDatabase is true | ||
jena.cleanDbOnStartup=false | ||
|
||
#---------------------------------------------------------------# | ||
#---------------------- Jena File Output -----------------------# | ||
#---------------------------------------------------------------# | ||
|
||
#in case we will output the resulting triples in a file. This matters if property jena.storeOutputModelInDatabase is false | ||
jena.destinationFileName=dump3.rdf | ||
jena.destinationFileSyntax=N3 | ||
#---------------------------------------------------------------# | ||
#-------------------- General configuration --------------------# | ||
#---------------------------------------------------------------# | ||
mapping.file=dspace/epersons-mapping.rdf | ||
|
||
# Valid types are RDF/XML, N-TRIPLE, TURTLE, TTL, N3. | ||
mapping.file.type=TURTLE | ||
|
||
default.namespace=http://example.com/base | ||
|
||
# Uncomment the following to log inserted triples | ||
default.verbose=false | ||
|
||
# File where last run is logged | ||
default.log=status.rdf | ||
|
||
#---------------------------------------------------------------# | ||
#------------------------- Input Model -------------------------# | ||
#---------------------------------------------------------------# | ||
input.model=dspace/dcterms-empty.rdf | ||
|
||
# Valid types are RDF/XML, N-TRIPLE, TURTLE, TTL, N3. | ||
#input.model.type=TURTLE | ||
input.model.type=RDF/XML | ||
|
||
#---------------------------------------------------------------# | ||
#-------------------- Database connectivity --------------------# | ||
#---------------------------------------------------------------# | ||
#db.host=127.0.0.1 | ||
#db.port=3306 | ||
#db.name=sakila | ||
#db.login=root | ||
#db.password=1234 | ||
#db.driver=com.mysql.jdbc.Driver | ||
|
||
db.host=localhost | ||
db.port=5432 | ||
db.name=dspace3 | ||
db.login=postgres | ||
db.password=postgres | ||
db.driver=org.postgresql.Driver | ||
|
||
#---------------------------------------------------------------# | ||
#------------------ Jena Database Output ----------------------# | ||
#---------------------------------------------------------------# | ||
jena.db.host=127.0.0.1 | ||
jena.db.port=3306 | ||
jena.db.name=jena | ||
jena.db.login=root | ||
jena.db.password=1234 | ||
jena.db.driver=com.mysql.jdbc.Driver | ||
|
||
# Store the resulting triples in the database | ||
jena.storeOutputModelInDatabase=false | ||
# Clean database on startup is activated only when the output model is stored in the database, i.e. jena.storeOutputModelInDatabase is true | ||
jena.cleanDbOnStartup=false | ||
|
||
#---------------------------------------------------------------# | ||
#---------------------- Jena File Output -----------------------# | ||
#---------------------------------------------------------------# | ||
|
||
#in case we will output the resulting triples in a file. This matters if property jena.storeOutputModelInDatabase is false | ||
jena.destinationFileName=dump3-epersons.rdf | ||
jena.destinationFileSyntax=N3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<assembly xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd"> | ||
<id>build</id> | ||
|
||
<formats> | ||
<format>dir</format> | ||
</formats> | ||
<includeBaseDirectory>false</includeBaseDirectory> | ||
|
||
<fileSets> | ||
<fileSet> | ||
<outputDirectory>.</outputDirectory> | ||
<includes> | ||
<include>dspace/**</include> | ||
<include>r2rml-parser.bat</include> | ||
<include>r2rml-parser.sh</include> | ||
</includes> | ||
<excludes> | ||
<exclude>src/**</exclude> | ||
</excludes> | ||
</fileSet> | ||
</fileSets> | ||
|
||
<files> | ||
<file> | ||
<source>src/main/resources/app-context.xml</source> | ||
<outputDirectory>.</outputDirectory> | ||
<destName>app-context.xml</destName> | ||
<filtered>false</filtered> | ||
</file> | ||
<file> | ||
<source>src/main/resources/log4j.xml</source> | ||
<outputDirectory>.</outputDirectory> | ||
<destName>log4j.xml</destName> | ||
<filtered>false</filtered> | ||
</file> | ||
<file> | ||
<source>r2rml.properties</source> | ||
<outputDirectory>.</outputDirectory> | ||
<destName>r2rml.properties</destName> | ||
<filtered>false</filtered> | ||
</file> | ||
</files> | ||
|
||
<dependencySets> | ||
<dependencySet> | ||
<outputDirectory>lib</outputDirectory> | ||
</dependencySet> | ||
</dependencySets> | ||
|
||
</assembly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters