prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix owl: <http://www.w3.org/2002/07/owl#>
+ prefix xhtmlv: <http://www.w3.org/1999/xhtml/vocab#>
select ?subject ?predicate ?object
where {
?subject ?predicate ?object
OPTIONAL { ?subject a ?class }
FILTER(!bound(?class))
+ FILTER(?predicate != xhtmlv:stylesheet)
}
"""
query = RDF.SPARQLQuery(body)