Import RDF

What I want to do

I’m trying to create a schema that is based on, or ideally identical to, the FIBO ontology. See GitHub - edmcouncil/fibo: The Financial Industry Business Ontology (FIBO) defines the sets of things that are of interest in financial business applications and the ways that those things can relate to one another. In this way, FIBO can give meaning to any data (e.g., spreadsheets, relational databases, XML documents) that describe the business of finance.

What I did

I understand that Dgraph requires RDF input to be in a specific format, so I tried converting some FIBO files using EasyRdf - Converter to N-Triples.

I then tried copy and pasting various FIBO files, converted to N-Triples, into the Ratel UI | Schema | Bulk Edit view, which then always failed with an error that was often so long that, if there was anything useful in the error, it was not possible to read.

For example, I pasted the following into the Buld Edit view:

<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Ontology> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2000/01/rdf-schema#label> "Metadata for the EDMC-FIBO Specification" .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://purl.org/dc/terms/abstract> "This is the metadata ontology used to describe the FIBO Specification." .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://purl.org/dc/terms/issued> "2020-12-28T18:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://purl.org/dc/terms/license> "http://opensource.org/licenses/MIT"^^<http://www.w3.org/2001/XMLSchema#anyURI> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.omg.org/techprocess/ab/SpecificationMetadata/contentLanguage> "https://www.w3.org/TR/owl2-quick-reference"^^<http://www.w3.org/2001/XMLSchema#anyURI> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.omg.org/techprocess/ab/SpecificationMetadata/copyright> "Copyright (c) 2018-2020 EDM Council, Inc." .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.omg.org/techprocess/ab/SpecificationMetadata/copyright> "Copyright (c) 2018-2020 Object Management Group, Inc." .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.omg.org/techprocess/ab/SpecificationMetadata/fileAbbreviation> "fibo-spec" .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.omg.org/techprocess/ab/SpecificationMetadata/filename> "MetadataFIBO.rdf" .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/BE/MetadataBE/> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/BP/MetadataBP/> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/CAE/MetadataCAE/> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/DER/MetadataDER/> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/FBC/MetadataFBC/> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/FND/MetadataFND/> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/IND/MetadataIND/> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/LOAN/MetadataLOAN/> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/MD/MetadataMD/> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/SEC/MetadataSEC/> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#versionIRI> <https://spec.edmcouncil.org/fibo/ontology/20201201/MetadataFIBO/> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#NamedIndividual> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.omg.org/techprocess/ab/SpecificationMetadata/Specification> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.w3.org/2000/01/rdf-schema#label> "Financial Industry Business Ontology" .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/abstract> "The Financial Industry Business Ontology (FIBO) is a collaborative effort among industry practitioners, semantic technology experts and information scientists to standardize the language used to precisely define the terms, conditions, and characteristics of financial instruments; the legal and relationship structure of business entities; the content and time dimensions of market data; and the legal obligations and process aspects of corporate actions.  The definitions and relationships that comprise the FIBO specification have been modularized into a number of domains, which in turn include a number of modules, each of which is further modularized into one or more constituent ontologies. \n\nThe FIBO ontologies are available as OWL 2 ontologies from the EDM Council site, and as UML models that are compliant with the Semantics for Information Modeling and Federation (SMIF) draft specification, and are linked at https://spec.edmcouncil.org/fibo/ontology/ ." .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/BE/MetadataBE/BEDomain> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/BP/MetadataBP/BPDomain> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/CAE/MetadataCAE/CAEDomain> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/DER/MetadataDER/DERDomain> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/FBC/MetadataFBC/FBCDomain> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/FND/MetadataFND/FNDDomain> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/IND/MetadataIND/INDDomain> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/LOAN/MetadataLOAN/LOANDomain> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/MD/MetadataMD/MDDomain> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/SEC/MetadataSEC/SECDomain> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/issued> "2020-12-28T18:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/license> "http://opensource.org/licenses/MIT"^^<http://www.w3.org/2001/XMLSchema#anyURI> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/title> "Financial Industry Business Ontology (FIBO)" .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/copyright> "Copyright (c) 2013-2020 EDM Council, Inc." .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/copyright> "Copyright (c) 2013-2020 Object Management Group, Inc." .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/dependsOn> "http://www.omg.org/techprocess/ab/SpecificationMetadata/"^^<http://www.w3.org/2001/XMLSchema#anyURI> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/dependsOn> "https://www.omg.org/spec/LCC/"^^<http://www.w3.org/2001/XMLSchema#anyURI> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/keyword> "FIBO" .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/keyword> "Financial Industry Business Ontology" .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/specificationAbbreviation> "FIBO" .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/specificationURL> "https://spec.edmcouncil.org/fibo/"^^<http://www.w3.org/2001/XMLSchema#anyURI> .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/technologyArea> "formal semantics" .
<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/topicArea> "finance" .

