diff --git a/src/franz/openrdf/model/statement.py b/src/franz/openrdf/model/statement.py index 8a2e96f..61b8633 100644 --- a/src/franz/openrdf/model/statement.py +++ b/src/franz/openrdf/model/statement.py @@ -109,7 +109,9 @@ def getSubject(self): def setSubject(self, subject): self.subject = subject - + + subject = property(getSubject, setSubject) + def getPredicate(self): """ Get the predicate (the second element of the statement). @@ -124,7 +126,9 @@ def getPredicate(self): def setPredicate(self, predicate): self.predicate = predicate - + + predicate = property(getPredicate, setPredicate) + def getObject(self): """ Get the object (the third element of the statement). @@ -139,7 +143,9 @@ def getObject(self): def setObject(self, object): self.object = object - + + object = property(getObject, setObject) + def getContext(self): """ Get the graph (the fourth, optional element of the statement). @@ -155,6 +161,8 @@ def getContext(self): def setContext(self, context): self.context = context + context = property(getContext, setContext) + def getTripleID(self): """ Get the statement id.