ament.OntologyBundle.1.0.2.source-code.replaceBlankXsdRestrictions.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 rdf:
prefix xsd:
delete {
?listNode rdf:first ?restrictionBN .
?restrictionBN ?facet ?restrictionValue .
} insert {
?listNode rdf:first ?restrictionIri .
?restrictionIri ?facet ?restrictionValue .
} where {
values ?facet {
xsd:length
xsd:minLength
xsd:maxLength
xsd:minExclusive
xsd:minInclusive
xsd:maxExclusive
xsd:maxInclusive
xsd:pattern
}
?listNode rdf:first ?restrictionBN .
?restrictionBN ?facet ?restrictionValue .
filter ( isBlank(?restrictionBN) && !isBlank(?restrictionValue) )
bind (?_fillNS as ?fillNS)
bind ( str(?restrictionValue) as ?toHash )
bind ( iri(concat(str(?fillNS), "z", sha256(?toHash))) as ?restrictionIri )
}