w3c / rdf-concepts

https://w3c.github.io/rdf-concepts/
Other
12 stars 4 forks source link

identity and equality of datatype values #92

Open pfps opened 2 months ago

pfps commented 2 months ago

The notions of identity and equality are often considered to be the same but sometimes they are not. RDF Concepts needs to be clear what equality of literal values means.

This is important for xsd:float and xsd:double as they have different identity and equality. Identity is the relationship that is important for RDF datatypes, not equality.

Several RDF datatypes use equality in the sense of identity: rdf:HTML "are considered equal" rdf:XMLLiteral "are considerd equal" RDF:JSON "are considerd equal"

Perhaps the best solution is to uniformly use "identical" instead of "equal" here.

On a side note: Can DOM nodes end up being connected together in a way that does not form a tree? Loops are not allowed, as the mutation algorithms appear to check for potential loops, but there doesn't appear to be any check for repeated occurences of a node.

TallTed commented 2 months ago

Please correct typo in title, from identiy to identity.