Given a string representing a term in ntriples format, return a URI, Literal, or BNode.
Bases: Resource
A blank node.
Create a blank node.
id â Node identifier, if not supplied one will be generated.
Get the identifier of this blank node.
Get the identifier of this blank node.
Get the identifier of this blank node.
Return a key that will be used to compare and hash this object.
Return an NTriples representation of an open rdf term
Converts to an object to be used as a JSON-LD value.
Converts to a string to be used as a JSON-LD key.
Bases: Value
Implementation of the Literal class.
Convert to bool
calendarValue not useful for Python.
The URI representing the datatype for this literal, if there is one
Convert to date
Convert to datetime
Convert to a decimal
Convert to float
The URI representing the datatype for this literal, if there is one
The label/value for this Literal
The language for this Literal
The label/value
Return a key that will be used to compare and hash this object.
Convert to int
The label/value for this Literal
The language for this Literal
Convert to long
Sets the datatype of the value
Set the label for this Literal
Set the language for this Literal
Convert to time
Return an NTriples representation for this Literal.
Return a Python object representation of this literal. Slightly silly implementation because we implement a conversion table and then donât use the conversion functions.
Converts to an object to be used as a JSON-LD value.
Bases: Resource
RDF-star quoted triples.
Return a key that will be used to compare and hash this object.
Return an NTriples representation of an open rdf term
Bases: object
Wraps a triple or a quad. Might also contain an id.
Create a statement.
Each component can be either a Value object or a string in N-Triples format. Strings will be parsed lazily the first time a component is accessed. Accessors will always return Value objects.
subject (URI|BNode|str) â Subject component - URI, blank node, QuotedTriple or a string in N-Triples format.
predicate (URI|str) â Predicate component. Either a URI, QuotedTriple or a string in N-Triples format.
object (Value|str) â Subject component. Either a Value or a string in N-Triples format.
context (URI|str) â Graph component (optional). Can be a URI or a string in N-Triples format.
Get the graph (the fourth, optional element of the statement).
Graph URI.
Get the object (the third element of the statement).
Object.
Get the predicate (the second element of the statement).
Predicate.
Get the subject (the first element of the statement).
Subject.
Get the statement id.
Note that this field might not present, depending on the way in which the statement has been created.
A numerical id.
Bases: Resource
Lightweight implementation of the class âURIâ.
Return the URI (string) for âselfâ. This method is typically overloaded by subclasses, which may use lazy evaluation to retrieve the string.
Return a key that will be used to compare and hash this object.
Split into a namespace + local name pair.
Return an NTriples representation of a resource, in this case, wrap it in angle brackets.
Converts to an object to be used as a JSON-LD value.
Converts to a string to be used as a JSON-LD key.
Return the URI (string) for âselfâ. This method is typically overloaded by subclasses, which may use lazy evaluation to retrieve the string.
Bases: object
Top class in the org.openrdf.model interfaces.
Return a key that will be used to compare and hash this object.
Return an NTriples representation of an open rdf term
Bases: object
A factory for creating URIs, blank nodes, literals and statements.
Create a compound literal representing a range from âlowerBoundâ to âupperBoundâ
Create an object that allows for simple creation of URIs in given namespace. Attribute lookups on the returned object will produce URIs with the attribute name as localname. Array item access and function calls will have the same effect.
Same as namespace()
, but allows to create URIs in multiple namespaces from the strings of the form â<abbrev>:<name>â, where <abbrev> is one of the namespace abbreviations provided in the âprefixesâ dictionary, and <name> is the resource name.
An object that can be used to create URIs.
If âtermâ is a string, integer, float, etc, convert it to a Literal term. Otherwise, if its a Value, just pass it through.
Check to see if range boundaries are mapped. TODO: ADD VALIDATION FOR GEO TERMS
Validate an individual range constant
Given a string representing a term in ntriples format, return a URI, Literal, or BNode.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4