On 3/16/2012 12:28, arterisk wrote:
Hi team,
I have problem with label that have lang @ . When i use sparql query
to select, the lang @ is not appear.
In TopBraid Composer's SPARQL results view you should see flags
indicating international labels. In other SPARQL viewers this
information may not be visible. Change your query to
SELECT ?label ?lang
WHERE {
?subject rdfs:label ?label .
BIND (lang(?label) AS ?lang) .
}
to see them as an explicit column with string values. If you want those
to be formatted into a single column, try
SELECT ?result
WHERE {
?subject rdfs:label ?label .
BIND (lang(?label) AS ?lang) .
BIND (fn:concat(?label, " {@", ?lang, "}") AS ?result) .
}
Regards,
Holger
How to make the lang @ appear when i query ?
For example :
one{@en}
satu{@ms}
when i query -> SELECT ?subject ?object
WHERE {
?subject rdfs:label ?object .
}
it only show :
one
satu
which i want the result to be :
one{@en}
satu{@ms}
appreciate your help.
thanks& regards,
Baitiah
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
Network (EVN), TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en