Hi, i need help a bit here.
I have been trying hours without figuring out how to import rdf with URI using a schema.
I want to import this owl-ontology https://raw.githubusercontent.com/obophenotype/cell-ontology/master/cl.owl
First I convert it to nquad using Jena Riot
riot --stream=nq --compress cl.owl > cl.rdf.gz
cl.rdf seems to be in the right format:
<http://purl.obolibrary.org/obo/cl.owl> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Ontology> .
<http://purl.obolibrary.org/obo/cl.owl> <http://www.w3.org/2002/07/owl#versionIRI> <http://purl.obolibrary.org/obo/cl/releases/2017-04-14/cl.owl> .
<http://purl.obolibrary.org/obo/cl.owl> <http://www.w3.org/2002/07/owl#imports> <http://purl.obolibrary.org/obo/cl/imports/pato_import.owl> .
Using a small custom-made script, I write a list of all predicates into a schema:
<http://www.geneontology.org/formats/oboInOwl#hasNarrowSynonym>: uid .
<http://www.w3.org/2002/07/owl#annotatedSource>: uid .
<http://www.w3.org/2002/07/owl#annotatedTarget>: uid .
<http://www.w3.org/2002/07/owl#equivalentClass>: uid .
<http://www.w3.org/2002/07/owl#complementOf>: uid .
<http://purl.org/dc/elements/1.1/creator>: uid .
<_xid_>: string @index(exact) .
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.