0

I wanted to see if there is a way to create and load data into a named graph in GraphDB. I have tried the GraphDB RDF4J API to http://127.0.0.1:7200/repositories/repo1/rdf-graphs/urn:abc:123. This works, however it creates a named graph called "http://127.0.0.1:7200/repositories/repo1/rdf-graphs/urn:abc:123" as opposed to "urn:abc:123".

Here is the spec I was following: https://rdf4j.org/documentation/reference/rest-api/

Any ideas?

Thanks.

azizbodal
  • 1
  • 1
  • 1

1 Answers1

0

I think you're mixing directly and indirectly referenced graphs.

From the spec you posted section Graph Store support

<RDF4J_URL>/repositories//rdf-graphs/ (for directly referenced named graphs). A request on a directly referenced named graph entails that the request URL itself is used as the named graph identifier in the repository.

So you are using directly referenced graph and this is the desired behavior.

Also see if this answer could be of help

yasko
  • 357
  • 3
  • 13