org.ontoware.rdf2go.model
Interface Statement
- All Superinterfaces:
- java.lang.Comparable<Statement>, TriplePattern
public interface Statement
- extends java.lang.Comparable<Statement>, TriplePattern
Statement representation in rdf2go
Implementations of Statement should have valid implementations of hashCode
and equals.
Compared by subject
- Author:
- mvo
| Methods inherited from interface java.lang.Comparable |
compareTo |
getContext
URI getContext()
- Note: this was set to be a
Model before, but that would
have caused problems, when people accesssed the model via the Statement.
(compare to Jena, where graph and Model are separated. We are here on
graph level)
- Returns:
- the context, where this statement was created. Returns null when
not in a ModelSet.
getSubject
Resource getSubject()
- Specified by:
getSubject in interface TriplePattern
- Returns:
- URI or BlankNode
getPredicate
URI getPredicate()
- Specified by:
getPredicate in interface TriplePattern
- Returns:
- The URI representing the predicate (property)
getObject
Node getObject()
- Specified by:
getObject in interface TriplePattern
- Returns:
- URI, String, TypedLiteral, LanguageTaggedLiteral or BlankNode
dump
void dump(java.lang.String[] options)
- debug output. Lazy implementation can just do nothing.
- Parameters:
options -
hashCode
int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.