diff --git a/index.html b/index.html index cc3f489..69c8881 100644 --- a/index.html +++ b/index.html @@ -131,7 +131,7 @@

Term interface

interface Term { attribute string termType; attribute string value; - boolean equals(Term other); + boolean equals(optional Term? other); }; @@ -148,8 +148,18 @@

Term interface

value is refined by each interface which extends Term.

- equals() returns true if and only if other has the same - termType and the same contents (as defined by concrete subclasses). + equals() returns true + when called with parameter other + on an object term if all of the conditions below hold: +

+ +

+ otherwise, it returns false.

@@ -160,7 +170,7 @@

NamedNode interface

interface NamedNode : Term { attribute string termType; attribute string value; - boolean equals(Term other); + boolean equals(optional Term? other); }; @@ -171,8 +181,10 @@

NamedNode interface

value the IRI of the named node (example: "http://example.org/resource").

- equals() returns true if and only if other has - termType "NamedNode" and the same value. + equals() returns true if + all general Term.equals conditions hold + and term.value is the same string as other.value; + otherwise, it returns false.

@@ -183,7 +195,7 @@

BlankNode interface

interface BlankNode : Term { attribute string termType; attribute string value; - boolean equals(Term other); + boolean equals(optional Term? other); }; @@ -196,8 +208,10 @@

BlankNode interface

sourced from RDF/XML, do not change the blank node name (example: "blank3")

- equals() returns true if and only if other has - termType "BlankNode" and the same value. + equals() returns true if + all general Term.equals conditions hold + and term.value is the same string as other.value; + otherwise, it returns false.

@@ -210,7 +224,7 @@

Literal interface

attribute string value; attribute string language; attribute NamedNode datatype; - boolean equals(Term other); + boolean equals(optional Term? other); }; @@ -235,9 +249,12 @@

Literal interface

"http://www.w3.org/2001/XMLSchema#string".

- equals() returns true if and only if other has - termType "Literal" and the same value, - language, and datatype. + equals() returns true if + all general Term.equals conditions hold, + term.value is the same string as other.value, + term.language is the same string as other.language, and + term.datatype.equals(other.datatype) evaluates to true; + otherwise, it returns false.

@@ -248,7 +265,7 @@

Variable interface

interface Variable : Term { attribute string termType; attribute string value; - boolean equals(Term other); + boolean equals(optional Term? other); }; @@ -260,8 +277,10 @@

Variable interface

"a").

- equals() returns true if and only if other has - termType "Variable" and the same value. + equals() returns true if + all general Term.equals conditions hold + and term.value is the same string as other.value; + otherwise, it returns false.

@@ -272,7 +291,7 @@

DefaultGraph interface

interface DefaultGraph : Term { attribute string termType; attribute string value; - boolean equals(Term other); + boolean equals(optional Term? other); }; @@ -287,8 +306,9 @@

DefaultGraph interface

value contains an empty string as constant value.

- equals() returns true if and only if other has - termType "DefaultGraph". + equals() returns true if + all general Term.equals conditions hold; + otherwise, it returns false.

@@ -301,7 +321,7 @@

Quad interface

attribute Term predicate; attribute Term object; attribute Term graph; - boolean equals(Quad other); + boolean equals(optional Quad? other); }; @@ -325,8 +345,20 @@

Quad interface

Triple MUST be represented as Quad with graph set to a DefaultGraph

- equals() returns true if and only if the argument is a) of the same - type b) has all components equal. + equals() returns true + when called with parameter other + on an object quad if + all of the conditions below hold: +

+ +

+ otherwise, it returns false.