AnantLabs / rdfquery

Automatically exported from code.google.com/p/rdfquery
0 stars 0 forks source link

literals are wrapped in gratuitous double quotes #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. retrieve SKOS labels
2. extract label values
3. resulting strings are wrapped in gratuitous double quotes 

What is the expected output? What do you see instead?

XML: <skos:prefLabel xml:lang="en">mammal</skos:prefLabel>

JS: db.where("?concept skos:prefLabel ?label")[0].label.value;

expected: 'mammal'
actual: '"mammal"'

test case:
https://gist.github.com/3617056

Am I perhaps doing it wrong?

Original issue reported on code.google.com by F...@gmx.net on 4 Sep 2012 at 5:36

GoogleCodeExporter commented 9 years ago
This only occurs when the xml:lang-attribute is specified.

Original comment by preb...@gmail.com on 14 Nov 2012 at 9:47