All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ament.OntologyBundle.1.0.2.source-code.replaceBlankDatatype.update Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.0.3
Show newest version
prefix owl:  
prefix rdfs: 

delete {
	?blankDatatypeBearer ?incomingPredicate ?blankDatatype .
	?blankDatatype a rdfs:Datatype ;
		owl:onDatatype ?baseDatatype ;
		owl:withRestrictions ?restrictionsList ;
		rdfs:isDefinedBy ?isDefinedBy .
} insert {
	?blankDatatypeBearer ?incomingPredicate ?datatypeIri .
	?datatypeIri a rdfs:Datatype ;
		owl:onDatatype ?baseDatatype ;
		owl:withRestrictions ?restrictionsList ;
		rdfs:isDefinedBy ?isDefinedBy .
} where {
	values ?incomingPredicate {
		owl:equivalentClass
	}
	?blankDatatypeBearer ?incomingPredicate ?blankDatatype .
	?blankDatatype a rdfs:Datatype ;
		owl:onDatatype ?baseDatatype ;
		owl:withRestrictions ?restrictionsList .
	optional { ?blankDatatype rdfs:isDefinedBy ?isDefinedBy . }
	filter ( isBlank(?blankDatatype) && !isBlank(?baseDatatype) && !isBlank(?restrictionsList) )
	bind (?_fillNS as ?fillNS)
	bind ( concat(str(?baseDatatype), "\n", str(?restrictionsList)) as ?toHash )
	bind ( iri(concat(str(?fillNS), "z", sha256(?toHash))) as ?datatypeIri )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy