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

rule.bnodeproperty.rul Maven / Gradle / Ivy









  
CONSTRUCT {
    [] a sp:ConstraintViolation ;
    sp:arg1 ?s ;
    sp:arg2 ?o ;
    sp:violationPath ?p ;
    sp:violationRoot ?r ;
    sp:violationRoot ?v ;
    rdfs:label "Blank Node property not in OWL RL Profile" .
}
WHERE {
    ?s ?p ?o
    filter isBlank(?p)
    optional {
        ?restr owl:onProperty ?p .
        ?p ?r ?v
        filter (?p != ?v)
        # use case: owl:onProperty [ owl:inverseOf ex:hasFriend ]
        filter ((strstarts(?r, owl:) && ?r != owl:sameAs)  || strstarts(?r, rdfs:))
    } 
}






© 2015 - 2025 Weber Informatics LLC | Privacy Policy