Question

I have a question regarding rdf statements. Can we compare two rdf statements? For Example, I receive a statement from the store, can I compare that with a pre-defined statement for the values of say object? Is this possible?

Thanks in advance!

Was it helpful?

Solution

two RDF statements are equals if their components (subject, predicate , object) are equals.

from: http://www.w3.org/TR/rdf-concepts/

Two RDF URI references are equal if and only if they compare as equal, character by character, as Unicode strings.

Two literals are equal if and only if all of the following hold:

The strings of the two lexical forms compare equal, character by character.
Either both or neither have language tags.
The language tags, if any, compare equal.
Either both or neither have datatype URIs.
The two datatype URIs, if any, compare equal, character by character.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top