Which results in the following error output is:

Could not alter schema: while lexing <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Ontology> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2000/01/rdf-schema#label> "Metadata for the EDMC-FIBO Specification" . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://purl.org/dc/terms/abstract> "This is the metadata ontology used to describe the FIBO Specification." . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://purl.org/dc/terms/issued> "2020-12-28T18:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://purl.org/dc/terms/license> "http://opensource.org/licenses/MIT"^^<http://www.w3.org/2001/XMLSchema#anyURI> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.omg.org/techprocess/ab/SpecificationMetadata/contentLanguage> "https://www.w3.org/TR/owl2-quick-reference"^^<http://www.w3.org/2001/XMLSchema#anyURI> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.omg.org/techprocess/ab/SpecificationMetadata/copyright> "Copyright (c) 2018-2020 EDM Council, Inc." . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.omg.org/techprocess/ab/SpecificationMetadata/copyright> "Copyright (c) 2018-2020 Object Management Group, Inc." . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.omg.org/techprocess/ab/SpecificationMetadata/fileAbbreviation> "fibo-spec" . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.omg.org/techprocess/ab/SpecificationMetadata/filename> "MetadataFIBO.rdf" . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/BE/MetadataBE/> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/BP/MetadataBP/> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/CAE/MetadataCAE/> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/DER/MetadataDER/> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/FBC/MetadataFBC/> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/FND/MetadataFND/> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/IND/MetadataIND/> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/LOAN/MetadataLOAN/> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/MD/MetadataMD/> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#imports> <https://spec.edmcouncil.org/fibo/ontology/SEC/MetadataSEC/> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/> <http://www.w3.org/2002/07/owl#versionIRI> <https://spec.edmcouncil.org/fibo/ontology/20201201/MetadataFIBO/> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#NamedIndividual> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.omg.org/techprocess/ab/SpecificationMetadata/Specification> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.w3.org/2000/01/rdf-schema#label> "Financial Industry Business Ontology" . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/abstract> "The Financial Industry Business Ontology (FIBO) is a collaborative effort among industry practitioners, semantic technology experts and information scientists to standardize the language used to precisely define the terms, conditions, and characteristics of financial instruments; the legal and relationship structure of business entities; the content and time dimensions of market data; and the legal obligations and process aspects of corporate actions. The definitions and relationships that comprise the FIBO specification have been modularized into a number of domains, which in turn include a number of modules, each of which is further modularized into one or more constituent ontologies. \n\nThe FIBO ontologies are available as OWL 2 ontologies from the EDM Council site, and as UML models that are compliant with the Semantics for Information Modeling and Federation (SMIF) draft specification, and are linked at https://spec.edmcouncil.org/fibo/ontology/ ." . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/BE/MetadataBE/BEDomain> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/BP/MetadataBP/BPDomain> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/CAE/MetadataCAE/CAEDomain> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/DER/MetadataDER/DERDomain> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/FBC/MetadataFBC/FBCDomain> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/FND/MetadataFND/FNDDomain> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/IND/MetadataIND/INDDomain> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/LOAN/MetadataLOAN/LOANDomain> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/MD/MetadataMD/MDDomain> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/hasPart> <https://spec.edmcouncil.org/fibo/ontology/SEC/MetadataSEC/SECDomain> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/issued> "2020-12-28T18:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/license> "http://opensource.org/licenses/MIT"^^<http://www.w3.org/2001/XMLSchema#anyURI> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://purl.org/dc/terms/title> "Financial Industry Business Ontology (FIBO)" . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/copyright> "Copyright (c) 2013-2020 EDM Council, Inc." . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/copyright> "Copyright (c) 2013-2020 Object Management Group, Inc." . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/dependsOn> "http://www.omg.org/techprocess/ab/SpecificationMetadata/"^^<http://www.w3.org/2001/XMLSchema#anyURI> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/dependsOn> "https://www.omg.org/spec/LCC/"^^<http://www.w3.org/2001/XMLSchema#anyURI> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/keyword> "FIBO" . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/keyword> "Financial Industry Business Ontology" . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/specificationAbbreviation> "FIBO" . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/specificationURL> "https://spec.edmcouncil.org/fibo/"^^<http://www.w3.org/2001/XMLSchema#anyURI> . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/technologyArea> "formal semantics" . <https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/FIBOSpecification> <http://www.omg.org/techprocess/ab/SpecificationMetadata/topicArea> "finance" . at line 2 column 103: Invalid schema. Unexpected "

