I need to search items in two graphs with the same string, but different language codes ("xx"@en and "xx"@eng - from wordnet). obviously "xx"@en is not equal to "xx"@eng.
it can be done with (prefix nlp suitably defined):
select * where {
?a nlp:lemma ?as .
?b rdfs:label ?bs .
filter (str(?as)=str(?bs)) .
# more code using ?a and ?b
}
However, this query takes too long and is wasteful. It should be possible to do something like:
?a nlp:lemma ?s .
?b rdfs:label ?s .
but i cannot see how - short of manually change all @eng
in the wordnet triples to @en
- which i would rather not do.
any solution? thank you!