RDF Parser: Type Mapping for type xs:integer is missing #4460
Labels
area/documentation
Documentation related issues.
area/mutations
Related to mutations JSON or RDF.
area/types
Issues related to the type system.
kind/bug
Something is broken.
priority/P2
Somehow important but would not block a release.
status/accepted
We accept to investigate/work on it.
What version of Dgraph are you using?
Dgraph 1.1.1
Have you tried reproducing the issue with the latest release?
Yes.
What is the hardware spec (RAM, OS)?
Windows 10, 16 GB RAM
Steps to reproduce the issue (command/config used to run Dgraph).
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:https://github.com/dgraph-io/dgraph/blob/de8ef8baf6a7d4b0761e7d2f4c05854fc0de946c/chunker/rdf_parser.go#L364
But there is no equivalent mapping for the prefixed version
xs:integer
. I can only seexs:int
in the Type Mapping:https://github.com/dgraph-io/dgraph/blob/de8ef8baf6a7d4b0761e7d2f4c05854fc0de946c/chunker/rdf_parser.go#L352
If I am using a prefix and use it as
xs:integer
, an error will be thrown here:https://github.com/dgraph-io/dgraph/blob/de8ef8baf6a7d4b0761e7d2f4c05854fc0de946c/chunker/rdf_parser.go#L155
Expected behaviour and actual result.
The
typeMap
in the RDF Parser contains an entry forxs:integer
and the import is successful.The text was updated successfully, but these errors were encountered: