Dgraph 1.1.1
Yes.
Windows 10, 16 GB RAM
I am importing a RDF dataset, that contains integer values. The library I am using (dotNetRDF) is using the RDF Type http://www.w3.org/2001/XMLSchema#integer to represent integers and I can see, the RDF Parser has a type mapping for the URI:
But there is no equivalent mapping for the prefixed version xs:integer. I can only see xs:int in the Type Mapping:
If I am using a prefix and use it as xs:integer, an error will be thrown here:
The typeMap in the RDF Parser contains an entry for xs:integer and the import is successful.
Dgraph supports the RDF N-Quad format as input and a subset of RDF types. You can see the list of supported RDF types and their corresponding Dgraph schema types here: https://docs.dgraph.io/mutations/#rdf-types. In this case, I recommend modifying the dataset to use xs:int to import it into Dgraph.
@danielmai Thanks for the fast reply! Yes, I am using the complete URI for the type, so it's not a problem. But why support the full URI http://www.w3.org/2001/XMLSchema#integer in the typeMapping and not a prefixed one as xs:integer? I was just surprised it is missing, that's why I filed the bug.
If you don't think it is a bug, then please feel free to close.
http://www.w3.org/2001/XMLSchema#integer is supported by the RDF parser, but it is missing in the documentation as far as I can see. Maybe it's sufficient to update the documentation. But still dotNetRDF for example formats an integer the way above and prefixes it as xs:integer.
Sounds like xs:integer valid addition to both the type map and the docs.