Reputation: 458
The GraphDB import settings has an option for 'Target graphs' with 3 possible values:
There is a tooltip documentation that says:
Data is imported into one or more graphs. Some RDF formats may specify graphs, while others do not support that. The latter are treated as if they specify the default graph.
Which RDF formats does GraphDB recognizes for specifying a graph?
In particular, is Owl serialized in RDF/XML one such format?
When I import a zip file of multiple *.owl files in RDF/XML format, I get all the triples loaded into the default graph even though I chose the 'from data' import option.
Can someone explain me how to import ontologies into GraphDB with graphs from the data?
Upvotes: 0
Views: 358
Reputation: 208
GraphDB is built on top of RDF4J and supports the same formats as it does.
.owl
files do not support named graphs, unfortunately. This is by design, rather than a GraphDB-specific behaviour.
As for the formats that do support named graphs, and can be imported into RDF4J/GraphDB, here's a list:
.xml
or .trix
..trig
..trigs
..brf
..nq
..jsonld
..rj
.Given that you have .owl
files, which are serialized with XML, I'd suggest that the easiest thing would be to conver them to TriX and go from there.
Upvotes: 2