Do RDF datatypes support facet?

I write predicate in my rdf file and try to define data type for edge facet:

_:14BWH6GmVoL5nTwbVxQJKJDtzv4y5EbTVm <transfer> _:3ETAVt2scYBFkBFksuNDk1i5tDLQ2c4zWR (blocknumber="572792"^^<xs:int>,vin="278.0"^^<xs:double>,vout="4922.66"^^<xs:double>,txhash="0d22df0e76ad820c6cc07535fe5d9ac3e5b247a779f5156d294788b422a5ea9c").

When I used bulk loader to import rdf, the following error occurs:
Connecting to zero at localhost:5080

Processing file (1 out of 2): rdf/btc_plustoken_14BWH.rdf
Processing file (2 out of 2): rdf/btc_plustoken_31odn.rdf
2019/09/29 14:54:30 Expected , or ) after facet. Received ^^<xs:int>
github.com/dgraph-io/dgraph/chunker.parseFacetsRDF
        /tmp/go/src/github.com/dgraph-io/dgraph/chunker/rdf_parser.go:316
github.com/dgraph-io/dgraph/chunker.ParseRDF
        /tmp/go/src/github.com/dgraph-io/dgraph/chunker/rdf_parser.go:194
github.com/dgraph-io/dgraph/chunker.(*rdfChunker).Parse
        /tmp/go/src/github.com/dgraph-io/dgraph/chunker/chunk.go:139
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.(*mapper).run.func1
        /tmp/go/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/mapper.go:142
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1337
could not parse facet
github.com/dgraph-io/dgraph/chunker.ParseRDF
        /tmp/go/src/github.com/dgraph-io/dgraph/chunker/rdf_parser.go:195
github.com/dgraph-io/dgraph/chunker.(*rdfChunker).Parse
        /tmp/go/src/github.com/dgraph-io/dgraph/chunker/chunk.go:139
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.(*mapper).run.func1
        /tmp/go/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/mapper.go:142
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1337
while parsing line "_:31odn4bxF2TgM4pD7m4hdSr1vGMsjh9ugV <transfer> _:1B67M6ABnwJ6nrbWx7RyAEqZiu8qwUZgeV (blocknumber=\"569152\"^^<xs:int>,vin=\"22.0\"^^<xs:double>,vout=\"100.0\"^^<xs:double>,txhash=\"4b806f01c71dba8cb09ba7bcad10921c0f9be142cbea3e0446806629aa7393c3\").\n"
github.com/dgraph-io/dgraph/chunker.(*rdfChunker).Parse
        /tmp/go/src/github.com/dgraph-io/dgraph/chunker/chunk.go:143
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.(*mapper).run.func1
        /tmp/go/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/mapper.go:142
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1337

github.com/dgraph-io/dgraph/x.Check
        /tmp/go/src/github.com/dgraph-io/dgraph/x/error.go:42
github.com/dgraph-io/dgraph/dgraph/cmd/bulk.(*mapper).run.func1
        /tmp/go/src/github.com/dgraph-io/dgraph/dgraph/cmd/bulk/mapper.go:145
runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1337

You can’t use RDF types in Facets.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.