Skip to content

Commit

Permalink
Value of owl:versionIRI should be an IRI. (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff authored Apr 3, 2024
1 parent b88bc8b commit 060e0d2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.apache.jena.ontology.OntProperty;
import org.apache.jena.ontology.Ontology;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.rdf.model.ResourceFactory;
import org.apache.jena.riot.RDFDataMgr;
import org.apache.jena.riot.RDFFormat;
import org.apache.jena.vocabulary.OWL2;
Expand Down Expand Up @@ -62,7 +63,7 @@ public void executeMain() throws Exception {
w5.addProperty(RDFS.label, "W5 Categorization");
w5.addProperty(RDFS.comment, "FHIR W5 categorization is a preliminary classification of the fhir property");
w5.addVersionInfo("FHIR W5 categorization (Preliminary)");
w5.addProperty(OWL2.versionIRI, getOntologyVersionIRI()+"w5.ttl");
w5.addProperty(OWL2.versionIRI, ResourceFactory.createResource(getOntologyVersionIRI()+"w5.ttl"));

// The only way to differentiate predicates from classes is the existence of subclasses -- if something
// has subclasses or is a subclass then it is a class. Otherwise it is a predicate...
Expand Down

0 comments on commit 060e0d2

Please sign in to comment.