ament.OntologyBundle.1.0.2.source-code.replaceBlankUnionDomainAndRange.update Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of OntologyBundle Show documentation
Show all versions of OntologyBundle Show documentation
A Gradle plugin to package (or bundle) an OWL ontology in a jar
to make it easy to use in Java-based software projects.
Copyright © 2023, 2024 RTX BBN Technologies
prefix owl:
delete {
?s ?p ?unionOrIntersectionCls .
?unionOrIntersectionCls a owl:Class ;
?unionOrIntersectionOf ?clsList .
} insert {
?s ?p ?newUnionOrIntersectionCls .
?newUnionOrIntersectionCls a owl:Class ;
?unionOrIntersectionOf ?clsList .
} where {
values ?unionOrIntersectionOf {
owl:unionOf
owl:intersectionOf
}
?s ?p ?unionOrIntersectionCls .
?unionOrIntersectionCls ?unionOrIntersectionOf ?clsList .
optional { ?unionOrIntersectionCls a owl:Class . }
filter ( isBlank(?unionOrIntersectionCls) && !isBlank(?clsList) )
bind (?_fillNS as ?fillNS)
bind ( concat(str(?unionOrIntersectionOf), "\n", str(?clsList)) as ?toHash )
bind ( iri(concat(str(?fillNS), "z", sha256(?toHash))) as ?newUnionOrIntersectionCls )
}