I'm in a tricky situation and I can't seem to find any information in the MarkLogic documentation about it. The problem I'm having is that I am using triples from different sources and they are using different ways of describing string objects (some are multilingual):
<http://subject1> <http://www.w3.org/2004/02/skos/core#prefLabel> "Object"^^xs:string .
<http://subject2> <http://www.w3.org/2004/02/skos/core#prefLabel> "Object"@en .
So when I do a
cts:triples((), sem:iri("http://www.w3.org/2004/02/skos/core#prefLabel"), "Object")
then I only get the first triple.
The question is, how do I make it ignore the language and return the two triples (if possible, without using sparql)?
Interestingly enough using "Object" like above didn't return results at all for me (using MarkLogic 7.0-4.1 on MacOS). Instead I had to use:
Here some longer piece of code that you can run in QConsole (run it against an empty database!) to better understand what is going on:
HTH!