I’m trying to import the Brick (https://brickschema.org) schema into DGraph using “dgraph live”, having converted the Turtle files to n-quads via rapper, but every tuple with a literal with a language tag throws and error like:
Error while mutating Attr: [http://www.w3.org/2000/01/rdf-schema#label] should have @lang directive in schema to mutate edge: [entity:2470046 attr:"http://www.w3.org/2000/01/rdf-schema#label" value:"Speed" lang:"en" ]
If you’re trying out Dgraph for the first time, well, welcome! You can check out the Tour of Dgraph to familiarize yourself with Dgraph. https://tour.dgraph.io/
Yes, I am well past the tour and am now trying to do something “useful” with building data as a PoC.
So. there are many predicates, with several difference namespaces, using languages tags, but no schema settings for them. I suspect that this question is kind of specific to the Brick schema I’m trying to load, but in general, could you says whether would these all be defined in one’s import file up front? Or is there likely a “base” schema file (for http://www.w3.org/2000/01/rdf-schema) somewhere that I should have loaded first or something like that?
This whole business of RDF schemas and graph databases certainly involves a learning curve