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

Commit

Permalink
Changed name of property graph.
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff committed Aug 9, 2017
1 parent 99ec66a commit 27c819f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ organization := "org.renci"

name := "ncit-utils"

version := "0.2"
version := "0.2.1"

licenses := Seq("BSD-3-Clause" -> url("https://opensource.org/licenses/BSD-3-Clause"))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import org.semanticweb.elk.owlapi.ElkReasonerFactory
import org.semanticweb.owlapi.apibinding.OWLManager
import org.semanticweb.owlapi.formats.RioTurtleDocumentFormat
import org.semanticweb.owlapi.model.AddImport
import org.semanticweb.owlapi.model.AddOntologyAnnotation
import org.semanticweb.owlapi.model.IRI
import org.semanticweb.owlapi.model.OWLAxiom
import org.semanticweb.owlapi.model.OWLClass
Expand All @@ -29,8 +30,6 @@ object MaterializePropertyExpressions extends Command(description = "Materialize
var outputFile = arg[File](name = "outfile")

val prefix = "http://github.com/NCI-Thesaurus/thesaurus-obo-edition"
val onProperty = AnnotationProperty(s"$prefix/onProperty")
val someValuesFrom = AnnotationProperty(s"$prefix/someValuesFrom")

def run(): Unit = {
val manager = OWLManager.createOWLOntologyManager()
Expand All @@ -43,7 +42,8 @@ object MaterializePropertyExpressions extends Command(description = "Materialize
val clsToRestriction = mappings.toMap
inferAxioms(propertyAxioms, ontology, clsToRestriction)
}
val expressionsOntology = manager.createOntology(axioms.asJava, IRI.create(s"$prefix/expressions"))
val expressionsOntology = manager.createOntology(axioms.asJava, IRI.create(s"$prefix/property-graph"))
new AddOntologyAnnotation(expressionsOntology, Annotation(RDFSComment, "This graph provides direct property relationships between classes to support more convenient querying of existential property restrictions. These relationships are derived from the OWL semantics of the main ontology, but are not compatible from an OWL perspective."))
manager.saveOntology(expressionsOntology, new RioTurtleDocumentFormat(), IRI.create(outputFile))
}

Expand Down

0 comments on commit 27c819f

Please sign in to comment.