franz.openrdf.model package¶
Module contents¶
-
class
franz.openrdf.model.BNode(id=None)[source]¶ Bases:
franz.openrdf.model.value.ResourceA blank node.
-
getValue()¶
-
-
class
franz.openrdf.model.Literal(label, datatype=None, language=None)[source]¶ Bases:
franz.openrdf.model.value.ValueImplementation of the Literal class.
-
datatype¶ The URI representing the datatype for this literal, if there is one
-
label¶ The label/value for this Literal
-
language¶ The language for this Literal
-
-
class
franz.openrdf.model.Statement(subject, predicate, object, context=None)[source]¶ Bases:
objectLightweight implementation of ‘Statement’
-
getContext()[source]¶ Get the graph (the fourth, optional element of the statement).
Returns: Graph URI. Return type: URI
-
getObject()[source]¶ Get the object (the third element of the statement).
Returns: Object. Return type: Value
-
getPredicate()[source]¶ Get the predicate (the second element of the statement).
Returns: Predicate. Return type: URI
-
getSubject()[source]¶ Get the subject (the first element of the statement).
Returns: Subject. Return type: Value
-
-
class
franz.openrdf.model.URI(uri=None, namespace=None, localname=None)[source]¶ Bases:
franz.openrdf.model.value.ResourceLightweight implementation of the class ‘URI’.
-
getURI()[source]¶ Return the URI (string) for ‘self’. This method is typically overloaded by subclasses, which may use lazy evaluation to retrieve the string.
-
localname¶
-
namespace¶
-
toNTriples()[source]¶ Return an NTriples representation of a resource, in this case, wrap it in angle brackets.
-
uri¶ Return the URI (string) for ‘self’. This method is typically overloaded by subclasses, which may use lazy evaluation to retrieve the string.
-
value¶
-
-
class
franz.openrdf.model.Value[source]¶ Bases:
objectTop class in the org.openrdf.model interfaces.
-
class
franz.openrdf.model.ValueFactory(store)[source]¶ Bases:
objectA factory for creating URIs, blank nodes, literals and statements.
-
BLANK_NODE_AMOUNT= 10¶
-
createRange(lowerBound, upperBound)[source]¶ Create a compound literal representing a range from ‘lowerBound’ to ‘upperBound’
-
object_position_term_to_openrdf_term(term, predicate=None)[source]¶ If ‘term’ is a string, integer, float, etc, convert it to a Literal term. Otherwise, if its a Value, just pass it through.
-