7
Daten:SPARQL-Abfrage: Wie bekomme ich nur ein Literal oder eine Zeichenfolge als Ergebnis?
<untitled-ontology-5:OperationName rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
Adhesive Curing
</untitled-ontology-5:OperationName>
SPARQL Abfrage:
PREFIX rdf:<http://wwww.semanticweb.org/ontologies/2012/7/9/untitled-ontology-5#>
SELECT ?object
WHERE { ?subject rdf:OperationName ?object .
}
Ergebnis:
Adhesive Curing^^http://www.w3.org/2001/XMLSchema#string
Meine Frage:
Das Ergebnis der SPARQL-Abfrage ist nicht das Ergebnis, was ich wollte. Das richtige Ergebnis sollte nur den Literal/String ohne den URI-Teil enthalten. Ich möchte das folgende Ergebnis erstellen:
Proper Ergebnis:
Adhesive Curing