Dgraph metadata

Version

dgraph version

Dgraph version   : v21.03.0
Dgraph codename  : rocket
Dgraph SHA-256   : b4e4c77011e2938e9da197395dbce91d0c6ebb83d383b190f5b70201836a773f
Commit SHA-1     : a77bbe8ae
Commit timestamp : 2021-04-07 21:36:38 +0530
Branch           : HEAD
Go version       : go1.16.2
jemalloc enabled : true

Questions

  • Can you advise on any tools and/or techniques for bulk converting of Owl to the Dgraph preferred format?

Feature requests and recommendations

  • More focus on Semantic web support. There is a lot of work already done in regards to Owl, RDF, etc. Opening up so that these formats can more easily be imported will also likely expand adoption of Dgraph. For example, allowing the import of OWL.
  • From other forum posts it seems that RATEL has a limitation on the size of the data that can be imported. Perhaps make this limitation (a) more obvious, (b) configuration and (c) avoidable by, say, providing a file upload feature, or URL import feature.
  • More helpful error messages - The RDF error message was too lengthy and thereby not so easy to find anything helpful in it.

Dgraph doesn’t support this RDF syntax. It has an “RDF-D” (Dgraph RDF). You have to do several changes to some exported RDF from third parties.

You will find some topics with details about the RDF syntax. Including some feature, improvement requests tickets. Just search for the “RDF” tag here.

Owl in general has a complex syntax. You have to master DQL first to understand how to import it. It is possible to simulate it, but complex depending on the case.

I have a ticket open related to this.

In the case of big imports, you have to use BulkLoader, liveloader, or some native client such as Dgo or Dgraph-js and so on. Ratel is used for little things, like view some queries and set up your schema.

Basically, the error just says that the syntax is incompatible with the parser.

Thank you @MichelDiz

I read some of your posts on this subject. Thank you for your RFCs.

Dgraph doesn’t support this RDF syntax. It has an “RDF-D” (Dgraph RDF). You have to do several changes to some exported RDF from third parties.

Is there a document outlining what changes are required?

Nope, keep in mind that RDF-D is a simple N-Triple. I mean, there is context about RDF-D on Docs, but no help to convert from other types of RDF.

e.g.:

_:Identifier1 <Predicate> "Value"@en (Facet1="value") . #4 Fields
_:Identifier2 <Predicate> "1"^^<xs:int>. #3 Fields, basic one.

https://dgraph.io/docs/query-language/schema/

Also, if you follow some points on my tickets related to RDF. You gonna see some tips of what characters and so on won’t work.

Another example this Identifier won’t work:

<https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/>

The correct would be

<_:https://spec.edmcouncil.org/fibo/ontology/MetadataFIBO/>

But some slashes and other characters aren’t supported by the parser and will break the load.

1 Like

Thank you.

Do you know if this is an area of active development in Dgraph? Is there much interest in supporting RDF?

For now Dgraph core team is focussing on GraphQL, Cloud and bugs.