Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Merged lod/lodplatform into master
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-programador committed Oct 6, 2015
2 parents 1cc61e6 + 1f1d601 commit 07f2930
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,15 @@ private void processRelationModeling()throws Exception {
.addProperty(RR.subjectMap,
r2rmlModel.createResource()
.addProperty(RR.template, this.baseURI + (String)entityProp1[0] + "{" + entity1 + "_ID}")
)
.addProperty(RR.predicateObjectMap,
);
//fixing problem with URI without LOD URI name conventions
Property vocab = (vocProperty.split(prefixes.get(vocPrefix)[0]).length > 1) ?
ResourceFactory.createProperty( prefixes.get(vocPrefix)[0],
vocProperty.split(prefixes.get(vocPrefix)[0])[1] )
:ResourceFactory.createProperty(vocProperty);
resource.addProperty(RR.predicateObjectMap,
r2rmlModel.createResource()
.addProperty(RR.predicate,
ResourceFactory.createProperty( prefixes.get(vocPrefix)[0],
vocProperty.split(prefixes.get(vocPrefix)[0])[1] )
)
.addProperty(RR.predicate, vocab)
.addProperty(RR.objectMap,
r2rmlModel.createResource()
.addProperty(RR.template, this.baseURI + (String)entityProp2[0] + "{" + entity2 + "_ID}")
Expand Down

0 comments on commit 07f2930

Please sign in to comment.