Select All That Has The Same Prefix SPARQL -
this question has answer here:
i return triples subjects have same prefix.
prefix dv: <http://example.org/example_vocabulary:> select distinct * <http://example.org/dataset.example> { ?s ?p ?o . }
you should treat uri string , filter variable based on need. since looking prefix, can use strstarts
. example, along these lines work:
prefix dv: <http://example.org/example_vocabulary> select distinct * <http://example.org/dataset.example> { ?s ?p ?o . filter strstarts(str(?s),str(dv:)) }
you should read on string function.
Comments
Post a Comment