Using condition in SPARQL query
问题 I have a SPARQL query which is like this- SELECT ?informationPath ?businessEntitylabel ?path ?sourced ?mastered ?delivered WHERE { ?businessEntity dd:hasPropertyPath ?informationPath . ?businessEntity rdfs:label ?businessEntitylabel . ?informationPath dd:hasPath ?path . OPTIONAL { ?informationPath a dd:SourcedData . BIND("Yes" as ?sourced) } OPTIONAL { ?informationPath a dd:MasteredData . BIND("Yes" as ?mastered) } OPTIONAL { ?informationPath a dd:DeliveredData . BIND("Yes" as ?delivered) } }