When running this command: dgraphloader -x -r cl.rdf.gz -s schema.txt
I get errors complaining about all predicates Retrying req: 48. Error: rpc error: code = Unknown desc = failed to apply mutations error: internal error: Input for predicate http://www.w3.org/2002/07/owl#annotatedTarget of type scalar is uid
My dgraph version is v0.7.7-dev and I have already deleted the p and w folders to reset.
Could you please provide me some hint ? The example does not use URI and I don’t understand how to solve this using the documentation.
That is annotatedTarget and annotatedSource should always point to a node in the graph and the annotation itself can be an rdfs:comment.
In the RDF generated by jena, however, annotatedTarget points to both URIs and strings, so that’s why Dgraph outputs the error because we can’t have a predicate that points to both strings and nodes.
thank you for your answer.
Indeed, there are a lot of predicates that point to both strings and nodes and hinder the importing process when using a schema. They were generated with Protege and even a simple ontology such as the Pizza has the same type of errors ?
In OWL, a single predicate can have objects either URI or strings. Is this limitation you mentioned related to Dgraph specifically or I am doing something wrong while converting them to Rdf ?
If axioms have more than two classes, it will first introduce an intermediate blank node.
In my owl file, the number of axiom per class is variable, (some with only one axiom, others with several).
This lack of consistency breaks the logic of some predicates and the schema definition as scalar or uid