lov
lov copied to clipboard
Datatype Query
add restriction on values:
PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema# PREFIX dct: http://purl.org/dc/terms/ PREFIX owl: http://www.w3.org/2002/07/owl# PREFIX xsd: http://www.w3.org/2001/XMLSchema#
SELECT distinct ?datatype { ?datatype rdf:type owl:Restriction; owl:onProperty ?property; ?valuesFrom ?value . FILTER (isURI(?datatype)) FILTER regex (str(?value), STR(xsd:)) FILTER (?valuesFrom = owl:allValuesFrom || ?valuesFrom = owl:someValuesFrom) }