gotjoshua
(gotjoshua)
July 29, 2020, 3:25pm
1
Is there a meaninful / functional difference between:
_:luke <name> "Łukasz"@pl .
and
_:luke <name@pl> "Łukasz" .
also is setting multiple languages on the same edge possible like this?
_:luke <name> "Luke Friendless"@en "Łukasz Samotny"@pl .
MichelDiz
(Michel Diz)
July 29, 2020, 4:02pm
2
That’s not possible. In the lang part, Dgraph follows closely to the W3C standard. And I don’t think we would change this behavior soon.
This format above doesn’t exist in the RDF standard as far as I know.
Also, this last example is really out of RDF syntax scope. It has to be like:
_:luke <name> "Luke Friendless"@en .
_:luke <name> "Łukasz Samotny"@pl .
BTW, our parser works with very simple n-triples format. Things like turtle RDF and other standards won’t work.
gotjoshua
(gotjoshua)
July 29, 2020, 4:08pm
3
I don’t know anything about the standard, but
from my tests this syntax does seems to work:
_:luke <name@pl> "Łukasz" .
and for the multi lang setting in one line, my test confirms that it is not possible.
So I half concur ; )
MichelDiz
(Michel Diz)
July 29, 2020, 4:13pm
4
It does work cuz it is just a predicate the “at” will be converted to lang, but that isn’t RDF compliant. You won’t see this format in an exported RDF for example. This is like “bug feature”.
But the multi values in a single line won’t work at all.
2 Likes