-
I have some questions on the contract for
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is always a default graph. This is defined in SPARQL - a dataset is a default graph and zero or more named graphs.
There is a general purpose (and possibly inefficient) implement provided in It is better to provide something (tests pass) but sometimes it might be meaning less and
The
Yes.
All graphs are empty including the default graph. Few implementations (just one now for legacy?) distinguish between empty and absent named graphs and this should not be relied upon. Best to plan around empty graphs not being preserved. |
Beta Was this translation helpful? Give feedback.
There is always a default graph. This is defined in SPARQL - a dataset is a default graph and zero or more named graphs.
There is a general purpose (and possibly inefficient) implement provided in
DatasetGraphBase
.It is better to provide something (tests pass) but sometimes it might be meaning less and
UnsupportedOperationException
- with javadoc to explain why - would be appropriate.