rdflib package¶
Subpackages¶
- rdflib.extras package
- rdflib.namespace package
- rdflib.plugins package
- Subpackages
- rdflib.plugins.parsers package
- Submodules
- rdflib.plugins.parsers.RDFVOC module
- rdflib.plugins.parsers.hext module
- rdflib.plugins.parsers.jsonld module
- rdflib.plugins.parsers.notation3 module
- rdflib.plugins.parsers.nquads module
- rdflib.plugins.parsers.ntriples module
- rdflib.plugins.parsers.rdfxml module
- rdflib.plugins.parsers.trig module
- rdflib.plugins.parsers.trix module
- Module contents
- rdflib.plugins.serializers package
- Submodules
- rdflib.plugins.serializers.hext module
- rdflib.plugins.serializers.jsonld module
- rdflib.plugins.serializers.longturtle module
- rdflib.plugins.serializers.n3 module
- rdflib.plugins.serializers.nquads module
- rdflib.plugins.serializers.nt module
- rdflib.plugins.serializers.rdfxml module
- rdflib.plugins.serializers.trig module
- rdflib.plugins.serializers.trix module
- rdflib.plugins.serializers.turtle module
- rdflib.plugins.serializers.xmlwriter module
- Module contents
- rdflib.plugins.shared package
- rdflib.plugins.sparql package
- Subpackages
- Submodules
- rdflib.plugins.sparql.aggregates module
- rdflib.plugins.sparql.algebra module
- rdflib.plugins.sparql.datatypes module
- rdflib.plugins.sparql.evaluate module
- rdflib.plugins.sparql.evalutils module
- rdflib.plugins.sparql.operators module
- rdflib.plugins.sparql.parser module
- rdflib.plugins.sparql.parserutils module
- rdflib.plugins.sparql.processor module
- rdflib.plugins.sparql.sparql module
- rdflib.plugins.sparql.update module
- Module contents
- rdflib.plugins.stores package
- Submodules
- rdflib.plugins.stores.auditable module
- rdflib.plugins.stores.berkeleydb module
- rdflib.plugins.stores.concurrent module
- rdflib.plugins.stores.memory module
- rdflib.plugins.stores.regexmatching module
- rdflib.plugins.stores.sparqlconnector module
- rdflib.plugins.stores.sparqlstore module
- Module contents
- rdflib.plugins.parsers package
- Module contents
- Subpackages
- rdflib.tools package
Submodules¶
rdflib.collection module¶
- class rdflib.collection.Collection(graph, uri, seq=[])[source]¶
Bases:
object
See “Emulating container types”: https://docs.python.org/reference/datamodel.html#emulating-container-types
>>> from rdflib.graph import Graph >>> from pprint import pprint >>> listName = BNode() >>> g = Graph('Memory') >>> listItem1 = BNode() >>> listItem2 = BNode() >>> g.add((listName, RDF.first, Literal(1))) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((listName, RDF.rest, listItem1)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((listItem1, RDF.first, Literal(2))) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((listItem1, RDF.rest, listItem2)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((listItem2, RDF.rest, RDF.nil)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((listItem2, RDF.first, Literal(3))) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> c = Collection(g,listName) >>> pprint([term.n3() for term in c]) [u'"1"^^<http://www.w3.org/2001/XMLSchema#integer>', u'"2"^^<http://www.w3.org/2001/XMLSchema#integer>', u'"3"^^<http://www.w3.org/2001/XMLSchema#integer>']
>>> Literal(1) in c True >>> len(c) 3 >>> c._get_container(1) == listItem1 True >>> c.index(Literal(2)) == 1 True
- __delitem__(key)[source]¶
>>> from rdflib.namespace import RDF, RDFS >>> from rdflib import Graph >>> from pprint import pformat >>> g = Graph() >>> a = BNode('foo') >>> b = BNode('bar') >>> c = BNode('baz') >>> g.add((a, RDF.first, RDF.type)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((a, RDF.rest, b)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((b, RDF.first, RDFS.label)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((b, RDF.rest, c)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((c, RDF.first, RDFS.comment)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((c, RDF.rest, RDF.nil)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> len(g) 6 >>> def listAncestry(node, graph): ... for i in graph.subjects(RDF.rest, node): ... yield i >>> [str(node.n3()) ... for node in g.transitiveClosure(listAncestry, RDF.nil)] ['_:baz', '_:bar', '_:foo'] >>> lst = Collection(g, a) >>> len(lst) 3 >>> b == lst._get_container(1) True >>> c == lst._get_container(2) True >>> del lst[1] >>> len(lst) 2 >>> len(g) 4
- __dict__ = mappingproxy({'__module__': 'rdflib.collection', '__doc__': '\n See "Emulating container types":\n https://docs.python.org/reference/datamodel.html#emulating-container-types\n\n >>> from rdflib.graph import Graph\n >>> from pprint import pprint\n >>> listName = BNode()\n >>> g = Graph(\'Memory\')\n >>> listItem1 = BNode()\n >>> listItem2 = BNode()\n >>> g.add((listName, RDF.first, Literal(1))) # doctest: +ELLIPSIS\n <Graph identifier=... (<class \'rdflib.graph.Graph\'>)>\n >>> g.add((listName, RDF.rest, listItem1)) # doctest: +ELLIPSIS\n <Graph identifier=... (<class \'rdflib.graph.Graph\'>)>\n >>> g.add((listItem1, RDF.first, Literal(2))) # doctest: +ELLIPSIS\n <Graph identifier=... (<class \'rdflib.graph.Graph\'>)>\n >>> g.add((listItem1, RDF.rest, listItem2)) # doctest: +ELLIPSIS\n <Graph identifier=... (<class \'rdflib.graph.Graph\'>)>\n >>> g.add((listItem2, RDF.rest, RDF.nil)) # doctest: +ELLIPSIS\n <Graph identifier=... (<class \'rdflib.graph.Graph\'>)>\n >>> g.add((listItem2, RDF.first, Literal(3))) # doctest: +ELLIPSIS\n <Graph identifier=... (<class \'rdflib.graph.Graph\'>)>\n >>> c = Collection(g,listName)\n >>> pprint([term.n3() for term in c])\n [u\'"1"^^<http://www.w3.org/2001/XMLSchema#integer>\',\n u\'"2"^^<http://www.w3.org/2001/XMLSchema#integer>\',\n u\'"3"^^<http://www.w3.org/2001/XMLSchema#integer>\']\n\n >>> Literal(1) in c\n True\n >>> len(c)\n 3\n >>> c._get_container(1) == listItem1\n True\n >>> c.index(Literal(2)) == 1\n True\n ', '__init__': <function Collection.__init__>, 'n3': <function Collection.n3>, '_get_container': <function Collection._get_container>, '__len__': <function Collection.__len__>, 'index': <function Collection.index>, '__getitem__': <function Collection.__getitem__>, '__setitem__': <function Collection.__setitem__>, '__delitem__': <function Collection.__delitem__>, '__iter__': <function Collection.__iter__>, '_end': <function Collection._end>, 'append': <function Collection.append>, '__iadd__': <function Collection.__iadd__>, 'clear': <function Collection.clear>, '__dict__': <attribute '__dict__' of 'Collection' objects>, '__weakref__': <attribute '__weakref__' of 'Collection' objects>, '__annotations__': {}})¶
- __module__ = 'rdflib.collection'¶
- __weakref__¶
list of weak references to the object (if defined)
- append(item)[source]¶
>>> from rdflib.graph import Graph >>> listName = BNode() >>> g = Graph() >>> c = Collection(g,listName,[Literal(1),Literal(2)]) >>> links = [ ... list(g.subjects(object=i, predicate=RDF.first))[0] for i in c] >>> len([i for i in links if (i, RDF.rest, RDF.nil) in g]) 1
- n3()[source]¶
>>> from rdflib.graph import Graph >>> listName = BNode() >>> g = Graph('Memory') >>> listItem1 = BNode() >>> listItem2 = BNode() >>> g.add((listName, RDF.first, Literal(1))) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((listName, RDF.rest, listItem1)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((listItem1, RDF.first, Literal(2))) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((listItem1, RDF.rest, listItem2)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((listItem2, RDF.rest, RDF.nil)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((listItem2, RDF.first, Literal(3))) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> c = Collection(g, listName) >>> print(c.n3()) ( "1"^^<http://www.w3.org/2001/XMLSchema#integer> "2"^^<http://www.w3.org/2001/XMLSchema#integer> "3"^^<http://www.w3.org/2001/XMLSchema#integer> )
rdflib.compare module¶
A collection of utilities for canonicalizing and inspecting graphs.
Among other things, they solve of the problem of deterministic bnode comparisons.
Warning: the time to canonicalize bnodes may increase exponentially on degenerate larger graphs. Use with care!
Example of comparing two graphs:
>>> g1 = Graph().parse(format='n3', data='''
... @prefix : <http://example.org/ns#> .
... <http://example.org> :rel
... <http://example.org/same>,
... [ :label "Same" ],
... <http://example.org/a>,
... [ :label "A" ] .
... ''')
>>> g2 = Graph().parse(format='n3', data='''
... @prefix : <http://example.org/ns#> .
... <http://example.org> :rel
... <http://example.org/same>,
... [ :label "Same" ],
... <http://example.org/b>,
... [ :label "B" ] .
... ''')
>>>
>>> iso1 = to_isomorphic(g1)
>>> iso2 = to_isomorphic(g2)
These are not isomorphic:
>>> iso1 == iso2
False
Diff the two graphs:
>>> in_both, in_first, in_second = graph_diff(iso1, iso2)
Present in both:
>>> def dump_nt_sorted(g):
... for l in sorted(g.serialize(format='nt').splitlines()):
... if l: print(l.decode('ascii'))
>>> dump_nt_sorted(in_both)
<http://example.org>
<http://example.org/ns#rel> <http://example.org/same> .
<http://example.org>
<http://example.org/ns#rel> _:cbcaabaaba17fecbc304a64f8edee4335e .
_:cbcaabaaba17fecbc304a64f8edee4335e
<http://example.org/ns#label> "Same" .
Only in first:
>>> dump_nt_sorted(in_first)
<http://example.org>
<http://example.org/ns#rel> <http://example.org/a> .
<http://example.org>
<http://example.org/ns#rel> _:cb124e4c6da0579f810c0ffe4eff485bd9 .
_:cb124e4c6da0579f810c0ffe4eff485bd9
<http://example.org/ns#label> "A" .
Only in second:
>>> dump_nt_sorted(in_second)
<http://example.org>
<http://example.org/ns#rel> <http://example.org/b> .
<http://example.org>
<http://example.org/ns#rel> _:cb558f30e21ddfc05ca53108348338ade8 .
_:cb558f30e21ddfc05ca53108348338ade8
<http://example.org/ns#label> "B" .
- class rdflib.compare.IsomorphicGraph(**kwargs)[source]¶
Bases:
ConjunctiveGraph
An implementation of the RGDA1 graph digest algorithm.
An implementation of RGDA1 (publication below), a combination of Sayers & Karp’s graph digest algorithm using sum and SHA-256 <http://www.hpl.hp.com/techreports/2003/HPL-2003-235R1.pdf> and traces <http://pallini.di.uniroma1.it>, an average case polynomial time algorithm for graph canonicalization.
McCusker, J. P. (2015). WebSig: A Digital Signature Framework for the Web. Rensselaer Polytechnic Institute, Troy, NY. http://gradworks.umi.com/3727015.pdf
- __module__ = 'rdflib.compare'¶
- rdflib.compare.graph_diff(g1, g2)[source]¶
Returns three sets of triples: “in both”, “in first” and “in second”.
- rdflib.compare.isomorphic(graph1, graph2)[source]¶
Compare graph for equality.
Uses an algorithm to compute unique hashes which takes bnodes into account.
Examples:
>>> g1 = Graph().parse(format='n3', data=''' ... @prefix : <http://example.org/ns#> . ... <http://example.org> :rel <http://example.org/a> . ... <http://example.org> :rel <http://example.org/b> . ... <http://example.org> :rel [ :label "A bnode." ] . ... ''') >>> g2 = Graph().parse(format='n3', data=''' ... @prefix ns: <http://example.org/ns#> . ... <http://example.org> ns:rel [ ns:label "A bnode." ] . ... <http://example.org> ns:rel <http://example.org/b>, ... <http://example.org/a> . ... ''') >>> isomorphic(g1, g2) True >>> g3 = Graph().parse(format='n3', data=''' ... @prefix : <http://example.org/ns#> . ... <http://example.org> :rel <http://example.org/a> . ... <http://example.org> :rel <http://example.org/b> . ... <http://example.org> :rel <http://example.org/c> . ... ''') >>> isomorphic(g1, g3) False
- rdflib.compare.similar(g1, g2)[source]¶
Checks if the two graphs are “similar”.
Checks if the two graphs are “similar”, by comparing sorted triples where all bnodes have been replaced by a singular mock bnode (the
_MOCK_BNODE
).This is a much cheaper, but less reliable, alternative to the comparison algorithm in
isomorphic
.
- rdflib.compare.to_canonical_graph(g1, stats=None)[source]¶
Creates a canonical, read-only graph.
Creates a canonical, read-only graph where all bnode id:s are based on deterministical SHA-256 checksums, correlated with the graph contents.
rdflib.compat module¶
Utility functions and objects to ease Python 2/3 compatibility, and different versions of support libraries.
rdflib.container module¶
- class rdflib.container.Alt(graph, uri, seq=[])[source]¶
Bases:
Container
- __init__(graph, uri, seq=[])[source]¶
Creates a Container
- Parameters:
graph – a Graph instance
uri – URI or Blank Node of the Container
seq – the elements of the Container
rtype – the type of Container, one of “Bag”, “Seq” or “Alt”
- __module__ = 'rdflib.container'¶
- class rdflib.container.Bag(graph, uri, seq=[])[source]¶
Bases:
Container
Unordered container (no preference order of elements)
- __init__(graph, uri, seq=[])[source]¶
Creates a Container
- Parameters:
graph – a Graph instance
uri – URI or Blank Node of the Container
seq – the elements of the Container
rtype – the type of Container, one of “Bag”, “Seq” or “Alt”
- __module__ = 'rdflib.container'¶
- class rdflib.container.Container(graph, uri, seq=[], rtype='Bag')[source]¶
Bases:
object
A class for constructing RDF containers, as per https://www.w3.org/TR/rdf11-mt/#rdf-containers
Basic usage, creating a
Bag
and adding to it:>>> from rdflib import Graph, BNode, Literal, Bag >>> g = Graph() >>> b = Bag(g, BNode(), [Literal("One"), Literal("Two"), Literal("Three")]) >>> print(g.serialize(format="turtle")) @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . [] a rdf:Bag ; rdf:_1 "One" ; rdf:_2 "Two" ; rdf:_3 "Three" . >>> # print out an item using an index reference >>> print(b[2]) Two >>> # add a new item >>> b.append(Literal("Hello")) <rdflib.container.Bag object at ...> >>> print(g.serialize(format="turtle")) @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . [] a rdf:Bag ; rdf:_1 "One" ; rdf:_2 "Two" ; rdf:_3 "Three" ; rdf:_4 "Hello" .
- __dict__ = mappingproxy({'__module__': 'rdflib.container', '__doc__': 'A class for constructing RDF containers, as per https://www.w3.org/TR/rdf11-mt/#rdf-containers\n\n Basic usage, creating a ``Bag`` and adding to it::\n\n >>> from rdflib import Graph, BNode, Literal, Bag\n >>> g = Graph()\n >>> b = Bag(g, BNode(), [Literal("One"), Literal("Two"), Literal("Three")])\n >>> print(g.serialize(format="turtle"))\n @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n <BLANKLINE>\n [] a rdf:Bag ;\n rdf:_1 "One" ;\n rdf:_2 "Two" ;\n rdf:_3 "Three" .\n <BLANKLINE>\n <BLANKLINE>\n\n >>> # print out an item using an index reference\n >>> print(b[2])\n Two\n\n >>> # add a new item\n >>> b.append(Literal("Hello")) # doctest: +ELLIPSIS\n <rdflib.container.Bag object at ...>\n >>> print(g.serialize(format="turtle"))\n @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n <BLANKLINE>\n [] a rdf:Bag ;\n rdf:_1 "One" ;\n rdf:_2 "Two" ;\n rdf:_3 "Three" ;\n rdf:_4 "Hello" .\n <BLANKLINE>\n <BLANKLINE>\n\n ', '__init__': <function Container.__init__>, 'n3': <function Container.n3>, '_get_container': <function Container._get_container>, '__len__': <function Container.__len__>, 'type_of_conatiner': <function Container.type_of_conatiner>, 'index': <function Container.index>, '__getitem__': <function Container.__getitem__>, '__setitem__': <function Container.__setitem__>, '__delitem__': <function Container.__delitem__>, 'items': <function Container.items>, 'end': <function Container.end>, 'append': <function Container.append>, 'append_multiple': <function Container.append_multiple>, 'clear': <function Container.clear>, '__dict__': <attribute '__dict__' of 'Container' objects>, '__weakref__': <attribute '__weakref__' of 'Container' objects>, '__annotations__': {}})¶
- __init__(graph, uri, seq=[], rtype='Bag')[source]¶
Creates a Container
- Parameters:
graph – a Graph instance
uri – URI or Blank Node of the Container
seq – the elements of the Container
rtype – the type of Container, one of “Bag”, “Seq” or “Alt”
- __module__ = 'rdflib.container'¶
- __setitem__(key, value)[source]¶
Sets the item at index key or predicate rdf:_key of the container to value
- __weakref__¶
list of weak references to the object (if defined)
- exception rdflib.container.NoElementException(message='rdf:Alt Container is empty')[source]¶
Bases:
Exception
- __module__ = 'rdflib.container'¶
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.container.Seq(graph, uri, seq=[])[source]¶
Bases:
Container
- __init__(graph, uri, seq=[])[source]¶
Creates a Container
- Parameters:
graph – a Graph instance
uri – URI or Blank Node of the Container
seq – the elements of the Container
rtype – the type of Container, one of “Bag”, “Seq” or “Alt”
- __module__ = 'rdflib.container'¶
rdflib.events module¶
Dirt Simple Events
A Dispatcher (or a subclass of Dispatcher) stores event handlers that are ‘fired’ simple event objects when interesting things happen.
Create a dispatcher:
>>> d = Dispatcher()
Now create a handler for the event and subscribe it to the dispatcher to handle Event events. A handler is a simple function or method that accepts the event as an argument:
>>> def handler1(event): print(repr(event))
>>> d.subscribe(Event, handler1)
<rdflib.events.Dispatcher object at ...>
Now dispatch a new event into the dispatcher, and see handler1 get fired:
>>> d.dispatch(Event(foo='bar', data='yours', used_by='the event handlers'))
<rdflib.events.Event ['data', 'foo', 'used_by']>
- class rdflib.events.Dispatcher[source]¶
Bases:
object
An object that can dispatch events to a privately managed group of subscribers.
- __dict__ = mappingproxy({'__module__': 'rdflib.events', '__doc__': '\n An object that can dispatch events to a privately managed group of\n subscribers.\n ', '_dispatch_map': None, 'set_map': <function Dispatcher.set_map>, 'get_map': <function Dispatcher.get_map>, 'subscribe': <function Dispatcher.subscribe>, 'dispatch': <function Dispatcher.dispatch>, '__dict__': <attribute '__dict__' of 'Dispatcher' objects>, '__weakref__': <attribute '__weakref__' of 'Dispatcher' objects>, '__annotations__': {}})¶
- __module__ = 'rdflib.events'¶
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.events.Event(**kw)[source]¶
Bases:
object
An event is a container for attributes. The source of an event creates this object, or a subclass, gives it any kind of data that the events handlers need to handle the event, and then calls notify(event).
The target of an event registers a function to handle the event it is interested with subscribe(). When a sources calls notify(event), each subscriber to that event will be called in no particular order.
- __dict__ = mappingproxy({'__module__': 'rdflib.events', '__doc__': '\n An event is a container for attributes. The source of an event\n creates this object, or a subclass, gives it any kind of data that\n the events handlers need to handle the event, and then calls\n notify(event).\n\n The target of an event registers a function to handle the event it\n is interested with subscribe(). When a sources calls\n notify(event), each subscriber to that event will be called in no\n particular order.\n ', '__init__': <function Event.__init__>, '__repr__': <function Event.__repr__>, '__dict__': <attribute '__dict__' of 'Event' objects>, '__weakref__': <attribute '__weakref__' of 'Event' objects>, '__annotations__': {}})¶
- __module__ = 'rdflib.events'¶
- __weakref__¶
list of weak references to the object (if defined)
rdflib.exceptions module¶
TODO:
rdflib.graph module¶
RDFLib defines the following kinds of Graphs:
Graph¶
An RDF graph is a set of RDF triples. Graphs support the python in
operator, as well as iteration and some operations like union,
difference and intersection.
see Graph
Conjunctive Graph¶
A Conjunctive Graph is the most relevant collection of graphs that are
considered to be the boundary for closed world assumptions. This
boundary is equivalent to that of the store instance (which is itself
uniquely identified and distinct from other instances of
Store
that signify other Conjunctive Graphs). It is
equivalent to all the named graphs within it and associated with a
_default_
graph which is automatically assigned a BNode
for an identifier - if one isn’t given.
see ConjunctiveGraph
Quoted graph¶
The notion of an RDF graph [14] is extended to include the concept of a formula node. A formula node may occur wherever any other kind of node can appear. Associated with a formula node is an RDF graph that is completely disjoint from all other graphs; i.e. has no nodes in common with any other graph. (It may contain the same labels as other RDF graphs; because this is, by definition, a separate graph, considerations of tidiness do not apply between the graph at a formula node and any other graph.)
This is intended to map the idea of “{ N3-expression }” that is used by N3 into an RDF graph upon which RDF semantics is defined.
see QuotedGraph
Dataset¶
The RDF 1.1 Dataset, a small extension to the Conjunctive Graph. The primary term is “graphs in the datasets” and not “contexts with quads” so there is a separate method to set/retrieve a graph in a dataset and to operate with dataset graphs. As a consequence of this approach, dataset graphs cannot be identified with blank nodes, a name is always required (RDFLib will automatically add a name if one is not provided at creation time). This implementation includes a convenience method to directly add a single quad to a dataset graph.
see Dataset
Working with graphs¶
Instantiating Graphs with default store (Memory) and default identifier (a BNode):
>>> g = Graph()
>>> g.store.__class__
<class 'rdflib.plugins.stores.memory.Memory'>
>>> g.identifier.__class__
<class 'rdflib.term.BNode'>
Instantiating Graphs with a Memory store and an identifier - <https://rdflib.github.io>:
>>> g = Graph('Memory', URIRef("https://rdflib.github.io"))
>>> g.identifier
rdflib.term.URIRef('https://rdflib.github.io')
>>> str(g)
"<https://rdflib.github.io> a rdfg:Graph;rdflib:storage
[a rdflib:Store;rdfs:label 'Memory']."
Creating a ConjunctiveGraph - The top level container for all named Graphs in a “database”:
>>> g = ConjunctiveGraph()
>>> str(g.default_context)
"[a rdfg:Graph;rdflib:storage [a rdflib:Store;rdfs:label 'Memory']]."
Adding / removing reified triples to Graph and iterating over it directly or via triple pattern:
>>> g = Graph()
>>> statementId = BNode()
>>> print(len(g))
0
>>> g.add((statementId, RDF.type, RDF.Statement))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g.add((statementId, RDF.subject,
... URIRef("https://rdflib.github.io/store/ConjunctiveGraph")))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g.add((statementId, RDF.predicate, namespace.RDFS.label))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g.add((statementId, RDF.object, Literal("Conjunctive Graph")))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> print(len(g))
4
>>> for s, p, o in g:
... print(type(s))
...
<class 'rdflib.term.BNode'>
<class 'rdflib.term.BNode'>
<class 'rdflib.term.BNode'>
<class 'rdflib.term.BNode'>
>>> for s, p, o in g.triples((None, RDF.object, None)):
... print(o)
...
Conjunctive Graph
>>> g.remove((statementId, RDF.type, RDF.Statement))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> print(len(g))
3
None
terms in calls to triples()
can be
thought of as “open variables”.
Graph support set-theoretic operators, you can add/subtract graphs, as well as intersection (with multiplication operator g1*g2) and xor (g1 ^ g2).
Note that BNode IDs are kept when doing set-theoretic operations, this may or may not be what you want. Two named graphs within the same application probably want share BNode IDs, two graphs with data from different sources probably not. If your BNode IDs are all generated by RDFLib they are UUIDs and unique.
>>> g1 = Graph()
>>> g2 = Graph()
>>> u = URIRef("http://example.com/foo")
>>> g1.add([u, namespace.RDFS.label, Literal("foo")])
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g1.add([u, namespace.RDFS.label, Literal("bar")])
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g2.add([u, namespace.RDFS.label, Literal("foo")])
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g2.add([u, namespace.RDFS.label, Literal("bing")])
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> len(g1 + g2) # adds bing as label
3
>>> len(g1 - g2) # removes foo
1
>>> len(g1 * g2) # only foo
1
>>> g1 += g2 # now g1 contains everything
Graph Aggregation - ConjunctiveGraphs and ReadOnlyGraphAggregate within the same store:
>>> store = plugin.get("Memory", Store)()
>>> g1 = Graph(store)
>>> g2 = Graph(store)
>>> g3 = Graph(store)
>>> stmt1 = BNode()
>>> stmt2 = BNode()
>>> stmt3 = BNode()
>>> g1.add((stmt1, RDF.type, RDF.Statement))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g1.add((stmt1, RDF.subject,
... URIRef('https://rdflib.github.io/store/ConjunctiveGraph')))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g1.add((stmt1, RDF.predicate, namespace.RDFS.label))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g1.add((stmt1, RDF.object, Literal('Conjunctive Graph')))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g2.add((stmt2, RDF.type, RDF.Statement))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g2.add((stmt2, RDF.subject,
... URIRef('https://rdflib.github.io/store/ConjunctiveGraph')))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g2.add((stmt2, RDF.predicate, RDF.type))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g2.add((stmt2, RDF.object, namespace.RDFS.Class))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g3.add((stmt3, RDF.type, RDF.Statement))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g3.add((stmt3, RDF.subject,
... URIRef('https://rdflib.github.io/store/ConjunctiveGraph')))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g3.add((stmt3, RDF.predicate, namespace.RDFS.comment))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> g3.add((stmt3, RDF.object, Literal(
... 'The top-level aggregate graph - The sum ' +
... 'of all named graphs within a Store')))
<Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> len(list(ConjunctiveGraph(store).subjects(RDF.type, RDF.Statement)))
3
>>> len(list(ReadOnlyGraphAggregate([g1,g2]).subjects(
... RDF.type, RDF.Statement)))
2
ConjunctiveGraphs have a quads()
method
which returns quads instead of triples, where the fourth item is the Graph
(or subclass thereof) instance in which the triple was asserted:
>>> uniqueGraphNames = set(
... [graph.identifier for s, p, o, graph in ConjunctiveGraph(store
... ).quads((None, RDF.predicate, None))])
>>> len(uniqueGraphNames)
3
>>> unionGraph = ReadOnlyGraphAggregate([g1, g2])
>>> uniqueGraphNames = set(
... [graph.identifier for s, p, o, graph in unionGraph.quads(
... (None, RDF.predicate, None))])
>>> len(uniqueGraphNames)
2
Parsing N3 from a string
>>> g2 = Graph()
>>> src = '''
... @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
... @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
... [ a rdf:Statement ;
... rdf:subject <https://rdflib.github.io/store#ConjunctiveGraph>;
... rdf:predicate rdfs:label;
... rdf:object "Conjunctive Graph" ] .
... '''
>>> g2 = g2.parse(data=src, format="n3")
>>> print(len(g2))
4
Using Namespace class:
>>> RDFLib = Namespace("https://rdflib.github.io/")
>>> RDFLib.ConjunctiveGraph
rdflib.term.URIRef('https://rdflib.github.io/ConjunctiveGraph')
>>> RDFLib["Graph"]
rdflib.term.URIRef('https://rdflib.github.io/Graph')
- class rdflib.graph.BatchAddGraph(graph, batch_size=1000, batch_addn=False)[source]¶
Bases:
object
Wrapper around graph that turns batches of calls to Graph’s add (and optionally, addN) into calls to batched calls to addN`.
- Parameters:
graph: The graph to wrap
batch_size: The maximum number of triples to buffer before passing to Graph’s addN
batch_addn: If True, then even calls to
addN
will be batched according to batch_size
graph: The wrapped graph count: The number of triples buffered since initialization or the last call to reset batch: The current buffer of triples
- __dict__ = mappingproxy({'__module__': 'rdflib.graph', '__doc__': "\n Wrapper around graph that turns batches of calls to Graph's add\n (and optionally, addN) into calls to batched calls to addN`.\n\n :Parameters:\n\n - graph: The graph to wrap\n - batch_size: The maximum number of triples to buffer before passing to\n Graph's addN\n - batch_addn: If True, then even calls to `addN` will be batched according to\n batch_size\n\n graph: The wrapped graph\n count: The number of triples buffered since initialization or the last call to reset\n batch: The current buffer of triples\n\n ", '__init__': <function BatchAddGraph.__init__>, 'reset': <function BatchAddGraph.reset>, 'add': <function BatchAddGraph.add>, 'addN': <function BatchAddGraph.addN>, '__enter__': <function BatchAddGraph.__enter__>, '__exit__': <function BatchAddGraph.__exit__>, '__dict__': <attribute '__dict__' of 'BatchAddGraph' objects>, '__weakref__': <attribute '__weakref__' of 'BatchAddGraph' objects>, '__annotations__': {}})¶
- __module__ = 'rdflib.graph'¶
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.graph.ConjunctiveGraph(store='default', identifier=None, default_graph_base=None)[source]¶
Bases:
Graph
A ConjunctiveGraph is an (unnamed) aggregation of all the named graphs in a store.
It has a
default
graph, whose name is associated with the graph throughout its life.__init__()
can take an identifier to use as the name of this default graph or it will assign a BNode.All methods that add triples work against this default graph.
All queries are carried out against the union of all graphs.
- Parameters:
- __module__ = 'rdflib.graph'¶
- add(triple_or_quad)[source]¶
Add a triple or quad to the store.
if a triple is given it is added to the default context
- contexts(triple=None)[source]¶
Iterate over all contexts in the graph
If triple is specified, iterate over all contexts the triple is in.
- get_context(identifier, quoted=False, base=None)[source]¶
Return a context graph for the given identifier
identifier must be a URIRef or BNode.
- parse(source=None, publicID=None, format=None, location=None, file=None, data=None, **args)[source]¶
Parse source adding the resulting triples to its own context (sub graph of this graph).
See
rdflib.graph.Graph.parse()
for documentation on arguments.- Returns:
The graph into which the source was parsed. In the case of n3 it returns the root context.
- remove(triple_or_quad)[source]¶
Removes a triple or quads
if a triple is given it is removed from all contexts
a quad is removed from the given context only
- class rdflib.graph.Dataset(store='default', default_union=False, default_graph_base=None)[source]¶
Bases:
ConjunctiveGraph
RDF 1.1 Dataset. Small extension to the Conjunctive Graph: - the primary term is graphs in the datasets and not contexts with quads, so there is a separate method to set/retrieve a graph in a dataset and operate with graphs - graphs cannot be identified with blank nodes - added a method to directly add a single quad
Examples of usage:
>>> # Create a new Dataset >>> ds = Dataset() >>> # simple triples goes to default graph >>> ds.add((URIRef("http://example.org/a"), ... URIRef("http://www.example.org/b"), ... Literal("foo"))) <Graph identifier=... (<class 'rdflib.graph.Dataset'>)> >>> >>> # Create a graph in the dataset, if the graph name has already been >>> # used, the corresponding graph will be returned >>> # (ie, the Dataset keeps track of the constituent graphs) >>> g = ds.graph(URIRef("http://www.example.com/gr")) >>> >>> # add triples to the new graph as usual >>> g.add( ... (URIRef("http://example.org/x"), ... URIRef("http://example.org/y"), ... Literal("bar")) ) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> # alternatively: add a quad to the dataset -> goes to the graph >>> ds.add( ... (URIRef("http://example.org/x"), ... URIRef("http://example.org/z"), ... Literal("foo-bar"),g) ) <Graph identifier=... (<class 'rdflib.graph.Dataset'>)> >>> >>> # querying triples return them all regardless of the graph >>> for t in ds.triples((None,None,None)): ... print(t) (rdflib.term.URIRef("http://example.org/a"), rdflib.term.URIRef("http://www.example.org/b"), rdflib.term.Literal("foo")) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/z"), rdflib.term.Literal("foo-bar")) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/y"), rdflib.term.Literal("bar")) >>> >>> # querying quads() return quads; the fourth argument can be unrestricted >>> # (None) or restricted to a graph >>> for q in ds.quads((None, None, None, None)): ... print(q) (rdflib.term.URIRef("http://example.org/a"), rdflib.term.URIRef("http://www.example.org/b"), rdflib.term.Literal("foo"), None) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/y"), rdflib.term.Literal("bar"), rdflib.term.URIRef("http://www.example.com/gr")) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/z"), rdflib.term.Literal("foo-bar"), rdflib.term.URIRef("http://www.example.com/gr")) >>> >>> # unrestricted looping is equivalent to iterating over the entire Dataset >>> for q in ds: ... print(q) (rdflib.term.URIRef("http://example.org/a"), rdflib.term.URIRef("http://www.example.org/b"), rdflib.term.Literal("foo"), None) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/y"), rdflib.term.Literal("bar"), rdflib.term.URIRef("http://www.example.com/gr")) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/z"), rdflib.term.Literal("foo-bar"), rdflib.term.URIRef("http://www.example.com/gr")) >>> >>> # resticting iteration to a graph: >>> for q in ds.quads((None, None, None, g)): ... print(q) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/y"), rdflib.term.Literal("bar"), rdflib.term.URIRef("http://www.example.com/gr")) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/z"), rdflib.term.Literal("foo-bar"), rdflib.term.URIRef("http://www.example.com/gr")) >>> # Note that in the call above - >>> # ds.quads((None,None,None,"http://www.example.com/gr")) >>> # would have been accepted, too >>> >>> # graph names in the dataset can be queried: >>> for c in ds.graphs(): ... print(c) # doctest: DEFAULT http://www.example.com/gr >>> # A graph can be created without specifying a name; a skolemized genid >>> # is created on the fly >>> h = ds.graph() >>> for c in ds.graphs(): ... print(c) DEFAULT https://rdflib.github.io/.well-known/genid/rdflib/N... http://www.example.com/gr >>> # Note that the Dataset.graphs() call returns names of empty graphs, >>> # too. This can be restricted: >>> for c in ds.graphs(empty=False): ... print(c) DEFAULT http://www.example.com/gr >>> >>> # a graph can also be removed from a dataset via ds.remove_graph(g)
New in version 4.0.
- __module__ = 'rdflib.graph'¶
- contexts(triple=None)[source]¶
Iterate over all contexts in the graph
If triple is specified, iterate over all contexts the triple is in.
- graphs(triple=None)¶
Iterate over all contexts in the graph
If triple is specified, iterate over all contexts the triple is in.
- parse(source=None, publicID=None, format=None, location=None, file=None, data=None, **args)[source]¶
Parse source adding the resulting triples to its own context (sub graph of this graph).
See
rdflib.graph.Graph.parse()
for documentation on arguments.- Returns:
The graph into which the source was parsed. In the case of n3 it returns the root context.
- class rdflib.graph.Graph(store='default', identifier=None, namespace_manager=None, base=None, bind_namespaces='core')[source]¶
Bases:
Node
An RDF Graph
The constructor accepts one argument, the “store” that will be used to store the graph data (see the “store” package for stores currently shipped with rdflib).
Stores can be context-aware or unaware. Unaware stores take up (some) less space but cannot support features that require context, such as true merging/demerging of sub-graphs and provenance.
Even if used with a context-aware store, Graph will only expose the quads which belong to the default graph. To access the rest of the data,
ConjunctiveGraph
orDataset
classes can be used instead.The Graph constructor can take an identifier which identifies the Graph by name. If none is given, the graph is assigned a BNode for its identifier.
For more on named graphs, see: http://www.w3.org/2004/03/trix/
- Parameters:
- __and__(other)¶
Set-theoretic intersection. BNode IDs are not changed.
- __dict__ = mappingproxy({'__module__': 'rdflib.graph', '__doc__': 'An RDF Graph\n\n The constructor accepts one argument, the "store"\n that will be used to store the graph data (see the "store"\n package for stores currently shipped with rdflib).\n\n Stores can be context-aware or unaware. Unaware stores take up\n (some) less space but cannot support features that require\n context, such as true merging/demerging of sub-graphs and\n provenance.\n\n Even if used with a context-aware store, Graph will only expose the quads which\n belong to the default graph. To access the rest of the data, `ConjunctiveGraph` or\n `Dataset` classes can be used instead.\n\n The Graph constructor can take an identifier which identifies the Graph\n by name. If none is given, the graph is assigned a BNode for its\n identifier.\n\n For more on named graphs, see: http://www.w3.org/2004/03/trix/\n ', '__init__': <function Graph.__init__>, 'store': <property object>, 'identifier': <property object>, 'namespace_manager': <property object>, '__repr__': <function Graph.__repr__>, '__str__': <function Graph.__str__>, 'toPython': <function Graph.toPython>, 'destroy': <function Graph.destroy>, 'commit': <function Graph.commit>, 'rollback': <function Graph.rollback>, 'open': <function Graph.open>, 'close': <function Graph.close>, 'add': <function Graph.add>, 'addN': <function Graph.addN>, 'remove': <function Graph.remove>, 'triples': <function Graph.triples>, '__getitem__': <function Graph.__getitem__>, '__len__': <function Graph.__len__>, '__iter__': <function Graph.__iter__>, '__contains__': <function Graph.__contains__>, '__hash__': <function Graph.__hash__>, '__cmp__': <function Graph.__cmp__>, '__eq__': <function Graph.__eq__>, '__lt__': <function Graph.__lt__>, '__le__': <function Graph.__le__>, '__gt__': <function Graph.__gt__>, '__ge__': <function Graph.__ge__>, '__iadd__': <function Graph.__iadd__>, '__isub__': <function Graph.__isub__>, '__add__': <function Graph.__add__>, '__mul__': <function Graph.__mul__>, '__sub__': <function Graph.__sub__>, '__xor__': <function Graph.__xor__>, '__or__': <function Graph.__add__>, '__and__': <function Graph.__mul__>, 'set': <function Graph.set>, 'subjects': <function Graph.subjects>, 'predicates': <function Graph.predicates>, 'objects': <function Graph.objects>, 'subject_predicates': <function Graph.subject_predicates>, 'subject_objects': <function Graph.subject_objects>, 'predicate_objects': <function Graph.predicate_objects>, 'triples_choices': <function Graph.triples_choices>, 'value': <function Graph.value>, 'items': <function Graph.items>, 'transitiveClosure': <function Graph.transitiveClosure>, 'transitive_objects': <function Graph.transitive_objects>, 'transitive_subjects': <function Graph.transitive_subjects>, 'qname': <function Graph.qname>, 'compute_qname': <function Graph.compute_qname>, 'bind': <function Graph.bind>, 'namespaces': <function Graph.namespaces>, 'absolutize': <function Graph.absolutize>, 'serialize': <function Graph.serialize>, 'print': <function Graph.print>, 'parse': <function Graph.parse>, 'query': <function Graph.query>, 'update': <function Graph.update>, 'n3': <function Graph.n3>, '__reduce__': <function Graph.__reduce__>, 'isomorphic': <function Graph.isomorphic>, 'connected': <function Graph.connected>, 'all_nodes': <function Graph.all_nodes>, 'collection': <function Graph.collection>, 'resource': <function Graph.resource>, '_process_skolem_tuples': <function Graph._process_skolem_tuples>, 'skolemize': <function Graph.skolemize>, 'de_skolemize': <function Graph.de_skolemize>, 'cbd': <function Graph.cbd>, '__dict__': <attribute '__dict__' of 'Graph' objects>, '__weakref__': <attribute '__weakref__' of 'Graph' objects>, '__annotations__': {'__identifier': 'Node', '__store': 'Store'}})¶
- __getitem__(item)[source]¶
A graph can be “sliced” as a shortcut for the triples method The python slice syntax is (ab)used for specifying triples. A generator over matches is returned, the returned tuples include only the parts not given
>>> import rdflib >>> g = rdflib.Graph() >>> g.add((rdflib.URIRef("urn:bob"), namespace.RDFS.label, rdflib.Literal("Bob"))) <Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> list(g[rdflib.URIRef("urn:bob")]) # all triples about bob [(rdflib.term.URIRef('http://www.w3.org/2000/01/rdf-schema#label'), rdflib.term.Literal('Bob'))]
>>> list(g[:namespace.RDFS.label]) # all label triples [(rdflib.term.URIRef('urn:bob'), rdflib.term.Literal('Bob'))]
>>> list(g[::rdflib.Literal("Bob")]) # all triples with bob as object [(rdflib.term.URIRef('urn:bob'), rdflib.term.URIRef('http://www.w3.org/2000/01/rdf-schema#label'))]
Combined with SPARQL paths, more complex queries can be written concisely:
Name of all Bobs friends:
g[bob : FOAF.knows/FOAF.name ]
Some label for Bob:
g[bob : DC.title|FOAF.name|RDFS.label]
All friends and friends of friends of Bob
g[bob : FOAF.knows * “+”]
etc.
New in version 4.0.
- __init__(store='default', identifier=None, namespace_manager=None, base=None, bind_namespaces='core')[source]¶
- __len__()[source]¶
Returns the number of triples in the graph
If context is specified then the number of triples in the context is returned instead.
- __module__ = 'rdflib.graph'¶
- __or__(other)¶
Set-theoretic union BNode IDs are not changed.
- __weakref__¶
list of weak references to the object (if defined)
- bind(prefix, namespace, override=True, replace=False)[source]¶
Bind prefix to namespace
If override is True will bind namespace to given prefix even if namespace was already bound to a different prefix.
if replace, replace any existing prefix with the new namespace
for example: graph.bind(“foaf”, “http://xmlns.com/foaf/0.1/”)
- Return type:
- cbd(resource)[source]¶
Retrieves the Concise Bounded Description of a Resource from a Graph
Concise Bounded Description (CBD) is defined in [1] as:
Given a particular node (the starting node) in a particular RDF graph (the source graph), a subgraph of that particular graph, taken to comprise a concise bounded description of the resource denoted by the starting node, can be identified as follows:
- Include in the subgraph all statements in the source graph where the subject of the statement is the
starting node;
- Recursively, for all statements identified in the subgraph thus far having a blank node object, include
in the subgraph all statements in the source graph where the subject of the statement is the blank node in question and which are not already included in the subgraph.
- Recursively, for all statements included in the subgraph thus far, for all reifications of each statement
in the source graph, include the concise bounded description beginning from the rdf:Statement node of each reification.
This results in a subgraph where the object nodes are either URI references, literals, or blank nodes not serving as the subject of any statement in the graph.
[1] https://www.w3.org/Submission/CBD/
- Parameters:
resource – a URIRef object, of the Resource for queried for
- Returns:
a Graph, subgraph of self
- close(commit_pending_transaction=False)[source]¶
Close the graph store
Might be necessary for stores that require closing a connection to a database or releasing some resource.
- collection(identifier)[source]¶
Create a new
Collection
instance.Parameters:
identifier
: a URIRef or BNode instance.
Example:
>>> graph = Graph() >>> uri = URIRef("http://example.org/resource") >>> collection = graph.collection(uri) >>> assert isinstance(collection, Collection) >>> assert collection.uri is uri >>> assert collection.graph is graph >>> collection += [ Literal(1), Literal(2) ]
- connected()[source]¶
Check if the Graph is connected
The Graph is considered undirectional.
Performs a search on the Graph, starting from a random node. Then iteratively goes depth-first through the triplets where the node is subject and object. Return True if all nodes have been visited and False if it cannot continue and there are still unvisited nodes left.
- isomorphic(other)[source]¶
does a very basic check if these graphs are the same If no BNodes are involved, this is accurate.
See rdflib.compare for a correct implementation of isomorphism checks
- items(list)[source]¶
Generator over all items in the resource specified by list
list is an RDF collection.
- property namespace_manager: NamespaceManager¶
this graph’s namespace-manager
- Return type:
- objects(subject=None, predicate=None, unique=False)[source]¶
A generator of (optionally unique) objects with the given subject and predicate
- open(configuration, create=False)[source]¶
Open the graph store
Might be necessary for stores that require opening a connection to a database or acquiring some resource.
- parse(source=None, publicID=None, format=None, location=None, file=None, data=None, **args)[source]¶
Parse an RDF source adding the resulting triples to the Graph.
The source is specified using one of source, location, file or data.
- Parameters:
source
: An InputSource, file-like object, or string. In the case of a string the string is the location of the source.location
: A string indicating the relative or absolute URL of the source. Graph’s absolutize method is used if a relative location is specified.file
: A file-like object.data
: A string containing the data to be parsed.format
: Used if format can not be determined from source, e.g. file extension or Media Type. Defaults to text/turtle. Format support can be extended with plugins, but “xml”, “n3” (use for turtle), “nt” & “trix” are built in.publicID
: the logical URI to use as the document base. If None specified the document location is used (at least in the case where there is a document location).
- Returns:
self, the graph instance.
Examples:
>>> my_data = ''' ... <rdf:RDF ... xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" ... xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" ... > ... <rdf:Description> ... <rdfs:label>Example</rdfs:label> ... <rdfs:comment>This is really just an example.</rdfs:comment> ... </rdf:Description> ... </rdf:RDF> ... ''' >>> import tempfile >>> fd, file_name = tempfile.mkstemp() >>> f = os.fdopen(fd, "w") >>> dummy = f.write(my_data) # Returns num bytes written >>> f.close()
>>> g = Graph() >>> result = g.parse(data=my_data, format="application/rdf+xml") >>> len(g) 2
>>> g = Graph() >>> result = g.parse(location=file_name, format="application/rdf+xml") >>> len(g) 2
>>> g = Graph() >>> with open(file_name, "r") as f: ... result = g.parse(f, format="application/rdf+xml") >>> len(g) 2
>>> os.remove(file_name)
>>> # default turtle parsing >>> result = g.parse(data="<http://example.com/a> <http://example.com/a> <http://example.com/a> .") >>> len(g) 3
- predicate_objects(subject=None, unique=False)[source]¶
A generator of (optionally unique) (predicate, object) tuples for the given subject
- predicates(subject=None, object=None, unique=False)[source]¶
A generator of (optionally unique) predicates with the given subject and object
- query(query_object, processor='sparql', result='sparql', initNs=None, initBindings=None, use_store_provided=True, **kwargs)[source]¶
Query this graph.
A type of ‘prepared queries’ can be realised by providing initial variable bindings with initBindings
Initial namespaces are used to resolve prefixes used in the query, if none are given, the namespaces from the graph’s namespace manager are used.
- remove(triple)[source]¶
Remove a triple from the graph
If the triple does not provide a context attribute, removes the triple from all contexts.
- resource(identifier)[source]¶
Create a new
Resource
instance.Parameters:
identifier
: a URIRef or BNode instance.
Example:
>>> graph = Graph() >>> uri = URIRef("http://example.org/resource") >>> resource = graph.resource(uri) >>> assert isinstance(resource, Resource) >>> assert resource.identifier is uri >>> assert resource.graph is graph
- serialize(destination: None, format: str, base: Optional[str], encoding: str, **args) bytes [source]¶
- serialize(destination: None = None, format: str = 'turtle', base: Optional[str] = None, *, encoding: str, **args) bytes
- serialize(destination: None = None, format: str = 'turtle', base: Optional[str] = None, encoding: None = None, **args) str
- serialize(destination: Union[str, PurePath, IO[bytes]], format: str = 'turtle', base: Optional[str] = None, encoding: Optional[str] = None, **args) Graph
- serialize(destination: Optional[Union[str, PurePath, IO[bytes]]] = None, format: str = 'turtle', base: Optional[str] = None, encoding: Optional[str] = None, **args) Union[bytes, str, Graph]
Serialize the graph.
- Parameters:
destination (
Union
[str
,PurePath
,IO
[bytes
],None
]) – The destination to serialize the graph to. This can be a path as astr
orPurePath
object, or it can be aIO[bytes]
like object. If this parameter is not supplied the serialized graph will be returned.format (
str
) – The format that the output should be written in. This value references aSerializer
plugin. Format support can be extended with plugins, but"xml"
,"n3"
,"turtle"
,"nt"
,"pretty-xml"
,"trix"
,"trig"
,"nquads"
,"json-ld"
and"hext"
are built in. Defaults to"turtle"
.base (
Optional
[str
]) – The base IRI for formats that support it. For the turtle format this will be used as the@base
directive.args (
Any
) – Additional arguments to pass to theSerializer
that will be used.
- Returns:
The serialized graph if
destination
isNone
. The serialized graph is returned asstr
if no encoding is specified, and asbytes
if an encoding is specified.- Return type:
- Return type:
- Returns:
- Return type:
- set(triple)[source]¶
Convenience method to update the value of object
Remove any existing triples for subject and predicate before adding (subject, predicate, object).
- subject_objects(predicate=None, unique=False)[source]¶
A generator of (optionally unique) (subject, object) tuples for the given predicate
- subject_predicates(object=None, unique=False)[source]¶
A generator of (optionally unique) (subject, predicate) tuples for the given object
- subjects(predicate=None, object=None, unique=False)[source]¶
A generator of (optionally unique) subjects with the given predicate and object
- transitiveClosure(func, arg, seen=None)[source]¶
Generates transitive closure of a user-defined function against the graph
>>> from rdflib.collection import Collection >>> g=Graph() >>> a=BNode("foo") >>> b=BNode("bar") >>> c=BNode("baz") >>> g.add((a,RDF.first,RDF.type)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((a,RDF.rest,b)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((b,RDF.first,namespace.RDFS.label)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((b,RDF.rest,c)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((c,RDF.first,namespace.RDFS.comment)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((c,RDF.rest,RDF.nil)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> def topList(node,g): ... for s in g.subjects(RDF.rest, node): ... yield s >>> def reverseList(node,g): ... for f in g.objects(node, RDF.first): ... print(f) ... for s in g.subjects(RDF.rest, node): ... yield s
>>> [rt for rt in g.transitiveClosure( ... topList,RDF.nil)] [rdflib.term.BNode('baz'), rdflib.term.BNode('bar'), rdflib.term.BNode('foo')]
>>> [rt for rt in g.transitiveClosure( ... reverseList,RDF.nil)] http://www.w3.org/2000/01/rdf-schema#comment http://www.w3.org/2000/01/rdf-schema#label http://www.w3.org/1999/02/22-rdf-syntax-ns#type [rdflib.term.BNode('baz'), rdflib.term.BNode('bar'), rdflib.term.BNode('foo')]
- transitive_objects(subject, predicate, remember=None)[source]¶
Transitively generate objects for the
predicate
relationshipGenerated objects belong to the depth first transitive closure of the
predicate
relationship starting atsubject
.
- transitive_subjects(predicate, object, remember=None)[source]¶
Transitively generate subjects for the
predicate
relationshipGenerated subjects belong to the depth first transitive closure of the
predicate
relationship starting atobject
.
- triples(triple: _TriplePatternType) Generator[_TripleType, None, None] [source]¶
- triples(triple: Tuple[Optional[_SubjectType], Path, Optional[_ObjectType]]) Generator[Tuple[_SubjectType, Path, _ObjectType], None, None]
- triples(triple: Tuple[Optional[_SubjectType], Union[None, Path, _PredicateType], Optional[_ObjectType]]) Generator[Tuple[_SubjectType, Union[_PredicateType, Path], _ObjectType], None, None]
Generator over the triple store
Returns triples that match the given triple pattern. If triple pattern does not provide a context, all contexts will be searched.
- update(update_object, processor='sparql', initNs=None, initBindings=None, use_store_provided=True, **kwargs)[source]¶
Update this graph with the given update query.
- value(subject=None, predicate=rdflib.term.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#value'), object=None, default=None, any=True)[source]¶
Get a value for a pair of two criteria
Exactly one of subject, predicate, object must be None. Useful if one knows that there may only be one value.
It is one of those situations that occur a lot, hence this ‘macro’ like utility
Parameters: subject, predicate, object – exactly one must be None default – value to be returned if no values found any – if True, return any value in the case there is more than one, else, raise UniquenessError
- exception rdflib.graph.ModificationException[source]¶
Bases:
Exception
- __module__ = 'rdflib.graph'¶
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.graph.QuotedGraph(store, identifier)[source]¶
Bases:
Graph
Quoted Graphs are intended to implement Notation 3 formulae. They are associated with a required identifier that the N3 parser must provide in order to maintain consistent formulae identification for scenarios such as implication and other such processing.
- __module__ = 'rdflib.graph'¶
- class rdflib.graph.ReadOnlyGraphAggregate(graphs, store='default')[source]¶
Bases:
ConjunctiveGraph
Utility class for treating a set of graphs as a single graph
Only read operations are supported (hence the name). Essentially a ConjunctiveGraph over an explicit subset of the entire store.
- __module__ = 'rdflib.graph'¶
- add(triple)[source]¶
Add a triple or quad to the store.
if a triple is given it is added to the default context
- bind(prefix, namespace, override=True)[source]¶
Bind prefix to namespace
If override is True will bind namespace to given prefix even if namespace was already bound to a different prefix.
if replace, replace any existing prefix with the new namespace
for example: graph.bind(“foaf”, “http://xmlns.com/foaf/0.1/”)
- close()[source]¶
Close the graph store
Might be necessary for stores that require closing a connection to a database or releasing some resource.
- open(configuration, create=False)[source]¶
Open the graph store
Might be necessary for stores that require opening a connection to a database or acquiring some resource.
- parse(source, publicID=None, format=None, **args)[source]¶
Parse source adding the resulting triples to its own context (sub graph of this graph).
See
rdflib.graph.Graph.parse()
for documentation on arguments.- Returns:
The graph into which the source was parsed. In the case of n3 it returns the root context.
- remove(triple)[source]¶
Removes a triple or quads
if a triple is given it is removed from all contexts
a quad is removed from the given context only
- class rdflib.graph.Seq(graph, subject)[source]¶
Bases:
object
Wrapper around an RDF Seq resource
It implements a container type in Python with the order of the items returned corresponding to the Seq content. It is based on the natural ordering of the predicate names _1, _2, _3, etc, which is the ‘implementation’ of a sequence in RDF terms.
- __dict__ = mappingproxy({'__module__': 'rdflib.graph', '__doc__': "Wrapper around an RDF Seq resource\n\n It implements a container type in Python with the order of the items\n returned corresponding to the Seq content. It is based on the natural\n ordering of the predicate names _1, _2, _3, etc, which is the\n 'implementation' of a sequence in RDF terms.\n ", '__init__': <function Seq.__init__>, 'toPython': <function Seq.toPython>, '__iter__': <function Seq.__iter__>, '__len__': <function Seq.__len__>, '__getitem__': <function Seq.__getitem__>, '__dict__': <attribute '__dict__' of 'Seq' objects>, '__weakref__': <attribute '__weakref__' of 'Seq' objects>, '__annotations__': {}})¶
- __init__(graph, subject)[source]¶
Parameters:
- graph:
the graph containing the Seq
- subject:
the subject of a Seq. Note that the init does not check whether this is a Seq, this is done in whoever creates this instance!
- __module__ = 'rdflib.graph'¶
- __weakref__¶
list of weak references to the object (if defined)
rdflib.parser module¶
Parser plugin interface.
This module defines the parser plugin interface and contains other related parser support code.
The module is mainly useful for those wanting to write a parser that can plugin to rdflib. If you are wanting to invoke a parser you likely want to do so through the Graph class parse method.
- class rdflib.parser.FileInputSource(file)[source]¶
Bases:
InputSource
- Parameters:
file (
Union
[BinaryIO
,TextIO
,TextIOBase
,RawIOBase
,BufferedIOBase
]) –
- __init__(file)[source]¶
- Parameters:
file (
Union
[BinaryIO
,TextIO
,TextIOBase
,RawIOBase
,BufferedIOBase
]) –
- __module__ = 'rdflib.parser'¶
- class rdflib.parser.InputSource(system_id=None)[source]¶
Bases:
InputSource
,object
TODO:
- __module__ = 'rdflib.parser'¶
- class rdflib.parser.Parser[source]¶
Bases:
object
- __module__ = 'rdflib.parser'¶
- __slots__ = ()¶
- parse(source, sink)[source]¶
- Parameters:
source (
InputSource
) –sink (
Graph
) –
- class rdflib.parser.PythonInputSource(data, system_id=None)[source]¶
Bases:
InputSource
Constructs an RDFLib Parser InputSource from a Python data structure, for example, loaded from JSON with json.load or json.loads:
>>> import json >>> as_string = """{ ... "@context" : {"ex" : "http://example.com/ns#"}, ... "@graph": [{"@type": "ex:item", "@id": "#example"}] ... }""" >>> as_python = json.loads(as_string) >>> source = create_input_source(data=as_python) >>> isinstance(source, PythonInputSource) True
- __module__ = 'rdflib.parser'¶
- class rdflib.parser.StringInputSource(value, encoding='utf-8', system_id=None)[source]¶
Bases:
InputSource
Constructs an RDFLib Parser InputSource from a Python String or Bytes
- __module__ = 'rdflib.parser'¶
- class rdflib.parser.URLInputSource(system_id=None, format=None)[source]¶
Bases:
InputSource
Constructs an RDFLib Parser InputSource from a URL to read it from the Web.
- __annotations__ = {'links': typing.List[str]}¶
- __module__ = 'rdflib.parser'¶
- classmethod get_links(response)[source]¶
- Parameters:
response (
HTTPResponse
) –
rdflib.paths module¶
This module implements the SPARQL 1.1 Property path operators, as defined in:
http://www.w3.org/TR/sparql11-query/#propertypaths
In SPARQL the syntax is as follows:
Syntax |
Matches |
---|---|
iri |
An IRI. A path of length one. |
^elt |
Inverse path (object to subject). |
elt1 / elt2 |
A sequence path of elt1 followed by elt2. |
elt1 | elt2 |
A alternative path of elt1 or elt2 (all possibilities are tried). |
elt* |
A path that connects the subject and object of the path by zero or more matches of elt. |
elt+ |
A path that connects the subject and object of the path by one or more matches of elt. |
elt? |
A path that connects the subject and object of the path by zero or one matches of elt. |
!iri or !(iri1| … |irin) |
Negated property set. An IRI which is not one of iri1…irin. !iri is short for !(iri). |
!^iri or !(^iri1| …|^irin) |
Negated property set where the excluded matches are based on reversed path. That is, not one of iri1…irin as reverse paths. !^iri is short for !(^iri). |
!(iri1| …|irij|^irij+1|… |^irin)| |
A combination of forward and reverse properties in a negated property set. |
(elt) |
A group path elt, brackets control precedence. |
This module is used internally by the SPARQL engine, but the property paths can also be used to query RDFLib Graphs directly.
Where possible the SPARQL syntax is mapped to Python operators, and property path objects can be constructed from existing URIRefs.
>>> from rdflib import Graph, Namespace
>>> from rdflib.namespace import FOAF
>>> ~FOAF.knows
Path(~http://xmlns.com/foaf/0.1/knows)
>>> FOAF.knows/FOAF.name
Path(http://xmlns.com/foaf/0.1/knows / http://xmlns.com/foaf/0.1/name)
>>> FOAF.name|FOAF.givenName
Path(http://xmlns.com/foaf/0.1/name | http://xmlns.com/foaf/0.1/givenName)
Modifiers (?, *, +) are done using * (the multiplication operator) and the strings ‘*’, ‘?’, ‘+’, also defined as constants in this file.
>>> FOAF.knows*OneOrMore
Path(http://xmlns.com/foaf/0.1/knows+)
The path objects can also be used with the normal graph methods.
First some example data:
>>> g=Graph()
>>> g=g.parse(data='''
... @prefix : <ex:> .
...
... :a :p1 :c ; :p2 :f .
... :c :p2 :e ; :p3 :g .
... :g :p3 :h ; :p2 :j .
... :h :p3 :a ; :p2 :g .
...
... :q :px :q .
...
... ''', format='n3')
>>> e = Namespace('ex:')
Graph contains:
>>> (e.a, e.p1/e.p2, e.e) in g
True
Graph generator functions, triples, subjects, objects, etc. :
>>> list(g.objects(e.c, (e.p3*OneOrMore)/e.p2))
[rdflib.term.URIRef('ex:j'), rdflib.term.URIRef('ex:g'),
rdflib.term.URIRef('ex:f')]
A more complete set of tests:
>>> list(evalPath(g, (None, e.p1/e.p2, None)))==[(e.a, e.e)]
True
>>> list(evalPath(g, (e.a, e.p1|e.p2, None)))==[(e.a,e.c), (e.a,e.f)]
True
>>> list(evalPath(g, (e.c, ~e.p1, None))) == [ (e.c, e.a) ]
True
>>> list(evalPath(g, (e.a, e.p1*ZeroOrOne, None))) == [(e.a, e.a), (e.a, e.c)]
True
>>> list(evalPath(g, (e.c, e.p3*OneOrMore, None))) == [
... (e.c, e.g), (e.c, e.h), (e.c, e.a)]
True
>>> list(evalPath(g, (e.c, e.p3*ZeroOrMore, None))) == [(e.c, e.c),
... (e.c, e.g), (e.c, e.h), (e.c, e.a)]
True
>>> list(evalPath(g, (e.a, -e.p1, None))) == [(e.a, e.f)]
True
>>> list(evalPath(g, (e.a, -(e.p1|e.p2), None))) == []
True
>>> list(evalPath(g, (e.g, -~e.p2, None))) == [(e.g, e.j)]
True
>>> list(evalPath(g, (e.e, ~(e.p1/e.p2), None))) == [(e.e, e.a)]
True
>>> list(evalPath(g, (e.a, e.p1/e.p3/e.p3, None))) == [(e.a, e.h)]
True
>>> list(evalPath(g, (e.q, e.px*OneOrMore, None)))
[(rdflib.term.URIRef('ex:q'), rdflib.term.URIRef('ex:q'))]
>>> list(evalPath(g, (None, e.p1|e.p2, e.c)))
[(rdflib.term.URIRef('ex:a'), rdflib.term.URIRef('ex:c'))]
>>> list(evalPath(g, (None, ~e.p1, e.a))) == [ (e.c, e.a) ]
True
>>> list(evalPath(g, (None, e.p1*ZeroOrOne, e.c)))
[(rdflib.term.URIRef('ex:c'), rdflib.term.URIRef('ex:c')),
(rdflib.term.URIRef('ex:a'), rdflib.term.URIRef('ex:c'))]
>>> list(evalPath(g, (None, e.p3*OneOrMore, e.a)))
[(rdflib.term.URIRef('ex:h'), rdflib.term.URIRef('ex:a')),
(rdflib.term.URIRef('ex:g'), rdflib.term.URIRef('ex:a')),
(rdflib.term.URIRef('ex:c'), rdflib.term.URIRef('ex:a'))]
>>> list(evalPath(g, (None, e.p3*ZeroOrMore, e.a)))
[(rdflib.term.URIRef('ex:a'), rdflib.term.URIRef('ex:a')),
(rdflib.term.URIRef('ex:h'), rdflib.term.URIRef('ex:a')),
(rdflib.term.URIRef('ex:g'), rdflib.term.URIRef('ex:a')),
(rdflib.term.URIRef('ex:c'), rdflib.term.URIRef('ex:a'))]
>>> list(evalPath(g, (None, -e.p1, e.f))) == [(e.a, e.f)]
True
>>> list(evalPath(g, (None, -(e.p1|e.p2), e.c))) == []
True
>>> list(evalPath(g, (None, -~e.p2, e.j))) == [(e.g, e.j)]
True
>>> list(evalPath(g, (None, ~(e.p1/e.p2), e.a))) == [(e.e, e.a)]
True
>>> list(evalPath(g, (None, e.p1/e.p3/e.p3, e.h))) == [(e.a, e.h)]
True
>>> list(evalPath(g, (e.q, e.px*OneOrMore, None)))
[(rdflib.term.URIRef('ex:q'), rdflib.term.URIRef('ex:q'))]
>>> list(evalPath(g, (e.c, (e.p2|e.p3)*ZeroOrMore, e.j)))
[(rdflib.term.URIRef('ex:c'), rdflib.term.URIRef('ex:j'))]
No vars specified:
>>> sorted(list(evalPath(g, (None, e.p3*OneOrMore, None))))
[(rdflib.term.URIRef('ex:c'), rdflib.term.URIRef('ex:a')),
(rdflib.term.URIRef('ex:c'), rdflib.term.URIRef('ex:g')),
(rdflib.term.URIRef('ex:c'), rdflib.term.URIRef('ex:h')),
(rdflib.term.URIRef('ex:g'), rdflib.term.URIRef('ex:a')),
(rdflib.term.URIRef('ex:g'), rdflib.term.URIRef('ex:h')),
(rdflib.term.URIRef('ex:h'), rdflib.term.URIRef('ex:a'))]
- class rdflib.paths.Path[source]¶
Bases:
object
- __annotations__ = {'__invert__': typing.Callable[[ForwardRef('Path')], ForwardRef('InvPath')], '__mul__': typing.Callable[[ForwardRef('Path'), str], ForwardRef('MulPath')], '__neg__': typing.Callable[[ForwardRef('Path')], ForwardRef('NegatedPath')], '__or__': typing.Callable[[ForwardRef('Path'), typing.Union[ForwardRef('URIRef'), ForwardRef('Path')]], ForwardRef('AlternativePath')], '__truediv__': typing.Callable[[ForwardRef('Path'), typing.Union[ForwardRef('URIRef'), ForwardRef('Path')]], ForwardRef('SequencePath')]}¶
- __dict__ = mappingproxy({'__module__': 'rdflib.paths', '__annotations__': {'__or__': typing.Callable[[ForwardRef('Path'), typing.Union[ForwardRef('URIRef'), ForwardRef('Path')]], ForwardRef('AlternativePath')], '__invert__': typing.Callable[[ForwardRef('Path')], ForwardRef('InvPath')], '__neg__': typing.Callable[[ForwardRef('Path')], ForwardRef('NegatedPath')], '__truediv__': typing.Callable[[ForwardRef('Path'), typing.Union[ForwardRef('URIRef'), ForwardRef('Path')]], ForwardRef('SequencePath')], '__mul__': typing.Callable[[ForwardRef('Path'), str], ForwardRef('MulPath')]}, 'eval': <function Path.eval>, '__lt__': <function Path.__lt__>, '__dict__': <attribute '__dict__' of 'Path' objects>, '__weakref__': <attribute '__weakref__' of 'Path' objects>, '__doc__': None, '__gt__': <function _gt_from_lt>, '__le__': <function _le_from_lt>, '__ge__': <function _ge_from_lt>, '__invert__': <function inv_path>, '__neg__': <function neg_path>, '__mul__': <function mul_path>, '__or__': <function path_alternative>, '__truediv__': <function path_sequence>})¶
- __ge__(other, NotImplemented=NotImplemented)¶
Return a >= b. Computed by @total_ordering from (not a < b).
- __gt__(other, NotImplemented=NotImplemented)¶
Return a > b. Computed by @total_ordering from (not a < b) and (a != b).
- __invert__()¶
inverse path
- __le__(other, NotImplemented=NotImplemented)¶
Return a <= b. Computed by @total_ordering from (a < b) or (a == b).
- __module__ = 'rdflib.paths'¶
- __mul__(mul)¶
cardinality path
- __neg__()¶
negated path
- __or__(other)¶
alternative path
- __truediv__(other)¶
sequence path
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.paths.PathList(iterable=(), /)[source]¶
Bases:
list
- __dict__ = mappingproxy({'__module__': 'rdflib.paths', '__dict__': <attribute '__dict__' of 'PathList' objects>, '__weakref__': <attribute '__weakref__' of 'PathList' objects>, '__doc__': None, '__annotations__': {}})¶
- __module__ = 'rdflib.paths'¶
- __weakref__¶
list of weak references to the object (if defined)
rdflib.plugin module¶
Plugin support for rdf.
There are a number of plugin points for rdf: parser, serializer, store, query processor, and query result. Plugins can be registered either through setuptools entry_points or by calling rdf.plugin.register directly.
If you have a package that uses a setuptools based setup.py you can add the following to your setup:
entry_points = {
'rdf.plugins.parser': [
'nt = rdf.plugins.parsers.ntriples:NTParser',
],
'rdf.plugins.serializer': [
'nt = rdf.plugins.serializers.NTSerializer:NTSerializer',
],
}
See the setuptools dynamic discovery of services and plugins for more information.
- class rdflib.plugin.PKGPlugin(name, kind, ep)[source]¶
Bases:
Plugin
[PluginT
]- __module__ = 'rdflib.plugin'¶
- __orig_bases__ = (rdflib.plugin.Plugin[~PluginT],)¶
- __parameters__ = (~PluginT,)¶
- class rdflib.plugin.Plugin(name, kind, module_path, class_name)[source]¶
Bases:
Generic
[PluginT
]- __dict__ = mappingproxy({'__module__': 'rdflib.plugin', '__init__': <function Plugin.__init__>, 'getClass': <function Plugin.getClass>, '__orig_bases__': (typing.Generic[~PluginT],), '__dict__': <attribute '__dict__' of 'Plugin' objects>, '__weakref__': <attribute '__weakref__' of 'Plugin' objects>, '__doc__': None, '__parameters__': (~PluginT,), '__annotations__': {'_class': 'Optional[Type[PluginT]]'}})¶
- __module__ = 'rdflib.plugin'¶
- __orig_bases__ = (typing.Generic[~PluginT],)¶
- __parameters__ = (~PluginT,)¶
- __weakref__¶
list of weak references to the object (if defined)
- exception rdflib.plugin.PluginException(msg=None)[source]¶
Bases:
Error
- __module__ = 'rdflib.plugin'¶
- rdflib.plugin.get(name, kind)[source]¶
Return the class for the specified (name, kind). Raises a PluginException if unable to do so.
rdflib.query module¶
- class rdflib.query.Processor(graph)[source]¶
Bases:
object
Query plugin interface.
This module is useful for those wanting to write a query processor that can plugin to rdf. If you are wanting to execute a query you likely want to do so through the Graph class query method.
- __dict__ = mappingproxy({'__module__': 'rdflib.query', '__doc__': '\n Query plugin interface.\n\n This module is useful for those wanting to write a query processor\n that can plugin to rdf. If you are wanting to execute a query you\n likely want to do so through the Graph class query method.\n\n ', '__init__': <function Processor.__init__>, 'query': <function Processor.query>, '__dict__': <attribute '__dict__' of 'Processor' objects>, '__weakref__': <attribute '__weakref__' of 'Processor' objects>, '__annotations__': {}})¶
- __module__ = 'rdflib.query'¶
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.query.Result(type_)[source]¶
Bases:
object
A common class for representing query result.
There is a bit of magic here that makes this appear like different Python objects, depending on the type of result.
If the type is “SELECT”, iterating will yield lists of ResultRow objects
If the type is “ASK”, iterating will yield a single bool (or bool(result) will return the same bool)
If the type is “CONSTRUCT” or “DESCRIBE” iterating will yield the triples.
len(result) also works.
- Parameters:
type_ (
str
) –
- __dict__ = mappingproxy({'__module__': 'rdflib.query', '__doc__': '\n A common class for representing query result.\n\n There is a bit of magic here that makes this appear like different\n Python objects, depending on the type of result.\n\n If the type is "SELECT", iterating will yield lists of ResultRow objects\n\n If the type is "ASK", iterating will yield a single bool (or\n bool(result) will return the same bool)\n\n If the type is "CONSTRUCT" or "DESCRIBE" iterating will yield the\n triples.\n\n len(result) also works.\n\n ', '__init__': <function Result.__init__>, 'bindings': <property object>, 'parse': <staticmethod object>, 'serialize': <function Result.serialize>, '__len__': <function Result.__len__>, '__bool__': <function Result.__bool__>, '__iter__': <function Result.__iter__>, '__getattr__': <function Result.__getattr__>, '__eq__': <function Result.__eq__>, '__dict__': <attribute '__dict__' of 'Result' objects>, '__weakref__': <attribute '__weakref__' of 'Result' objects>, '__hash__': None, '__annotations__': {'vars': "Optional[List['Variable']]", 'askAnswer': 'bool', 'graph': "'Graph'"}})¶
- __hash__ = None¶
- __module__ = 'rdflib.query'¶
- __weakref__¶
list of weak references to the object (if defined)
- property bindings¶
a list of variable bindings as dicts
- serialize(destination=None, encoding='utf-8', format='xml', **args)[source]¶
Serialize the query result.
The
format
argument determines the Serializer class to use.csv:
CSVResultSerializer
json:
JSONResultSerializer
txt:
TXTResultSerializer
xml:
XMLResultSerializer
- exception rdflib.query.ResultException[source]¶
Bases:
Exception
- __module__ = 'rdflib.query'¶
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.query.ResultParser[source]¶
Bases:
object
- __dict__ = mappingproxy({'__module__': 'rdflib.query', '__init__': <function ResultParser.__init__>, 'parse': <function ResultParser.parse>, '__dict__': <attribute '__dict__' of 'ResultParser' objects>, '__weakref__': <attribute '__weakref__' of 'ResultParser' objects>, '__doc__': None, '__annotations__': {}})¶
- __module__ = 'rdflib.query'¶
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.query.ResultSerializer(result)[source]¶
Bases:
object
- Parameters:
result (
Result
) –
- __dict__ = mappingproxy({'__module__': 'rdflib.query', '__init__': <function ResultSerializer.__init__>, 'serialize': <function ResultSerializer.serialize>, '__dict__': <attribute '__dict__' of 'ResultSerializer' objects>, '__weakref__': <attribute '__weakref__' of 'ResultSerializer' objects>, '__doc__': None, '__annotations__': {}})¶
- __module__ = 'rdflib.query'¶
- __weakref__¶
list of weak references to the object (if defined)
rdflib.resource module¶
The Resource
class wraps a
Graph
and a resource reference (i.e. a rdflib.term.URIRef
or
rdflib.term.BNode
) to support a resource-oriented way of
working with a graph.
It contains methods directly corresponding to those methods of the Graph interface that relate to reading and writing data. The difference is that a Resource also binds a resource identifier, making it possible to work without tracking both the graph and a current subject. This makes for a “resource oriented” style, as compared to the triple orientation of the Graph API.
Resulting generators are also wrapped so that any resource reference values
(rdflib.term.URIRef`s and :class:`rdflib.term.BNode`s) are in turn
wrapped as Resources. (Note that this behaviour differs from the corresponding
methods in :class:`~rdflib.graph.Graph
, where no such conversion takes place.)
Basic Usage Scenario¶
Start by importing things we need and define some namespaces:
>>> from rdflib import *
>>> FOAF = Namespace("http://xmlns.com/foaf/0.1/")
>>> CV = Namespace("http://purl.org/captsolo/resume-rdf/0.2/cv#")
Load some RDF data:
>>> graph = Graph().parse(format='n3', data='''
... @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
... @prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
... @prefix foaf: <http://xmlns.com/foaf/0.1/> .
... @prefix cv: <http://purl.org/captsolo/resume-rdf/0.2/cv#> .
...
... @base <http://example.org/> .
...
... </person/some1#self> a foaf:Person;
... rdfs:comment "Just a Python & RDF hacker."@en;
... foaf:depiction </images/person/some1.jpg>;
... foaf:homepage <http://example.net/>;
... foaf:name "Some Body" .
...
... </images/person/some1.jpg> a foaf:Image;
... rdfs:label "some 1"@en;
... rdfs:comment "Just an image"@en;
... foaf:thumbnail </images/person/some1-thumb.jpg> .
...
... </images/person/some1-thumb.jpg> a foaf:Image .
...
... [] a cv:CV;
... cv:aboutPerson </person/some1#self>;
... cv:hasWorkHistory [ cv:employedIn </#company>;
... cv:startDate "2009-09-04"^^xsd:date ] .
... ''')
Create a Resource:
>>> person = Resource(
... graph, URIRef("http://example.org/person/some1#self"))
Retrieve some basic facts:
>>> person.identifier
rdflib.term.URIRef(u'http://example.org/person/some1#self')
>>> person.value(FOAF.name)
rdflib.term.Literal(u'Some Body')
>>> person.value(RDFS.comment)
rdflib.term.Literal(u'Just a Python & RDF hacker.', lang=u'en')
Resources can be sliced (like graphs, but the subject is fixed):
>>> for name in person[FOAF.name]:
... print(name)
Some Body
>>> person[FOAF.name : Literal("Some Body")]
True
Resources as unicode are represented by their identifiers as unicode:
>>> %(unicode)s(person)
u'Resource(http://example.org/person/some1#self'
Resource references are also Resources, so you can easily get e.g. a qname for the type of a resource, like:
>>> person.value(RDF.type).qname()
u'foaf:Person'
Or for the predicates of a resource:
>>> sorted(
... p.qname() for p in person.predicates()
... )
[u'foaf:depiction', u'foaf:homepage',
u'foaf:name', u'rdf:type', u'rdfs:comment']
Follow relations and get more data from their Resources as well:
>>> for pic in person.objects(FOAF.depiction):
... print(pic.identifier)
... print(pic.value(RDF.type).qname())
... print(pic.value(FOAF.thumbnail).identifier)
http://example.org/images/person/some1.jpg
foaf:Image
http://example.org/images/person/some1-thumb.jpg
>>> for cv in person.subjects(CV.aboutPerson):
... work = list(cv.objects(CV.hasWorkHistory))[0]
... print(work.value(CV.employedIn).identifier)
... print(work.value(CV.startDate))
http://example.org/#company
2009-09-04
It’s just as easy to work with the predicates of a resource:
>>> for s, p in person.subject_predicates():
... print(s.value(RDF.type).qname())
... print(p.qname())
... for s, o in p.subject_objects():
... print(s.value(RDF.type).qname())
... print(o.value(RDF.type).qname())
cv:CV
cv:aboutPerson
cv:CV
foaf:Person
This is useful for e.g. inspection:
>>> thumb_ref = URIRef("http://example.org/images/person/some1-thumb.jpg")
>>> thumb = Resource(graph, thumb_ref)
>>> for p, o in thumb.predicate_objects():
... print(p.qname())
... print(o.qname())
rdf:type
foaf:Image
Schema Example¶
With this artificial schema data:
>>> graph = Graph().parse(format='n3', data='''
... @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
... @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
... @prefix owl: <http://www.w3.org/2002/07/owl#> .
... @prefix v: <http://example.org/def/v#> .
...
... v:Artifact a owl:Class .
...
... v:Document a owl:Class;
... rdfs:subClassOf v:Artifact .
...
... v:Paper a owl:Class;
... rdfs:subClassOf v:Document .
...
... v:Choice owl:oneOf (v:One v:Other) .
...
... v:Stuff a rdf:Seq; rdf:_1 v:One; rdf:_2 v:Other .
...
... ''')
From this class:
>>> artifact = Resource(graph, URIRef("http://example.org/def/v#Artifact"))
we can get at subclasses:
>>> subclasses = list(artifact.transitive_subjects(RDFS.subClassOf))
>>> [c.qname() for c in subclasses]
[u'v:Artifact', u'v:Document', u'v:Paper']
and superclasses from the last subclass:
>>> [c.qname() for c in subclasses[-1].transitive_objects(RDFS.subClassOf)]
[u'v:Paper', u'v:Document', u'v:Artifact']
Get items from the Choice:
>>> choice = Resource(graph, URIRef("http://example.org/def/v#Choice"))
>>> [it.qname() for it in choice.value(OWL.oneOf).items()]
[u'v:One', u'v:Other']
- On add, other resources are auto-unboxed:
>>> paper = Resource(graph, URIRef("http://example.org/def/v#Paper")) >>> paper.add(RDFS.subClassOf, artifact) >>> artifact in paper.objects(RDFS.subClassOf) # checks Resource instance True >>> (paper._identifier, RDFS.subClassOf, artifact._identifier) in graph True
Technical Details¶
Comparison is based on graph and identifier:
>>> g1 = Graph()
>>> t1 = Resource(g1, URIRef("http://example.org/thing"))
>>> t2 = Resource(g1, URIRef("http://example.org/thing"))
>>> t3 = Resource(g1, URIRef("http://example.org/other"))
>>> t4 = Resource(Graph(), URIRef("http://example.org/other"))
>>> t1 is t2
False
>>> t1 == t2
True
>>> t1 != t2
False
>>> t1 == t3
False
>>> t1 != t3
True
>>> t3 != t4
True
>>> t3 < t1 and t1 > t3
True
>>> t1 >= t1 and t1 >= t3
True
>>> t1 <= t1 and t3 <= t1
True
>>> t1 < t1 or t1 < t3 or t3 > t1 or t3 > t3
False
Hash is computed from graph and identifier:
>>> g1 = Graph()
>>> t1 = Resource(g1, URIRef("http://example.org/thing"))
>>> hash(t1) == hash(Resource(g1, URIRef("http://example.org/thing")))
True
>>> hash(t1) == hash(Resource(Graph(), t1.identifier))
False
>>> hash(t1) == hash(Resource(Graph(), URIRef("http://example.org/thing")))
False
The Resource class is suitable as a base class for mapper toolkits. For example, consider this utility for accessing RDF properties via qname-like attributes:
>>> class Item(Resource):
...
... def __getattr__(self, p):
... return list(self.objects(self._to_ref(*p.split('_', 1))))
...
... def _to_ref(self, pfx, name):
... return URIRef(self._graph.store.namespace(pfx) + name)
It works as follows:
>>> graph = Graph().parse(format='n3', data='''
... @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
... @prefix foaf: <http://xmlns.com/foaf/0.1/> .
...
... @base <http://example.org/> .
... </person/some1#self>
... foaf:name "Some Body";
... foaf:depiction </images/person/some1.jpg> .
... </images/person/some1.jpg> rdfs:comment "Just an image"@en .
... ''')
>>> person = Item(graph, URIRef("http://example.org/person/some1#self"))
>>> print(person.foaf_name[0])
Some Body
The mechanism for wrapping references as resources cooperates with subclasses.
Therefore, accessing referenced resources automatically creates new Item
objects:
>>> isinstance(person.foaf_depiction[0], Item)
True
>>> print(person.foaf_depiction[0].rdfs_comment[0])
Just an image
- class rdflib.resource.Resource(graph, subject)[source]¶
Bases:
object
- __dict__ = mappingproxy({'__module__': 'rdflib.resource', '__init__': <function Resource.__init__>, 'graph': <property object>, 'identifier': <property object>, '__hash__': <function Resource.__hash__>, '__eq__': <function Resource.__eq__>, '__ne__': <function Resource.__ne__>, '__lt__': <function Resource.__lt__>, '__gt__': <function Resource.__gt__>, '__le__': <function Resource.__le__>, '__ge__': <function Resource.__ge__>, '__unicode__': <function Resource.__unicode__>, 'add': <function Resource.add>, 'remove': <function Resource.remove>, 'set': <function Resource.set>, 'subjects': <function Resource.subjects>, 'predicates': <function Resource.predicates>, 'objects': <function Resource.objects>, 'subject_predicates': <function Resource.subject_predicates>, 'subject_objects': <function Resource.subject_objects>, 'predicate_objects': <function Resource.predicate_objects>, 'value': <function Resource.value>, 'items': <function Resource.items>, 'transitive_objects': <function Resource.transitive_objects>, 'transitive_subjects': <function Resource.transitive_subjects>, 'qname': <function Resource.qname>, '_resource_pairs': <function Resource._resource_pairs>, '_resource_triples': <function Resource._resource_triples>, '_resources': <function Resource._resources>, '_cast': <function Resource._cast>, '__iter__': <function Resource.__iter__>, '__getitem__': <function Resource.__getitem__>, '__setitem__': <function Resource.__setitem__>, '_new': <function Resource._new>, '__str__': <function Resource.__str__>, '__repr__': <function Resource.__repr__>, '__dict__': <attribute '__dict__' of 'Resource' objects>, '__weakref__': <attribute '__weakref__' of 'Resource' objects>, '__doc__': None, '__annotations__': {}})¶
- __module__ = 'rdflib.resource'¶
- __weakref__¶
list of weak references to the object (if defined)
- property graph¶
- property identifier¶
rdflib.serializer module¶
Serializer plugin interface.
This module is useful for those wanting to write a serializer that can plugin to rdflib. If you are wanting to invoke a serializer you likely want to do so through the Graph class serialize method.
TODO: info for how to write a serializer that can plugin to rdflib. See also rdflib.plugin
- class rdflib.serializer.Serializer(store)[source]¶
Bases:
object
- Parameters:
store (
Graph
) –
- __dict__ = mappingproxy({'__module__': 'rdflib.serializer', '__init__': <function Serializer.__init__>, 'serialize': <function Serializer.serialize>, 'relativize': <function Serializer.relativize>, '__dict__': <attribute '__dict__' of 'Serializer' objects>, '__weakref__': <attribute '__weakref__' of 'Serializer' objects>, '__doc__': None, '__annotations__': {'store': "'Graph'", 'encoding': 'str', 'base': 'Optional[str]'}})¶
- __module__ = 'rdflib.serializer'¶
- __weakref__¶
list of weak references to the object (if defined)
rdflib.store module¶
- class rdflib.store.NodePickler[source]¶
Bases:
object
- __dict__ = mappingproxy({'__module__': 'rdflib.store', '__init__': <function NodePickler.__init__>, '_get_ids': <function NodePickler._get_ids>, 'register': <function NodePickler.register>, 'loads': <function NodePickler.loads>, 'dumps': <function NodePickler.dumps>, '__getstate__': <function NodePickler.__getstate__>, '__setstate__': <function NodePickler.__setstate__>, '__dict__': <attribute '__dict__' of 'NodePickler' objects>, '__weakref__': <attribute '__weakref__' of 'NodePickler' objects>, '__doc__': None, '__annotations__': {}})¶
- __module__ = 'rdflib.store'¶
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.store.Store(configuration=None, identifier=None)[source]¶
Bases:
object
- __dict__ = mappingproxy({'__module__': 'rdflib.store', 'context_aware': False, 'formula_aware': False, 'transaction_aware': False, 'graph_aware': False, '__init__': <function Store.__init__>, 'node_pickler': <property object>, 'create': <function Store.create>, 'open': <function Store.open>, 'close': <function Store.close>, 'destroy': <function Store.destroy>, 'gc': <function Store.gc>, 'add': <function Store.add>, 'addN': <function Store.addN>, 'remove': <function Store.remove>, 'triples_choices': <function Store.triples_choices>, 'triples': <function Store.triples>, '__len__': <function Store.__len__>, 'contexts': <function Store.contexts>, 'query': <function Store.query>, 'update': <function Store.update>, 'bind': <function Store.bind>, 'prefix': <function Store.prefix>, 'namespace': <function Store.namespace>, 'namespaces': <function Store.namespaces>, 'commit': <function Store.commit>, 'rollback': <function Store.rollback>, 'add_graph': <function Store.add_graph>, 'remove_graph': <function Store.remove_graph>, '__dict__': <attribute '__dict__' of 'Store' objects>, '__weakref__': <attribute '__weakref__' of 'Store' objects>, '__doc__': None, '__annotations__': {}})¶
- __init__(configuration=None, identifier=None)[source]¶
identifier: URIRef of the Store. Defaults to CWD configuration: string containing information open can use to connect to datastore.
- __len__(context=None)[source]¶
Number of statements in the store. This should only account for non- quoted (asserted) statements if the context is not specified, otherwise it should return the number of statements in the formula or context given.
- Parameters:
context – a graph instance to query or None
- __module__ = 'rdflib.store'¶
- __weakref__¶
list of weak references to the object (if defined)
- add(triple, context, quoted=False)[source]¶
Adds the given statement to a specific context or to the model. The quoted argument is interpreted by formula-aware stores to indicate this statement is quoted/hypothetical It should be an error to not specify a context and have the quoted argument be True. It should also be an error for the quoted argument to be True when the store is not formula-aware.
- addN(quads)[source]¶
Adds each item in the list of statements to a specific context. The quoted argument is interpreted by formula-aware stores to indicate this statement is quoted/hypothetical. Note that the default implementation is a redirect to add
- add_graph(graph)[source]¶
Add a graph to the store, no effect if the graph already exists. :param graph: a Graph instance
- close(commit_pending_transaction=False)[source]¶
This closes the database connection. The commit_pending_transaction parameter specifies whether to commit all pending transactions before closing (if the store is transactional).
- context_aware = False¶
- contexts(triple=None)[source]¶
Generator over all contexts in the graph. If triple is specified, a generator over all contexts the triple is in.
if store is graph_aware, may also return empty contexts
- Returns:
a generator over Nodes
- destroy(configuration)[source]¶
This destroys the instance of the store identified by the configuration string.
- formula_aware = False¶
- graph_aware = False¶
- property node_pickler¶
- open(configuration, create=False)[source]¶
Opens the store specified by the configuration string. If create is True a store will be created if it does not already exist. If create is False and a store does not already exist an exception is raised. An exception is also raised if a store exists, but there is insufficient permissions to open the store. This should return one of: VALID_STORE, CORRUPTED_STORE, or NO_STORE
- Parameters:
create (
bool
) –
- query(query, initNs, initBindings, queryGraph, **kwargs)[source]¶
If stores provide their own SPARQL implementation, override this.
queryGraph is None, a URIRef or ‘__UNION__’ If None the graph is specified in the query-string/object If URIRef it specifies the graph to query, If ‘__UNION__’ the union of all named graphs should be queried (This is used by ConjunctiveGraphs Values other than None obviously only makes sense for context-aware stores.)
- remove_graph(graph)[source]¶
Remove a graph from the store, this should also remove all triples in the graph
- Parameters:
graphid – a Graph instance
- transaction_aware = False¶
- triples(triple_pattern, context=None)[source]¶
A generator over all the triples matching the pattern. Pattern can include any objects for used for comparing against nodes in the store, for example, REGEXTerm, URIRef, Literal, BNode, Variable, Graph, QuotedGraph, Date? DateRange?
- Parameters:
context – A conjunctive query can be indicated by either providing a value of None, or a specific context can be queries by passing a Graph instance (if store is context aware).
triple_pattern (
Tuple
[Optional
[IdentifiedNode
],Optional
[IdentifiedNode
],Optional
[Node
]]) –
- triples_choices(triple, context=None)[source]¶
A variant of triples that can take a list of terms instead of a single term in any slot. Stores can implement this to optimize the response time from the default ‘fallback’ implementation, which will iterate over each term in the list and dispatch to triples
- update(update, initNs, initBindings, queryGraph, **kwargs)[source]¶
If stores provide their own (SPARQL) Update implementation, override this.
queryGraph is None, a URIRef or ‘__UNION__’ If None the graph is specified in the query-string/object If URIRef it specifies the graph to query, If ‘__UNION__’ the union of all named graphs should be queried (This is used by ConjunctiveGraphs Values other than None obviously only makes sense for context-aware stores.)
- class rdflib.store.StoreCreatedEvent(**kw)[source]¶
Bases:
Event
This event is fired when the Store is created, it has the following attribute:
configuration
: string used to create the store
- __module__ = 'rdflib.store'¶
rdflib.term module¶
This module defines the different types of terms. Terms are the kinds of objects that can appear in a quoted/asserted triple. This includes those that are core to RDF:
Literals
(which consist of a literal value,datatype and language tag)
Those that extend the RDF model into N3:
And those that are primarily for matching against ‘Nodes’ in the underlying Graph:
REGEX Expressions
Date Ranges
Numerical Ranges
- class rdflib.term.BNode(value: ~typing.Optional[str] = None, _sn_gen: ~typing.Callable[[], str] = <function _serial_number_generator.<locals>._generator>, _prefix: str = 'N')[source]¶
Bases:
IdentifiedNode
RDF 1.1’s Blank Nodes Section: https://www.w3.org/TR/rdf11-concepts/#section-blank-nodes
Blank Nodes are local identifiers for unnamed nodes in RDF graphs that are used in some concrete RDF syntaxes or RDF store implementations. They are always locally scoped to the file or RDF store, and are not persistent or portable identifiers for blank nodes. The identifiers for Blank Nodes are not part of the RDF abstract syntax, but are entirely dependent on particular concrete syntax or implementation (such as Turtle, JSON-LD).
—
RDFLib’s
BNode
class makes unique IDs for all the Blank Nodes in a Graph but you should never expect, or reply on, BNodes’ IDs to match across graphs, or even for multiple copies of the same graph, if they are regenerated from some non-RDFLib source, such as loading from RDF data.- __module__ = 'rdflib.term'¶
- static __new__(cls, value=None, _sn_gen=<function _serial_number_generator.<locals>._generator>, _prefix='N')[source]¶
# only store implementations should pass in a value
- __slots__ = ()¶
- n3(namespace_manager=None)[source]¶
- Parameters:
namespace_manager (
Optional
[NamespaceManager
]) –- Return type:
- class rdflib.term.IdentifiedNode(value: str)[source]¶
Bases:
Identifier
An abstract class, primarily defined to identify Nodes that are not Literals.
The name “Identified Node” is not explicitly defined in the RDF specification, but can be drawn from this section: https://www.w3.org/TR/rdf-concepts/#section-URI-Vocabulary
- __dict__ = mappingproxy({'__module__': 'rdflib.term', '__doc__': '\n An abstract class, primarily defined to identify Nodes that are not Literals.\n\n The name "Identified Node" is not explicitly defined in the RDF specification, but can be drawn from this section: https://www.w3.org/TR/rdf-concepts/#section-URI-Vocabulary\n ', '__getnewargs__': <function IdentifiedNode.__getnewargs__>, 'toPython': <function IdentifiedNode.toPython>, '__dict__': <attribute '__dict__' of 'IdentifiedNode' objects>, '__weakref__': <attribute '__weakref__' of 'IdentifiedNode' objects>, '__annotations__': {}})¶
- __module__ = 'rdflib.term'¶
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.term.Identifier(value: str)[source]¶
-
See http://www.w3.org/2002/07/rdf-identifer-terminology/ regarding choice of terminology.
- __eq__(other)[source]¶
Equality for Nodes.
>>> BNode("foo")==None False >>> BNode("foo")==URIRef("foo") False >>> URIRef("foo")==BNode("foo") False >>> BNode("foo")!=URIRef("foo") True >>> URIRef("foo")!=BNode("foo") True >>> Variable('a')!=URIRef('a') True >>> Variable('a')!=Variable('a') False
- __gt__(other)[source]¶
This implements ordering for Nodes,
This tries to implement this: http://www.w3.org/TR/sparql11-query/#modOrderBy
Variables are not included in the SPARQL list, but they are greater than BNodes and smaller than everything else
- __hash__()¶
Return hash(self).
- __module__ = 'rdflib.term'¶
- __slots__ = ()¶
- class rdflib.term.Literal(lexical_or_value: Any, lang: Optional[str] = None, datatype: Optional[str] = None, normalize: Optional[bool] = None)[source]¶
Bases:
Identifier
RDF 1.1’s Literals Section: http://www.w3.org/TR/rdf-concepts/#section-Graph-Literal
Literals are used for values such as strings, numbers, and dates.
A literal in an RDF graph consists of two or three elements:
a lexical form, being a Unicode string, which SHOULD be in Normal Form C
a datatype IRI, being an IRI identifying a datatype that determines how the lexical form maps to a literal value, and
if and only if the datatype IRI is
http://www.w3.org/1999/02/22-rdf-syntax-ns#langString
, a non-empty language tag. The language tag MUST be well-formed according to section 2.2.9 of Tags for identifying languages.
A literal is a language-tagged string if the third element is present. Lexical representations of language tags MAY be converted to lower case. The value space of language tags is always in lower case.
—
For valid XSD datatypes, the lexical form is optionally normalized at construction time. Default behaviour is set by rdflib.NORMALIZE_LITERALS and can be overridden by the normalize parameter to __new__
Equality and hashing of Literals are done based on the lexical form, i.e.:
>>> from rdflib.namespace import XSD
>>> Literal('01') != Literal('1') # clear - strings differ True
but with data-type they get normalized:
>>> Literal('01', datatype=XSD.integer) != Literal('1', datatype=XSD.integer) False
unless disabled:
>>> Literal('01', datatype=XSD.integer, normalize=False) != Literal('1', datatype=XSD.integer) True
Value based comparison is possible:
>>> Literal('01', datatype=XSD.integer).eq(Literal('1', datatype=XSD.float)) True
The eq method also provides limited support for basic python types:
>>> Literal(1).eq(1) # fine - int compatible with xsd:integer True >>> Literal('a').eq('b') # fine - str compatible with plain-lit False >>> Literal('a', datatype=XSD.string).eq('a') # fine - str compatible with xsd:string True >>> Literal('a').eq(1) # not fine, int incompatible with plain-lit NotImplemented
Greater-than/less-than ordering comparisons are also done in value space, when compatible datatypes are used. Incompatible datatypes are ordered by DT, or by lang-tag. For other nodes the ordering is None < BNode < URIRef < Literal
Any comparison with non-rdflib Node are “NotImplemented” In PY3 this is an error.
>>> from rdflib import Literal, XSD >>> lit2006 = Literal('2006-01-01',datatype=XSD.date) >>> lit2006.toPython() datetime.date(2006, 1, 1) >>> lit2006 < Literal('2007-01-01',datatype=XSD.date) True >>> Literal(datetime.utcnow()).datatype rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#dateTime') >>> Literal(1) > Literal(2) # by value False >>> Literal(1) > Literal(2.0) # by value False >>> Literal('1') > Literal(1) # by DT True >>> Literal('1') < Literal('1') # by lexical form False >>> Literal('a', lang='en') > Literal('a', lang='fr') # by lang-tag False >>> Literal(1) > URIRef('foo') # by node-type True
The > < operators will eat this NotImplemented and throw a TypeError (py3k):
>>> Literal(1).__gt__(2.0) NotImplemented
- __abs__()[source]¶
>>> abs(Literal(-1)) rdflib.term.Literal(u'1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
>>> from rdflib.namespace import XSD >>> abs( Literal("-1", datatype=XSD.integer)) rdflib.term.Literal(u'1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
>>> abs(Literal("1")) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Not a number; rdflib.term.Literal(u'1')
- Return type:
- __add__(val)[source]¶
>>> from rdflib.namespace import XSD >>> Literal(1) + 1 rdflib.term.Literal(u'2', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer')) >>> Literal("1") + "1" rdflib.term.Literal(u'11')
# Handling dateTime/date/time based operations in Literals >>> a = Literal(‘2006-01-01T20:50:00’, datatype=XSD.dateTime) >>> b = Literal(‘P31D’, datatype=XSD.duration) >>> (a + b) rdflib.term.Literal(‘2006-02-01T20:50:00’, datatype=rdflib.term.URIRef(’http://www.w3.org/2001/XMLSchema#dateTime’)) >>> from rdflib.namespace import XSD >>> a = Literal(‘2006-07-01T20:52:00’, datatype=XSD.dateTime) >>> b = Literal(‘P122DT15H58M’, datatype=XSD.duration) >>> (a + b) rdflib.term.Literal(‘2006-11-01T12:50:00’, datatype=rdflib.term.URIRef(’http://www.w3.org/2001/XMLSchema#dateTime’))
- __annotations__ = {'_datatype': typing.Union[str, NoneType], '_ill_typed': typing.Union[bool, NoneType], '_language': typing.Union[str, NoneType], '_value': typing.Any}¶
- __bool__()[source]¶
Is the Literal “True” This is used for if statements, bool(literal), etc.
- Return type:
- __eq__(other)[source]¶
Literals are only equal to other literals.
“Two literals are equal if and only if all of the following hold: * The strings of the two lexical forms compare equal, character by character. * Either both or neither have language tags. * The language tags, if any, compare equal. * Either both or neither have datatype URIs. * The two datatype URIs, if any, compare equal, character by character.” – 6.5.1 Literal Equality (RDF: Concepts and Abstract Syntax)
>>> Literal("1", datatype=URIRef("foo")) == Literal("1", datatype=URIRef("foo")) True >>> Literal("1", datatype=URIRef("foo")) == Literal("1", datatype=URIRef("foo2")) False
>>> Literal("1", datatype=URIRef("foo")) == Literal("2", datatype=URIRef("foo")) False >>> Literal("1", datatype=URIRef("foo")) == "asdf" False >>> from rdflib import XSD >>> Literal('2007-01-01', datatype=XSD.date) == Literal('2007-01-01', datatype=XSD.date) True >>> Literal('2007-01-01', datatype=XSD.date) == date(2007, 1, 1) False >>> Literal("one", lang="en") == Literal("one", lang="en") True >>> Literal("hast", lang='en') == Literal("hast", lang='de') False >>> Literal("1", datatype=XSD.integer) == Literal(1) True >>> Literal("1", datatype=XSD.integer) == Literal("01", datatype=XSD.integer) True
- __gt__(other)[source]¶
This implements ordering for Literals, the other comparison methods delegate here
This tries to implement this: http://www.w3.org/TR/sparql11-query/#modOrderBy
In short, Literals with compatible data-types are ordered in value space, i.e. >>> from rdflib import XSD
>>> Literal(1) > Literal(2) # int/int False >>> Literal(2.0) > Literal(1) # double/int True >>> from decimal import Decimal >>> Literal(Decimal("3.3")) > Literal(2.0) # decimal/double True >>> Literal(Decimal("3.3")) < Literal(4.0) # decimal/double True >>> Literal('b') > Literal('a') # plain lit/plain lit True >>> Literal('b') > Literal('a', datatype=XSD.string) # plain lit/xsd:str True
Incompatible datatype mismatches ordered by DT
>>> Literal(1) > Literal("2") # int>string False
Langtagged literals by lang tag >>> Literal(“a”, lang=”en”) > Literal(“a”, lang=”fr”) False
- __hash__()[source]¶
>>> from rdflib.namespace import XSD >>> a = {Literal('1', datatype=XSD.integer):'one'} >>> Literal('1', datatype=XSD.double) in a False
“Called for the key object for dictionary operations, and by the built-in function hash(). Should return a 32-bit integer usable as a hash value for dictionary operations. The only required property is that objects which compare equal have the same hash value; it is advised to somehow mix together (e.g., using exclusive or) the hash values for the components of the object that also play a part in comparison of objects.” – 3.4.1 Basic customization (Python)
“Two literals are equal if and only if all of the following hold: * The strings of the two lexical forms compare equal, character by character. * Either both or neither have language tags. * The language tags, if any, compare equal. * Either both or neither have datatype URIs. * The two datatype URIs, if any, compare equal, character by character.” – 6.5.1 Literal Equality (RDF: Concepts and Abstract Syntax)
- Return type:
- __invert__()[source]¶
>>> ~(Literal(-1)) rdflib.term.Literal(u'0', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
>>> from rdflib.namespace import XSD >>> ~( Literal("-1", datatype=XSD.integer)) rdflib.term.Literal(u'0', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
Not working:
>>> ~(Literal("1")) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Not a number; rdflib.term.Literal(u'1')
- Return type:
- __le__(other)[source]¶
>>> from rdflib.namespace import XSD >>> Literal('2007-01-01T10:00:00', datatype=XSD.dateTime ... ) <= Literal('2007-01-01T10:00:00', datatype=XSD.dateTime) True
- __module__ = 'rdflib.term'¶
- __neg__()[source]¶
>>> (- Literal(1)) rdflib.term.Literal(u'-1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer')) >>> (- Literal(10.5)) rdflib.term.Literal(u'-10.5', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#double')) >>> from rdflib.namespace import XSD >>> (- Literal("1", datatype=XSD.integer)) rdflib.term.Literal(u'-1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
>>> (- Literal("1")) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Not a number; rdflib.term.Literal(u'1') >>>
- Return type:
- __pos__()[source]¶
>>> (+ Literal(1)) rdflib.term.Literal(u'1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer')) >>> (+ Literal(-1)) rdflib.term.Literal(u'-1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer')) >>> from rdflib.namespace import XSD >>> (+ Literal("-1", datatype=XSD.integer)) rdflib.term.Literal(u'-1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
>>> (+ Literal("1")) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Not a number; rdflib.term.Literal(u'1')
- Return type:
- __slots__ = ('_language', '_datatype', '_value', '_ill_typed')¶
- __sub__(val)[source]¶
>>> from rdflib.namespace import XSD >>> Literal(2) - 1 rdflib.term.Literal('1', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#integer')) >>> Literal(1.1) - 1.0 rdflib.term.Literal('0.10000000000000009', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#double')) >>> Literal(1.1) - 1 rdflib.term.Literal('0.1', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#decimal')) >>> Literal(1.1, datatype=XSD.float) - Literal(1.0, datatype=XSD.float) rdflib.term.Literal('0.10000000000000009', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#float')) >>> Literal("1.1") - 1.0 Traceback (most recent call last): ... TypeError: Not a number; rdflib.term.Literal('1.1') >>> Literal(1.1, datatype=XSD.integer) - Literal(1.0, datatype=XSD.integer) rdflib.term.Literal('0.10000000000000009', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#integer'))
# Handling dateTime/date/time based operations in Literals >>> a = Literal(‘2006-01-01T20:50:00’, datatype=XSD.dateTime) >>> b = Literal(‘2006-02-01T20:50:00’, datatype=XSD.dateTime) >>> (b - a) rdflib.term.Literal(‘P31D’, datatype=rdflib.term.URIRef(’http://www.w3.org/2001/XMLSchema#duration’)) >>> from rdflib.namespace import XSD >>> a = Literal(‘2006-07-01T20:52:00’, datatype=XSD.dateTime) >>> b = Literal(‘2006-11-01T12:50:00’, datatype=XSD.dateTime) >>> (a - b) rdflib.term.Literal(‘-P122DT15H58M’, datatype=rdflib.term.URIRef(’http://www.w3.org/2001/XMLSchema#duration’)) >>> (b - a) rdflib.term.Literal(‘P122DT15H58M’, datatype=rdflib.term.URIRef(’http://www.w3.org/2001/XMLSchema#duration’))
- eq(other)[source]¶
Compare the value of this literal with something else
Either, with the value of another literal comparisons are then done in literal “value space”, and according to the rules of XSD subtype-substitution/type-promotion
OR, with a python object:
basestring objects can be compared with plain-literals, or those with datatype xsd:string
bool objects with xsd:boolean
a int, long or float with numeric xsd types
isodate date,time,datetime objects with xsd:date,xsd:time or xsd:datetime
Any other operations returns NotImplemented
- property ill_typed: Optional[bool]¶
For recognized datatype IRIs, this value will be
True
if the literal is ill formed, otherwise it will beFalse
.Literal.value
(i.e. the literal value) should always be defined if this property isFalse
, but should not be considered reliable if this property isTrue
.If the literal’s datatype is
None
or not in the set of recognized datatype IRIs this value will beNone
.
- n3(namespace_manager=None)[source]¶
Returns a representation in the N3 format.
Examples:
>>> Literal("foo").n3() u'"foo"'
Strings with newlines or triple-quotes:
>>> Literal("foo\nbar").n3() u'"""foo\nbar"""' >>> Literal("''\'").n3() u'"\'\'\'"' >>> Literal('"""').n3() u'"\\"\\"\\""'
Language:
>>> Literal("hello", lang="en").n3() u'"hello"@en'
Datatypes:
>>> Literal(1).n3() u'"1"^^<http://www.w3.org/2001/XMLSchema#integer>' >>> Literal(1.0).n3() u'"1.0"^^<http://www.w3.org/2001/XMLSchema#double>' >>> Literal(True).n3() u'"true"^^<http://www.w3.org/2001/XMLSchema#boolean>'
Datatype and language isn’t allowed (datatype takes precedence):
>>> Literal(1, lang="en").n3() u'"1"^^<http://www.w3.org/2001/XMLSchema#integer>'
Custom datatype:
>>> footype = URIRef("http://example.org/ns#foo") >>> Literal("1", datatype=footype).n3() u'"1"^^<http://example.org/ns#foo>'
Passing a namespace-manager will use it to abbreviate datatype URIs:
>>> from rdflib import Graph >>> Literal(1).n3(Graph().namespace_manager) u'"1"^^xsd:integer'
- Parameters:
namespace_manager (
Optional
[NamespaceManager
]) –- Return type:
- normalize()[source]¶
Returns a new literal with a normalised lexical representation of this literal >>> from rdflib import XSD >>> Literal(“01”, datatype=XSD.integer, normalize=False).normalize() rdflib.term.Literal(u’1’, datatype=rdflib.term.URIRef(u’http://www.w3.org/2001/XMLSchema#integer’))
Illegal lexical forms for the datatype given are simply passed on >>> Literal(“a”, datatype=XSD.integer, normalize=False) rdflib.term.Literal(u’a’, datatype=rdflib.term.URIRef(u’http://www.w3.org/2001/XMLSchema#integer’))
- Return type:
- class rdflib.term.Node[source]¶
Bases:
object
A Node in the Graph.
- __module__ = 'rdflib.term'¶
- __slots__ = ()¶
- class rdflib.term.URIRef(value: str, base: Optional[str] = None)[source]¶
Bases:
IdentifiedNode
RDF 1.1’s IRI Section https://www.w3.org/TR/rdf11-concepts/#section-IRIs
Note
Documentation on RDF outside of RDFLib uses the term IRI or URI whereas this class is called URIRef. This is because it was made when the first version of the RDF specification was current, and it used the term URIRef, see RDF 1.0 URIRef
An IRI (Internationalized Resource Identifier) within an RDF graph is a Unicode string that conforms to the syntax defined in RFC 3987.
IRIs in the RDF abstract syntax MUST be absolute, and MAY contain a fragment identifier.
IRIs are a generalization of URIs [RFC3986] that permits a wider range of Unicode characters.
- __annotations__ = {'__invert__': typing.Callable[[ForwardRef('URIRef')], ForwardRef('InvPath')], '__neg__': typing.Callable[[ForwardRef('URIRef')], ForwardRef('NegatedPath')], '__or__': typing.Callable[[ForwardRef('URIRef'), typing.Union[ForwardRef('URIRef'), ForwardRef('Path')]], ForwardRef('AlternativePath')], '__truediv__': typing.Callable[[ForwardRef('URIRef'), typing.Union[ForwardRef('URIRef'), ForwardRef('Path')]], ForwardRef('SequencePath')]}¶
- __invert__()¶
inverse path
- __module__ = 'rdflib.term'¶
- __mul__(mul)¶
cardinality path
- __neg__()¶
negated path
- __or__(other)¶
alternative path
- __slots__ = ()¶
- __truediv__(other)¶
sequence path
- de_skolemize()[source]¶
Create a Blank Node from a skolem URI, in accordance with http://www.w3.org/TR/rdf11-concepts/#section-skolemization. This function accepts only rdflib type skolemization, to provide a round-tripping within the system.
New in version 4.0.
- Return type:
- property fragment: str¶
Return the URL Fragment
>>> URIRef("http://example.com/some/path/#some-fragment").fragment 'some-fragment' >>> URIRef("http://example.com/some/path/").fragment ''
- Return type:
- n3(namespace_manager=None)[source]¶
This will do a limited check for valid URIs, essentially just making sure that the string includes no illegal characters (
<, >, ", {, }, |, \, `, ^
)- Parameters:
namespace_manager (
Optional
[NamespaceManager
]) – if not None, will be used to make up a prefixed name- Return type:
- class rdflib.term.Variable(value: str)[source]¶
Bases:
Identifier
A Variable - this is used for querying, or in Formula aware graphs, where Variables can be stored
- __module__ = 'rdflib.term'¶
- __slots__ = ()¶
- n3(namespace_manager=None)[source]¶
- Parameters:
namespace_manager (
Optional
[NamespaceManager
]) –- Return type:
- rdflib.term.bind(datatype, pythontype, constructor=None, lexicalizer=None, datatype_specific=False)[source]¶
register a new datatype<->pythontype binding
- Parameters:
constructor (
Optional
[Callable
[[str
],Any
]]) – an optional function for converting lexical forms into a Python instances, if not given the pythontype is used directlylexicalizer (
Optional
[Callable
[[Any
],Union
[str
,bytes
]]]) – an optional function for converting python objects to lexical form, if not given object.__str__ is useddatatype_specific (
bool
) – makes the lexicalizer function be accessible from the pair (pythontype, datatype) if set to True or from the pythontype otherwise. False by defaultdatatype (
str
) –
- Return type:
rdflib.util module¶
Some utility functions.
Miscellaneous utilities
list2set
first
uniq
more_than
Term characterisation and generation
to_term
from_n3
Date/time utilities
date_time
parse_date_time
- rdflib.util.date_time(t=None, local_time_zone=False)[source]¶
http://www.w3.org/TR/NOTE-datetime ex: 1997-07-16T19:20:30Z
>>> date_time(1126482850) '2005-09-11T23:54:10Z'
@@ this will change depending on where it is run #>>> date_time(1126482850, local_time_zone=True) #’2005-09-11T19:54:10-04:00’
>>> date_time(1) '1970-01-01T00:00:01Z'
>>> date_time(0) '1970-01-01T00:00:00Z'
- rdflib.util.find_roots(graph, prop, roots=None)[source]¶
Find the roots in some sort of transitive hierarchy.
find_roots(graph, rdflib.RDFS.subClassOf) will return a set of all roots of the sub-class hierarchy
Assumes triple of the form (child, prop, parent), i.e. the direction of RDFS.subClassOf or SKOS.broader
- rdflib.util.first(seq)[source]¶
return the first element in a python sequence for graphs, use graph.value instead
- rdflib.util.from_n3(s, default=None, backend=None, nsm=None)[source]¶
Creates the Identifier corresponding to the given n3 string.
>>> from_n3('<http://ex.com/foo>') == URIRef('http://ex.com/foo') True >>> from_n3('"foo"@de') == Literal('foo', lang='de') True >>> from_n3('"""multi\nline\nstring"""@en') == Literal( ... 'multi\nline\nstring', lang='en') True >>> from_n3('42') == Literal(42) True >>> from_n3(Literal(42).n3()) == Literal(42) True >>> from_n3('"42"^^xsd:integer') == Literal(42) True >>> from rdflib import RDFS >>> from_n3('rdfs:label') == RDFS['label'] True >>> nsm = NamespaceManager(rdflib.graph.Graph()) >>> nsm.bind('dbpedia', 'http://dbpedia.org/resource/') >>> berlin = URIRef('http://dbpedia.org/resource/Berlin') >>> from_n3('dbpedia:Berlin', nsm=nsm) == berlin True
- Parameters:
s (
str
) –
- rdflib.util.get_tree(graph, root, prop, mapper=<function <lambda>>, sortkey=None, done=None, dir='down')[source]¶
Return a nested list/tuple structure representing the tree built by the transitive property given, starting from the root given
i.e.
- get_tree(graph,
rdflib.URIRef(”http://xmlns.com/foaf/0.1/Person”), rdflib.RDFS.subClassOf)
will return the structure for the subClassTree below person.
dir=’down’ assumes triple of the form (child, prop, parent), i.e. the direction of RDFS.subClassOf or SKOS.broader Any other dir traverses in the other direction
- rdflib.util.guess_format(fpath, fmap=None)[source]¶
Guess RDF serialization based on file suffix. Uses
SUFFIX_FORMAT_MAP
unlessfmap
is provided. Examples:>>> guess_format('path/to/file.rdf') 'xml' >>> guess_format('path/to/file.owl') 'xml' >>> guess_format('path/to/file.ttl') 'turtle' >>> guess_format('path/to/file.json') 'json-ld' >>> guess_format('path/to/file.xhtml') 'rdfa' >>> guess_format('path/to/file.svg') 'rdfa' >>> guess_format('path/to/file.xhtml', {'xhtml': 'grddl'}) 'grddl'
This also works with just the suffixes, with or without leading dot, and regardless of letter case:
>>> guess_format('.rdf') 'xml' >>> guess_format('rdf') 'xml' >>> guess_format('RDF') 'xml'
- rdflib.util.list2set(seq)[source]¶
Return a new list without duplicates. Preserves the order, unlike set(seq)
- rdflib.util.more_than(sequence, number)[source]¶
Returns 1 if sequence has more items than number and 0 if not.
- rdflib.util.parse_date_time(val)[source]¶
always returns seconds in UTC
# tests are written like this to make any errors easier to understand >>> parse_date_time(‘2005-09-11T23:54:10Z’) - 1126482850.0 0.0
>>> parse_date_time('2005-09-11T16:54:10-07:00') - 1126482850.0 0.0
>>> parse_date_time('1970-01-01T00:00:01Z') - 1.0 0.0
>>> parse_date_time('1970-01-01T00:00:00Z') - 0.0 0.0 >>> parse_date_time("2005-09-05T10:42:00") - 1125916920.0 0.0
- rdflib.util.to_term(s, default=None)[source]¶
Creates and returns an Identifier of type corresponding to the pattern of the given positional argument string
s
:‘’ returns the
default
keyword argument value orNone
‘<s>’ returns
URIRef(s)
(i.e. without angle brackets)‘“s”’ returns
Literal(s)
(i.e. without doublequotes)‘_s’ returns
BNode(s)
(i.e. without leading underscore)
rdflib.void module¶
- rdflib.void.generateVoID(g, dataset=None, res=None, distinctForPartitions=True)[source]¶
Returns a new graph with a VoID description of the passed dataset
For more info on Vocabulary of Interlinked Datasets (VoID), see: http://vocab.deri.ie/void
This only makes two passes through the triples (once to detect the types of things)
The tradeoff is that lots of temporary structures are built up in memory meaning lots of memory may be consumed :) I imagine at least a few copies of your original graph.
the distinctForPartitions parameter controls whether distinctSubjects/objects are tracked for each class/propertyPartition this requires more memory again
Module contents¶
A pure Python package providing the core RDF constructs.
The packages is intended to provide the core RDF types and interfaces for working with RDF. The package defines a plugin interface for parsers, stores, and serializers that other packages can use to implement parsers, stores, and serializers that will plug into the rdflib package.
The primary interface rdflib
exposes to work with RDF is
rdflib.graph.Graph
.
A tiny example:
>>> from rdflib import Graph, URIRef, Literal
>>> g = Graph()
>>> result = g.parse("http://www.w3.org/2000/10/swap/test/meet/blue.rdf")
>>> print("graph has %s statements." % len(g))
graph has 4 statements.
>>>
>>> for s, p, o in g:
... if (s, p, o) not in g:
... raise Exception("It better be!")
>>> s = g.serialize(format='nt')
>>>
>>> sorted(g) == [
... (URIRef("http://meetings.example.com/cal#m1"),
... URIRef("http://www.example.org/meeting_organization#homePage"),
... URIRef("http://meetings.example.com/m1/hp")),
... (URIRef("http://www.example.org/people#fred"),
... URIRef("http://www.example.org/meeting_organization#attending"),
... URIRef("http://meetings.example.com/cal#m1")),
... (URIRef("http://www.example.org/people#fred"),
... URIRef("http://www.example.org/personal_details#GivenName"),
... Literal("Fred")),
... (URIRef("http://www.example.org/people#fred"),
... URIRef("http://www.example.org/personal_details#hasEmail"),
... URIRef("mailto:fred@example.com"))
... ]
True
- class rdflib.BNode(value: ~typing.Optional[str] = None, _sn_gen: ~typing.Callable[[], str] = <function _serial_number_generator.<locals>._generator>, _prefix: str = 'N')[source]¶
Bases:
IdentifiedNode
RDF 1.1’s Blank Nodes Section: https://www.w3.org/TR/rdf11-concepts/#section-blank-nodes
Blank Nodes are local identifiers for unnamed nodes in RDF graphs that are used in some concrete RDF syntaxes or RDF store implementations. They are always locally scoped to the file or RDF store, and are not persistent or portable identifiers for blank nodes. The identifiers for Blank Nodes are not part of the RDF abstract syntax, but are entirely dependent on particular concrete syntax or implementation (such as Turtle, JSON-LD).
—
RDFLib’s
BNode
class makes unique IDs for all the Blank Nodes in a Graph but you should never expect, or reply on, BNodes’ IDs to match across graphs, or even for multiple copies of the same graph, if they are regenerated from some non-RDFLib source, such as loading from RDF data.- __annotations__ = {}¶
- __module__ = 'rdflib.term'¶
- static __new__(cls, value=None, _sn_gen=<function _serial_number_generator.<locals>._generator>, _prefix='N')[source]¶
# only store implementations should pass in a value
- __slots__ = ()¶
- n3(namespace_manager=None)[source]¶
- Parameters:
namespace_manager (
Optional
[NamespaceManager
]) –- Return type:
- class rdflib.BRICK[source]¶
Bases:
DefinedNamespace
Brick Ontology classes, properties and entity properties. See https://brickschema.org/ for more information.
Generated from: https://github.com/BrickSchema/Brick/releases/download/nightly/Brick.ttl Date: 2021-09-22T14:32:56
- Absorption_Chiller: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Absorption_Chiller')¶
- Acceleration_Time_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Acceleration_Time_Setpoint')¶
- Access_Control_Equipment: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Access_Control_Equipment')¶
- Active_Chilled_Beam: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Active_Chilled_Beam')¶
- Active_Power_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Active_Power_Sensor')¶
- Air_Differential_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Differential_Pressure_Sensor')¶
- Air_Differential_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Differential_Pressure_Setpoint')¶
- Air_Enthalpy_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Enthalpy_Sensor')¶
- Air_Flow_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Flow_Deadband_Setpoint')¶
- Air_Flow_Demand_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Flow_Demand_Setpoint')¶
- Air_Flow_Loss_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Flow_Loss_Alarm')¶
- Air_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Flow_Sensor')¶
- Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Flow_Setpoint')¶
- Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Flow_Setpoint_Limit')¶
- Air_Grains_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Grains_Sensor')¶
- Air_Handler_Unit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Handler_Unit')¶
- Air_Handling_Unit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Handling_Unit')¶
- Air_Humidity_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Humidity_Setpoint')¶
- Air_Quality_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Quality_Sensor')¶
- Air_Static_Pressure_Step_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Static_Pressure_Step_Parameter')¶
- Air_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Temperature_Alarm')¶
- Air_Temperature_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Temperature_Integral_Time_Parameter')¶
- Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Temperature_Sensor')¶
- Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Temperature_Setpoint')¶
- Air_Temperature_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Temperature_Setpoint_Limit')¶
- Air_Temperature_Step_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Temperature_Step_Parameter')¶
- Air_Wet_Bulb_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Air_Wet_Bulb_Temperature_Sensor')¶
- Alarm_Delay_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Alarm_Delay_Parameter')¶
- Automated_External_Defibrillator: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Automated_External_Defibrillator')¶
- Automatic_Mode_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Automatic_Mode_Command')¶
- Availability_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Availability_Status')¶
- Average_Cooling_Demand_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Average_Cooling_Demand_Sensor')¶
- Average_Discharge_Air_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Average_Discharge_Air_Flow_Sensor')¶
- Average_Exhaust_Air_Static_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Average_Exhaust_Air_Static_Pressure_Sensor')¶
- Average_Heating_Demand_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Average_Heating_Demand_Sensor')¶
- Average_Supply_Air_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Average_Supply_Air_Flow_Sensor')¶
- Average_Zone_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Average_Zone_Air_Temperature_Sensor')¶
- Baseboard_Radiator: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Baseboard_Radiator')¶
- Battery_Energy_Storage_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Battery_Energy_Storage_System')¶
- Battery_Voltage_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Battery_Voltage_Sensor')¶
- Box_Mode_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Box_Mode_Command')¶
- Building_Air_Humidity_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Building_Air_Humidity_Setpoint')¶
- Building_Air_Static_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Building_Air_Static_Pressure_Sensor')¶
- Building_Air_Static_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Building_Air_Static_Pressure_Setpoint')¶
- Building_Chilled_Water_Meter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Building_Chilled_Water_Meter')¶
- Building_Electrical_Meter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Building_Electrical_Meter')¶
- Building_Gas_Meter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Building_Gas_Meter')¶
- Building_Hot_Water_Meter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Building_Hot_Water_Meter')¶
- Building_Water_Meter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Building_Water_Meter')¶
- Bypass_Air_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Bypass_Air_Flow_Sensor')¶
- Bypass_Air_Humidity_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Bypass_Air_Humidity_Setpoint')¶
- Bypass_Water_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Bypass_Water_Flow_Sensor')¶
- Bypass_Water_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Bypass_Water_Flow_Setpoint')¶
- CO2_Differential_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#CO2_Differential_Sensor')¶
- CO2_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#CO2_Level_Sensor')¶
- CO_Differential_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#CO_Differential_Sensor')¶
- CO_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#CO_Level_Sensor')¶
- Capacity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Capacity_Sensor')¶
- Centrifugal_Chiller: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Centrifugal_Chiller')¶
- Change_Filter_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Change_Filter_Alarm')¶
- Chilled_Water_Coil: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Coil')¶
- Chilled_Water_Differential_Pressure_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Differential_Pressure_Deadband_Setpoint')¶
- Chilled_Water_Differential_Pressure_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Differential_Pressure_Integral_Time_Parameter')¶
- Chilled_Water_Differential_Pressure_Load_Shed_Reset_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Differential_Pressure_Load_Shed_Reset_Status')¶
- Chilled_Water_Differential_Pressure_Load_Shed_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Differential_Pressure_Load_Shed_Setpoint')¶
- Chilled_Water_Differential_Pressure_Load_Shed_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Differential_Pressure_Load_Shed_Status')¶
- Chilled_Water_Differential_Pressure_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Differential_Pressure_Proportional_Band_Parameter')¶
- Chilled_Water_Differential_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Differential_Pressure_Sensor')¶
- Chilled_Water_Differential_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Differential_Pressure_Setpoint')¶
- Chilled_Water_Differential_Pressure_Step_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Differential_Pressure_Step_Parameter')¶
- Chilled_Water_Differential_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Differential_Temperature_Sensor')¶
- Chilled_Water_Discharge_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Discharge_Flow_Sensor')¶
- Chilled_Water_Discharge_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Discharge_Flow_Setpoint')¶
- Chilled_Water_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Flow_Sensor')¶
- Chilled_Water_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Flow_Setpoint')¶
- Chilled_Water_Loop: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Loop')¶
- Chilled_Water_Meter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Meter')¶
- Chilled_Water_Pump: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Pump')¶
- Chilled_Water_Pump_Differential_Pressure_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Pump_Differential_Pressure_Deadband_Setpoint')¶
- Chilled_Water_Return_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Return_Flow_Sensor')¶
- Chilled_Water_Return_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Return_Temperature_Sensor')¶
- Chilled_Water_Static_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Static_Pressure_Setpoint')¶
- Chilled_Water_Supply_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Supply_Flow_Sensor')¶
- Chilled_Water_Supply_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Supply_Flow_Setpoint')¶
- Chilled_Water_Supply_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Supply_Temperature_Sensor')¶
- Chilled_Water_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_System')¶
- Chilled_Water_System_Enable_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_System_Enable_Command')¶
- Chilled_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Temperature_Sensor')¶
- Chilled_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Temperature_Setpoint')¶
- Chilled_Water_Valve: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Chilled_Water_Valve')¶
- Coldest_Zone_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Coldest_Zone_Air_Temperature_Sensor')¶
- Collection_Basin_Water: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Collection_Basin_Water')¶
- Collection_Basin_Water_Heater: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Collection_Basin_Water_Heater')¶
- Collection_Basin_Water_Level_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Collection_Basin_Water_Level_Alarm')¶
- Collection_Basin_Water_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Collection_Basin_Water_Level_Sensor')¶
- Collection_Basin_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Collection_Basin_Water_Temperature_Sensor')¶
- Communication_Loss_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Communication_Loss_Alarm')¶
- Computer_Room_Air_Conditioning: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Computer_Room_Air_Conditioning')¶
- Condensate_Leak_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Condensate_Leak_Alarm')¶
- Condenser_Heat_Exchanger: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Condenser_Heat_Exchanger')¶
- Condenser_Water: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Condenser_Water')¶
- Condenser_Water_Bypass_Valve: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Condenser_Water_Bypass_Valve')¶
- Condenser_Water_Isolation_Valve: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Condenser_Water_Isolation_Valve')¶
- Condenser_Water_Pump: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Condenser_Water_Pump')¶
- Condenser_Water_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Condenser_Water_System')¶
- Condenser_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Condenser_Water_Temperature_Sensor')¶
- Condenser_Water_Valve: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Condenser_Water_Valve')¶
- Condensing_Natural_Gas_Boiler: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Condensing_Natural_Gas_Boiler')¶
- Conductivity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Conductivity_Sensor')¶
- Conference_Room: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Conference_Room')¶
- Constant_Air_Volume_Box: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Constant_Air_Volume_Box')¶
- Cooling_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Command')¶
- Cooling_Demand_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Demand_Sensor')¶
- Cooling_Demand_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Demand_Setpoint')¶
- Cooling_Discharge_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Discharge_Air_Flow_Setpoint')¶
- Cooling_Discharge_Air_Temperature_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Discharge_Air_Temperature_Deadband_Setpoint')¶
- Cooling_Discharge_Air_Temperature_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Discharge_Air_Temperature_Integral_Time_Parameter')¶
- Cooling_Discharge_Air_Temperature_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Discharge_Air_Temperature_Proportional_Band_Parameter')¶
- Cooling_Start_Stop_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Start_Stop_Status')¶
- Cooling_Supply_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Supply_Air_Flow_Setpoint')¶
- Cooling_Supply_Air_Temperature_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Supply_Air_Temperature_Deadband_Setpoint')¶
- Cooling_Supply_Air_Temperature_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Supply_Air_Temperature_Integral_Time_Parameter')¶
- Cooling_Supply_Air_Temperature_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Supply_Air_Temperature_Proportional_Band_Parameter')¶
- Cooling_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Temperature_Setpoint')¶
- Cooling_Tower_Fan: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Cooling_Tower_Fan')¶
- Core_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Core_Temperature_Sensor')¶
- Core_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Core_Temperature_Setpoint')¶
- Current_Imbalance_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Current_Imbalance_Sensor')¶
- Current_Output_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Current_Output_Sensor')¶
- Curtailment_Override_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Curtailment_Override_Command')¶
- DC_Bus_Voltage_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#DC_Bus_Voltage_Sensor')¶
- Damper_Position_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Damper_Position_Command')¶
- Damper_Position_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Damper_Position_Sensor')¶
- Damper_Position_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Damper_Position_Setpoint')¶
- Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Deadband_Setpoint')¶
- Deceleration_Time_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Deceleration_Time_Setpoint')¶
- Dedicated_Outdoor_Air_System_Unit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Dedicated_Outdoor_Air_System_Unit')¶
- Dehumidification_Start_Stop_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Dehumidification_Start_Stop_Status')¶
- Deionised_Water_Conductivity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Deionised_Water_Conductivity_Sensor')¶
- Deionised_Water_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Deionised_Water_Level_Sensor')¶
- Deionized_Water: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Deionized_Water')¶
- Deionized_Water_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Deionized_Water_Alarm')¶
- Delay_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Delay_Parameter')¶
- Demand_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Demand_Setpoint')¶
- Derivative_Gain_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Derivative_Gain_Parameter')¶
- Derivative_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Derivative_Time_Parameter')¶
- Dew_Point_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Dew_Point_Setpoint')¶
- Dewpoint_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Dewpoint_Sensor')¶
- Differential_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Air_Temperature_Setpoint')¶
- Differential_Pressure_Bypass_Valve: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Pressure_Bypass_Valve')¶
- Differential_Pressure_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Pressure_Deadband_Setpoint')¶
- Differential_Pressure_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Pressure_Integral_Time_Parameter')¶
- Differential_Pressure_Load_Shed_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Pressure_Load_Shed_Status')¶
- Differential_Pressure_Proportional_Band: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Pressure_Proportional_Band')¶
- Differential_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Pressure_Sensor')¶
- Differential_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Pressure_Setpoint')¶
- Differential_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Pressure_Setpoint_Limit')¶
- Differential_Pressure_Step_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Pressure_Step_Parameter')¶
- Differential_Speed_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Speed_Sensor')¶
- Differential_Speed_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Speed_Setpoint')¶
- Differential_Supply_Return_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Differential_Supply_Return_Water_Temperature_Sensor')¶
- Direct_Expansion_Cooling_Coil: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Direct_Expansion_Cooling_Coil')¶
- Direct_Expansion_Heating_Coil: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Direct_Expansion_Heating_Coil')¶
- Direction_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Direction_Command')¶
- Direction_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Direction_Sensor')¶
- Direction_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Direction_Status')¶
- Disable_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Disable_Command')¶
- Disable_Differential_Enthalpy_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Disable_Differential_Enthalpy_Command')¶
- Disable_Differential_Temperature_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Disable_Differential_Temperature_Command')¶
- Disable_Fixed_Enthalpy_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Disable_Fixed_Enthalpy_Command')¶
- Disable_Fixed_Temperature_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Disable_Fixed_Temperature_Command')¶
- Disable_Hot_Water_System_Outside_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Disable_Hot_Water_System_Outside_Air_Temperature_Setpoint')¶
- Discharge_Air_Dewpoint_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Dewpoint_Sensor')¶
- Discharge_Air_Duct_Pressure_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Duct_Pressure_Status')¶
- Discharge_Air_Flow_Demand_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Flow_Demand_Setpoint')¶
- Discharge_Air_Flow_High_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Flow_High_Reset_Setpoint')¶
- Discharge_Air_Flow_Low_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Flow_Low_Reset_Setpoint')¶
- Discharge_Air_Flow_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Flow_Reset_Setpoint')¶
- Discharge_Air_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Flow_Sensor')¶
- Discharge_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Flow_Setpoint')¶
- Discharge_Air_Humidity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Humidity_Sensor')¶
- Discharge_Air_Humidity_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Humidity_Setpoint')¶
- Discharge_Air_Smoke_Detection_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Smoke_Detection_Alarm')¶
- Discharge_Air_Static_Pressure_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Static_Pressure_Deadband_Setpoint')¶
- Discharge_Air_Static_Pressure_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Static_Pressure_Integral_Time_Parameter')¶
- Discharge_Air_Static_Pressure_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Static_Pressure_Proportional_Band_Parameter')¶
- Discharge_Air_Static_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Static_Pressure_Sensor')¶
- Discharge_Air_Static_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Static_Pressure_Setpoint')¶
- Discharge_Air_Static_Pressure_Step_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Static_Pressure_Step_Parameter')¶
- Discharge_Air_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_Alarm')¶
- Discharge_Air_Temperature_Cooling_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_Cooling_Setpoint')¶
- Discharge_Air_Temperature_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_Deadband_Setpoint')¶
- Discharge_Air_Temperature_Heating_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_Heating_Setpoint')¶
- Discharge_Air_Temperature_High_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_High_Reset_Setpoint')¶
- Discharge_Air_Temperature_Low_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_Low_Reset_Setpoint')¶
- Discharge_Air_Temperature_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_Proportional_Band_Parameter')¶
- Discharge_Air_Temperature_Reset_Differential_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_Reset_Differential_Setpoint')¶
- Discharge_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_Sensor')¶
- Discharge_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_Setpoint')¶
- Discharge_Air_Temperature_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_Setpoint_Limit')¶
- Discharge_Air_Temperature_Step_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Temperature_Step_Parameter')¶
- Discharge_Air_Velocity_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Air_Velocity_Pressure_Sensor')¶
- Discharge_Chilled_Water: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Chilled_Water')¶
- Discharge_Hot_Water: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Hot_Water')¶
- Discharge_Water: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Water')¶
- Discharge_Water_Differential_Pressure_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Water_Differential_Pressure_Deadband_Setpoint')¶
- Discharge_Water_Differential_Pressure_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Water_Differential_Pressure_Integral_Time_Parameter')¶
- Discharge_Water_Differential_Pressure_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Water_Differential_Pressure_Proportional_Band_Parameter')¶
- Discharge_Water_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Water_Flow_Sensor')¶
- Discharge_Water_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Water_Flow_Setpoint')¶
- Discharge_Water_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Water_Temperature_Alarm')¶
- Discharge_Water_Temperature_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Water_Temperature_Proportional_Band_Parameter')¶
- Discharge_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Water_Temperature_Sensor')¶
- Discharge_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Discharge_Water_Temperature_Setpoint')¶
- Disconnect_Switch: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Disconnect_Switch')¶
- Displacement_Flow_Air_Diffuser: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Displacement_Flow_Air_Diffuser')¶
- Distribution_Frame: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Distribution_Frame')¶
- Domestic_Hot_Water_Supply_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Domestic_Hot_Water_Supply_Temperature_Sensor')¶
- Domestic_Hot_Water_Supply_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Domestic_Hot_Water_Supply_Temperature_Setpoint')¶
- Domestic_Hot_Water_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Domestic_Hot_Water_System')¶
- Domestic_Hot_Water_System_Enable_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Domestic_Hot_Water_System_Enable_Command')¶
- Domestic_Hot_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Domestic_Hot_Water_Temperature_Setpoint')¶
- Domestic_Hot_Water_Valve: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Domestic_Hot_Water_Valve')¶
- Domestic_Water_Loop: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Domestic_Water_Loop')¶
- Drive_Ready_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Drive_Ready_Status')¶
- Duration_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Duration_Sensor')¶
- EconCycle_Start_Stop_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#EconCycle_Start_Stop_Status')¶
- Economizer_Damper: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Economizer_Damper')¶
- Effective_Air_Temperature_Cooling_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Effective_Air_Temperature_Cooling_Setpoint')¶
- Effective_Air_Temperature_Heating_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Effective_Air_Temperature_Heating_Setpoint')¶
- Effective_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Effective_Air_Temperature_Setpoint')¶
- Effective_Discharge_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Effective_Discharge_Air_Temperature_Setpoint')¶
- Effective_Return_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Effective_Return_Air_Temperature_Setpoint')¶
- Effective_Room_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Effective_Room_Air_Temperature_Setpoint')¶
- Effective_Supply_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Effective_Supply_Air_Temperature_Setpoint')¶
- Effective_Zone_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Effective_Zone_Air_Temperature_Setpoint')¶
- Electric_Baseboard_Radiator: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Electric_Baseboard_Radiator')¶
- Electric_Boiler: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Electric_Boiler')¶
- Electric_Radiator: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Electric_Radiator')¶
- Electrical_Equipment: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Electrical_Equipment')¶
- Electrical_Meter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Electrical_Meter')¶
- Electrical_Power_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Electrical_Power_Sensor')¶
- Electrical_Room: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Electrical_Room')¶
- Electrical_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Electrical_System')¶
- Embedded_Surface_System_Panel: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Embedded_Surface_System_Panel')¶
- Embedded_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Embedded_Temperature_Sensor')¶
- Embedded_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Embedded_Temperature_Setpoint')¶
- Emergency_Air_Flow_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Air_Flow_System')¶
- Emergency_Air_Flow_System_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Air_Flow_System_Status')¶
- Emergency_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Alarm')¶
- Emergency_Generator_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Generator_Alarm')¶
- Emergency_Generator_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Generator_Status')¶
- Emergency_Phone: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Phone')¶
- Emergency_Power_Off_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Power_Off_System')¶
- Emergency_Power_Off_System_Activated_By_High_Temperature_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Power_Off_System_Activated_By_High_Temperature_Status')¶
- Emergency_Power_Off_System_Activated_By_Leak_Detection_System_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Power_Off_System_Activated_By_Leak_Detection_System_Status')¶
- Emergency_Power_Off_System_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Power_Off_System_Status')¶
- Emergency_Push_Button_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Push_Button_Status')¶
- Emergency_Wash_Station: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Emergency_Wash_Station')¶
- Employee_Entrance_Lobby: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Employee_Entrance_Lobby')¶
- Enable_Differential_Enthalpy_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Enable_Differential_Enthalpy_Command')¶
- Enable_Differential_Temperature_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Enable_Differential_Temperature_Command')¶
- Enable_Fixed_Enthalpy_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Enable_Fixed_Enthalpy_Command')¶
- Enable_Fixed_Temperature_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Enable_Fixed_Temperature_Command')¶
- Enable_Hot_Water_System_Outside_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Enable_Hot_Water_System_Outside_Air_Temperature_Setpoint')¶
- Enclosed_Office: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Enclosed_Office')¶
- Energy_Generation_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Energy_Generation_System')¶
- Energy_Storage_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Energy_Storage_System')¶
- Energy_Usage_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Energy_Usage_Sensor')¶
- Entering_Water_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Entering_Water_Flow_Sensor')¶
- Entering_Water_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Entering_Water_Flow_Setpoint')¶
- Entering_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Entering_Water_Temperature_Sensor')¶
- Entering_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Entering_Water_Temperature_Setpoint')¶
- Enthalpy_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Enthalpy_Sensor')¶
- Enthalpy_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Enthalpy_Setpoint')¶
- Environment_Box: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Environment_Box')¶
- Evaporative_Heat_Exchanger: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Evaporative_Heat_Exchanger')¶
- Even_Month_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Even_Month_Status')¶
- Exhaust_Air_Dewpoint_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Dewpoint_Sensor')¶
- Exhaust_Air_Differential_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Differential_Pressure_Sensor')¶
- Exhaust_Air_Differential_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Differential_Pressure_Setpoint')¶
- Exhaust_Air_Flow_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Flow_Integral_Time_Parameter')¶
- Exhaust_Air_Flow_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Flow_Proportional_Band_Parameter')¶
- Exhaust_Air_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Flow_Sensor')¶
- Exhaust_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Flow_Setpoint')¶
- Exhaust_Air_Humidity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Humidity_Sensor')¶
- Exhaust_Air_Humidity_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Humidity_Setpoint')¶
- Exhaust_Air_Stack_Flow_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Stack_Flow_Deadband_Setpoint')¶
- Exhaust_Air_Stack_Flow_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Stack_Flow_Integral_Time_Parameter')¶
- Exhaust_Air_Stack_Flow_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Stack_Flow_Proportional_Band_Parameter')¶
- Exhaust_Air_Stack_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Stack_Flow_Sensor')¶
- Exhaust_Air_Stack_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Stack_Flow_Setpoint')¶
- Exhaust_Air_Static_Pressure_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Static_Pressure_Proportional_Band_Parameter')¶
- Exhaust_Air_Static_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Static_Pressure_Sensor')¶
- Exhaust_Air_Static_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Static_Pressure_Setpoint')¶
- Exhaust_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Temperature_Sensor')¶
- Exhaust_Air_Velocity_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Air_Velocity_Pressure_Sensor')¶
- Exhaust_Fan_Disable_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Fan_Disable_Command')¶
- Exhaust_Fan_Enable_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Exhaust_Fan_Enable_Command')¶
- Eye_Wash_Station: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Eye_Wash_Station')¶
- Fan_On_Off_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Fan_On_Off_Status')¶
- Fault_Reset_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Fault_Reset_Command')¶
- Filter_Differential_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Filter_Differential_Pressure_Sensor')¶
- Filter_Reset_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Filter_Reset_Command')¶
- Fire_Control_Panel: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Fire_Control_Panel')¶
- Fire_Safety_Equipment: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Fire_Safety_Equipment')¶
- Fire_Safety_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Fire_Safety_System')¶
- Food_Service_Room: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Food_Service_Room')¶
- Formaldehyde_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Formaldehyde_Level_Sensor')¶
- Frequency_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Frequency_Command')¶
- Frequency_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Frequency_Sensor')¶
- Fresh_Air_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Fresh_Air_Setpoint_Limit')¶
- Fume_Hood_Air_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Fume_Hood_Air_Flow_Sensor')¶
- Gas_Distribution: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Gas_Distribution')¶
- Hazardous_Materials_Storage: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hazardous_Materials_Storage')¶
- Heat_Exchanger_Supply_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heat_Exchanger_Supply_Water_Temperature_Sensor')¶
- Heat_Exchanger_System_Enable_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heat_Exchanger_System_Enable_Status')¶
- Heat_Recovery_Hot_Water_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heat_Recovery_Hot_Water_System')¶
- Heating_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Command')¶
- Heating_Demand_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Demand_Sensor')¶
- Heating_Demand_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Demand_Setpoint')¶
- Heating_Discharge_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Discharge_Air_Flow_Setpoint')¶
- Heating_Discharge_Air_Temperature_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Discharge_Air_Temperature_Deadband_Setpoint')¶
- Heating_Discharge_Air_Temperature_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Discharge_Air_Temperature_Integral_Time_Parameter')¶
- Heating_Discharge_Air_Temperature_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Discharge_Air_Temperature_Proportional_Band_Parameter')¶
- Heating_Start_Stop_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Start_Stop_Status')¶
- Heating_Supply_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Supply_Air_Flow_Setpoint')¶
- Heating_Supply_Air_Temperature_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Supply_Air_Temperature_Deadband_Setpoint')¶
- Heating_Supply_Air_Temperature_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Supply_Air_Temperature_Integral_Time_Parameter')¶
- Heating_Supply_Air_Temperature_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Supply_Air_Temperature_Proportional_Band_Parameter')¶
- Heating_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Temperature_Setpoint')¶
- Heating_Thermal_Power_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Thermal_Power_Sensor')¶
- Heating_Ventilation_Air_Conditioning_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Heating_Ventilation_Air_Conditioning_System')¶
- High_Discharge_Air_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#High_Discharge_Air_Temperature_Alarm')¶
- High_Head_Pressure_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#High_Head_Pressure_Alarm')¶
- High_Humidity_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#High_Humidity_Alarm')¶
- High_Humidity_Alarm_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#High_Humidity_Alarm_Parameter')¶
- High_Outside_Air_Lockout_Temperature_Differential_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#High_Outside_Air_Lockout_Temperature_Differential_Parameter')¶
- High_Return_Air_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#High_Return_Air_Temperature_Alarm')¶
- High_Static_Pressure_Cutout_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#High_Static_Pressure_Cutout_Setpoint_Limit')¶
- High_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#High_Temperature_Alarm')¶
- High_Temperature_Alarm_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#High_Temperature_Alarm_Parameter')¶
- High_Temperature_Hot_Water_Return_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#High_Temperature_Hot_Water_Return_Temperature_Sensor')¶
- High_Temperature_Hot_Water_Supply_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#High_Temperature_Hot_Water_Supply_Temperature_Sensor')¶
- Hospitality_Box: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hospitality_Box')¶
- Hot_Water_Baseboard_Radiator: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Baseboard_Radiator')¶
- Hot_Water_Differential_Pressure_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Differential_Pressure_Deadband_Setpoint')¶
- Hot_Water_Differential_Pressure_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Differential_Pressure_Integral_Time_Parameter')¶
- Hot_Water_Differential_Pressure_Load_Shed_Reset_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Differential_Pressure_Load_Shed_Reset_Status')¶
- Hot_Water_Differential_Pressure_Load_Shed_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Differential_Pressure_Load_Shed_Status')¶
- Hot_Water_Differential_Pressure_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Differential_Pressure_Proportional_Band_Parameter')¶
- Hot_Water_Differential_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Differential_Pressure_Sensor')¶
- Hot_Water_Differential_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Differential_Pressure_Setpoint')¶
- Hot_Water_Differential_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Differential_Temperature_Sensor')¶
- Hot_Water_Discharge_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Discharge_Flow_Sensor')¶
- Hot_Water_Discharge_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Discharge_Flow_Setpoint')¶
- Hot_Water_Discharge_Temperature_Load_Shed_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Discharge_Temperature_Load_Shed_Status')¶
- Hot_Water_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Flow_Sensor')¶
- Hot_Water_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Flow_Setpoint')¶
- Hot_Water_Meter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Meter')¶
- Hot_Water_Radiator: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Radiator')¶
- Hot_Water_Return_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Return_Flow_Sensor')¶
- Hot_Water_Return_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Return_Temperature_Sensor')¶
- Hot_Water_Static_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Static_Pressure_Setpoint')¶
- Hot_Water_Supply_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Supply_Flow_Sensor')¶
- Hot_Water_Supply_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Supply_Flow_Setpoint')¶
- Hot_Water_Supply_Temperature_High_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Supply_Temperature_High_Reset_Setpoint')¶
- Hot_Water_Supply_Temperature_Load_Shed_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Supply_Temperature_Load_Shed_Status')¶
- Hot_Water_Supply_Temperature_Low_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Supply_Temperature_Low_Reset_Setpoint')¶
- Hot_Water_Supply_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Supply_Temperature_Sensor')¶
- Hot_Water_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_System')¶
- Hot_Water_System_Enable_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_System_Enable_Command')¶
- Hot_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Temperature_Setpoint')¶
- Hot_Water_Usage_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Usage_Sensor')¶
- Hot_Water_Valve: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Hot_Water_Valve')¶
- Humidification_Start_Stop_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Humidification_Start_Stop_Status')¶
- Humidifier_Fault_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Humidifier_Fault_Status')¶
- Humidify_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Humidify_Command')¶
- Humidity_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Humidity_Parameter')¶
- Humidity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Humidity_Sensor')¶
- Humidity_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Humidity_Setpoint')¶
- Humidity_Tolerance_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Humidity_Tolerance_Parameter')¶
- Ice_Tank_Leaving_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Ice_Tank_Leaving_Water_Temperature_Sensor')¶
- Illuminance_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Illuminance_Sensor')¶
- Imbalance_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Imbalance_Sensor')¶
- Information_Area: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Information_Area')¶
- Inside_Face_Surface_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Inside_Face_Surface_Temperature_Sensor')¶
- Inside_Face_Surface_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Inside_Face_Surface_Temperature_Setpoint')¶
- Intake_Air_Filter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Intake_Air_Filter')¶
- Intake_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Intake_Air_Temperature_Sensor')¶
- Integral_Gain_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Integral_Gain_Parameter')¶
- Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Integral_Time_Parameter')¶
- Intercom_Equipment: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Intercom_Equipment')¶
- Intrusion_Detection_Equipment: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Intrusion_Detection_Equipment')¶
- Isolation_Valve: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Isolation_Valve')¶
- Jet_Nozzle_Air_Diffuser: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Jet_Nozzle_Air_Diffuser')¶
- Laminar_Flow_Air_Diffuser: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Laminar_Flow_Air_Diffuser')¶
- Last_Fault_Code_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Last_Fault_Code_Status')¶
- Lead_Lag_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Lead_Lag_Command')¶
- Lead_Lag_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Lead_Lag_Status')¶
- Lead_On_Off_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Lead_On_Off_Command')¶
- Leaving_Water_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Leaving_Water_Flow_Sensor')¶
- Leaving_Water_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Leaving_Water_Flow_Setpoint')¶
- Leaving_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Leaving_Water_Temperature_Sensor')¶
- Leaving_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Leaving_Water_Temperature_Setpoint')¶
- Lighting_Equipment: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Lighting_Equipment')¶
- Lighting_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Lighting_System')¶
- Liquid_Detection_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Liquid_Detection_Alarm')¶
- Load_Current_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Load_Current_Sensor')¶
- Load_Shed_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Load_Shed_Command')¶
- Load_Shed_Differential_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Load_Shed_Differential_Pressure_Setpoint')¶
- Load_Shed_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Load_Shed_Setpoint')¶
- Load_Shed_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Load_Shed_Status')¶
- Locally_On_Off_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Locally_On_Off_Status')¶
- Lockout_Temperature_Differential_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Lockout_Temperature_Differential_Parameter')¶
- Low_Freeze_Protect_Temperature_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Low_Freeze_Protect_Temperature_Parameter')¶
- Low_Humidity_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Low_Humidity_Alarm')¶
- Low_Humidity_Alarm_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Low_Humidity_Alarm_Parameter')¶
- Low_Outside_Air_Lockout_Temperature_Differential_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Low_Outside_Air_Lockout_Temperature_Differential_Parameter')¶
- Low_Outside_Air_Temperature_Enable_Differential_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Low_Outside_Air_Temperature_Enable_Differential_Sensor')¶
- Low_Outside_Air_Temperature_Enable_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Low_Outside_Air_Temperature_Enable_Setpoint')¶
- Low_Return_Air_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Low_Return_Air_Temperature_Alarm')¶
- Low_Suction_Pressure_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Low_Suction_Pressure_Alarm')¶
- Low_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Low_Temperature_Alarm')¶
- Low_Temperature_Alarm_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Low_Temperature_Alarm_Parameter')¶
- Lowest_Exhaust_Air_Static_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Lowest_Exhaust_Air_Static_Pressure_Sensor')¶
- Luminaire_Driver: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Luminaire_Driver')¶
- Luminance_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Luminance_Alarm')¶
- Luminance_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Luminance_Command')¶
- Luminance_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Luminance_Sensor')¶
- Luminance_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Luminance_Setpoint')¶
- Maintenance_Mode_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Maintenance_Mode_Command')¶
- Maintenance_Required_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Maintenance_Required_Alarm')¶
- Makeup_Air_Unit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Makeup_Air_Unit')¶
- Makeup_Water_Valve: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Makeup_Water_Valve')¶
- Manual_Auto_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Manual_Auto_Status')¶
- Max_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Air_Flow_Setpoint_Limit')¶
- Max_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Air_Temperature_Setpoint')¶
- Max_Chilled_Water_Differential_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Chilled_Water_Differential_Pressure_Setpoint_Limit')¶
- Max_Cooling_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Cooling_Discharge_Air_Flow_Setpoint_Limit')¶
- Max_Cooling_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Cooling_Supply_Air_Flow_Setpoint_Limit')¶
- Max_Discharge_Air_Static_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Discharge_Air_Static_Pressure_Setpoint_Limit')¶
- Max_Discharge_Air_Temperature_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Discharge_Air_Temperature_Setpoint_Limit')¶
- Max_Frequency_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Frequency_Command')¶
- Max_Heating_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Heating_Discharge_Air_Flow_Setpoint_Limit')¶
- Max_Heating_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Heating_Supply_Air_Flow_Setpoint_Limit')¶
- Max_Hot_Water_Differential_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Hot_Water_Differential_Pressure_Setpoint_Limit')¶
- Max_Load_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Load_Setpoint')¶
- Max_Occupied_Cooling_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Occupied_Cooling_Discharge_Air_Flow_Setpoint_Limit')¶
- Max_Occupied_Cooling_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Occupied_Cooling_Supply_Air_Flow_Setpoint_Limit')¶
- Max_Occupied_Heating_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Occupied_Heating_Discharge_Air_Flow_Setpoint_Limit')¶
- Max_Occupied_Heating_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Occupied_Heating_Supply_Air_Flow_Setpoint_Limit')¶
- Max_Position_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Position_Setpoint_Limit')¶
- Max_Speed_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Speed_Setpoint_Limit')¶
- Max_Static_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Static_Pressure_Setpoint_Limit')¶
- Max_Supply_Air_Static_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Supply_Air_Static_Pressure_Setpoint_Limit')¶
- Max_Temperature_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Temperature_Setpoint_Limit')¶
- Max_Unoccupied_Cooling_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Unoccupied_Cooling_Discharge_Air_Flow_Setpoint_Limit')¶
- Max_Unoccupied_Cooling_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Unoccupied_Cooling_Supply_Air_Flow_Setpoint_Limit')¶
- Max_Unoccupied_Heating_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Unoccupied_Heating_Discharge_Air_Flow_Setpoint_Limit')¶
- Max_Unoccupied_Heating_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Unoccupied_Heating_Supply_Air_Flow_Setpoint_Limit')¶
- Max_Water_Level_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Water_Level_Alarm')¶
- Max_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Max_Water_Temperature_Setpoint')¶
- Mechanical_Room: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Mechanical_Room')¶
- Media_Production_Room: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Media_Production_Room')¶
- Medium_Temperature_Hot_Water_Differential_Pressure_Load_Shed_Reset_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Differential_Pressure_Load_Shed_Reset_Status')¶
- Medium_Temperature_Hot_Water_Differential_Pressure_Load_Shed_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Differential_Pressure_Load_Shed_Setpoint')¶
- Medium_Temperature_Hot_Water_Differential_Pressure_Load_Shed_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Differential_Pressure_Load_Shed_Status')¶
- Medium_Temperature_Hot_Water_Differential_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Differential_Pressure_Sensor')¶
- Medium_Temperature_Hot_Water_Differential_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Differential_Pressure_Setpoint')¶
- Medium_Temperature_Hot_Water_Discharge_Temperature_High_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Discharge_Temperature_High_Reset_Setpoint')¶
- Medium_Temperature_Hot_Water_Discharge_Temperature_Low_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Discharge_Temperature_Low_Reset_Setpoint')¶
- Medium_Temperature_Hot_Water_Return_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Return_Temperature_Sensor')¶
- Medium_Temperature_Hot_Water_Supply_Temperature_High_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Supply_Temperature_High_Reset_Setpoint')¶
- Medium_Temperature_Hot_Water_Supply_Temperature_Load_Shed_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Supply_Temperature_Load_Shed_Setpoint')¶
- Medium_Temperature_Hot_Water_Supply_Temperature_Load_Shed_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Supply_Temperature_Load_Shed_Status')¶
- Medium_Temperature_Hot_Water_Supply_Temperature_Low_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Supply_Temperature_Low_Reset_Setpoint')¶
- Medium_Temperature_Hot_Water_Supply_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Medium_Temperature_Hot_Water_Supply_Temperature_Sensor')¶
- Methane_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Methane_Level_Sensor')¶
- Min_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Air_Flow_Setpoint_Limit')¶
- Min_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Air_Temperature_Setpoint')¶
- Min_Chilled_Water_Differential_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Chilled_Water_Differential_Pressure_Setpoint_Limit')¶
- Min_Cooling_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Cooling_Discharge_Air_Flow_Setpoint_Limit')¶
- Min_Cooling_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Cooling_Supply_Air_Flow_Setpoint_Limit')¶
- Min_Discharge_Air_Static_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Discharge_Air_Static_Pressure_Setpoint_Limit')¶
- Min_Discharge_Air_Temperature_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Discharge_Air_Temperature_Setpoint_Limit')¶
- Min_Fresh_Air_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Fresh_Air_Setpoint_Limit')¶
- Min_Heating_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Heating_Discharge_Air_Flow_Setpoint_Limit')¶
- Min_Heating_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Heating_Supply_Air_Flow_Setpoint_Limit')¶
- Min_Hot_Water_Differential_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Hot_Water_Differential_Pressure_Setpoint_Limit')¶
- Min_Occupied_Cooling_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Occupied_Cooling_Discharge_Air_Flow_Setpoint_Limit')¶
- Min_Occupied_Cooling_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Occupied_Cooling_Supply_Air_Flow_Setpoint_Limit')¶
- Min_Occupied_Heating_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Occupied_Heating_Discharge_Air_Flow_Setpoint_Limit')¶
- Min_Occupied_Heating_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Occupied_Heating_Supply_Air_Flow_Setpoint_Limit')¶
- Min_Outside_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Outside_Air_Flow_Setpoint_Limit')¶
- Min_Position_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Position_Setpoint_Limit')¶
- Min_Speed_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Speed_Setpoint_Limit')¶
- Min_Static_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Static_Pressure_Setpoint_Limit')¶
- Min_Supply_Air_Static_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Supply_Air_Static_Pressure_Setpoint_Limit')¶
- Min_Temperature_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Temperature_Setpoint_Limit')¶
- Min_Unoccupied_Cooling_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Unoccupied_Cooling_Discharge_Air_Flow_Setpoint_Limit')¶
- Min_Unoccupied_Cooling_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Unoccupied_Cooling_Supply_Air_Flow_Setpoint_Limit')¶
- Min_Unoccupied_Heating_Discharge_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Unoccupied_Heating_Discharge_Air_Flow_Setpoint_Limit')¶
- Min_Unoccupied_Heating_Supply_Air_Flow_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Unoccupied_Heating_Supply_Air_Flow_Setpoint_Limit')¶
- Min_Water_Level_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Water_Level_Alarm')¶
- Min_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Min_Water_Temperature_Setpoint')¶
- Mixed_Air_Filter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Mixed_Air_Filter')¶
- Mixed_Air_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Mixed_Air_Flow_Sensor')¶
- Mixed_Air_Humidity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Mixed_Air_Humidity_Sensor')¶
- Mixed_Air_Humidity_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Mixed_Air_Humidity_Setpoint')¶
- Mixed_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Mixed_Air_Temperature_Sensor')¶
- Mixed_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Mixed_Air_Temperature_Setpoint')¶
- Motor_Control_Center: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Motor_Control_Center')¶
- Motor_Current_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Motor_Current_Sensor')¶
- Motor_Direction_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Motor_Direction_Status')¶
- Motor_On_Off_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Motor_On_Off_Status')¶
- Motor_Speed_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Motor_Speed_Sensor')¶
- Motor_Torque_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Motor_Torque_Sensor')¶
- NO2_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#NO2_Level_Sensor')¶
- Natural_Gas_Boiler: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Natural_Gas_Boiler')¶
- Network_Video_Recorder: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Network_Video_Recorder')¶
- Noncondensing_Natural_Gas_Boiler: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Noncondensing_Natural_Gas_Boiler')¶
- Occupancy_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupancy_Command')¶
- Occupancy_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupancy_Sensor')¶
- Occupancy_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupancy_Status')¶
- Occupied_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Air_Temperature_Setpoint')¶
- Occupied_Cooling_Discharge_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Cooling_Discharge_Air_Flow_Setpoint')¶
- Occupied_Cooling_Supply_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Cooling_Supply_Air_Flow_Setpoint')¶
- Occupied_Cooling_Temperature_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Cooling_Temperature_Deadband_Setpoint')¶
- Occupied_Discharge_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Discharge_Air_Flow_Setpoint')¶
- Occupied_Discharge_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Discharge_Air_Temperature_Setpoint')¶
- Occupied_Heating_Discharge_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Heating_Discharge_Air_Flow_Setpoint')¶
- Occupied_Heating_Supply_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Heating_Supply_Air_Flow_Setpoint')¶
- Occupied_Heating_Temperature_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Heating_Temperature_Deadband_Setpoint')¶
- Occupied_Mode_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Mode_Status')¶
- Occupied_Return_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Return_Air_Temperature_Setpoint')¶
- Occupied_Room_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Room_Air_Temperature_Setpoint')¶
- Occupied_Supply_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Supply_Air_Flow_Setpoint')¶
- Occupied_Supply_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Supply_Air_Temperature_Setpoint')¶
- Occupied_Zone_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Occupied_Zone_Air_Temperature_Setpoint')¶
- On_Timer_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#On_Timer_Sensor')¶
- Open_Close_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Open_Close_Status')¶
- Open_Heating_Valve_Outside_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Open_Heating_Valve_Outside_Air_Temperature_Setpoint')¶
- Operating_Mode_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Operating_Mode_Status')¶
- Output_Frequency_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Output_Frequency_Sensor')¶
- Output_Voltage_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Output_Voltage_Sensor')¶
- Outside_Air_CO2_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_CO2_Sensor')¶
- Outside_Air_CO_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_CO_Sensor')¶
- Outside_Air_Dewpoint_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Dewpoint_Sensor')¶
- Outside_Air_Enthalpy_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Enthalpy_Sensor')¶
- Outside_Air_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Flow_Sensor')¶
- Outside_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Flow_Setpoint')¶
- Outside_Air_Grains_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Grains_Sensor')¶
- Outside_Air_Humidity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Humidity_Sensor')¶
- Outside_Air_Humidity_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Humidity_Setpoint')¶
- Outside_Air_Lockout_Temperature_Differential_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Lockout_Temperature_Differential_Parameter')¶
- Outside_Air_Lockout_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Lockout_Temperature_Setpoint')¶
- Outside_Air_Temperature_Enable_Differential_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Temperature_Enable_Differential_Sensor')¶
- Outside_Air_Temperature_High_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Temperature_High_Reset_Setpoint')¶
- Outside_Air_Temperature_Low_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Temperature_Low_Reset_Setpoint')¶
- Outside_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Temperature_Sensor')¶
- Outside_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Temperature_Setpoint')¶
- Outside_Air_Wet_Bulb_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Air_Wet_Bulb_Temperature_Sensor')¶
- Outside_Face_Surface_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Face_Surface_Temperature_Sensor')¶
- Outside_Face_Surface_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Face_Surface_Temperature_Setpoint')¶
- Outside_Illuminance_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Outside_Illuminance_Sensor')¶
- Overridden_Off_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Overridden_Off_Status')¶
- Overridden_On_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Overridden_On_Status')¶
- Overridden_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Overridden_Status')¶
- Override_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Override_Command')¶
- Ozone_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Ozone_Level_Sensor')¶
- PM10_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#PM10_Level_Sensor')¶
- PM1_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#PM1_Level_Sensor')¶
- PV_Current_Output_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#PV_Current_Output_Sensor')¶
- PV_Generation_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#PV_Generation_System')¶
- Parking_Structure: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Parking_Structure')¶
- Particulate_Matter_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Particulate_Matter_Sensor')¶
- Passive_Chilled_Beam: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Passive_Chilled_Beam')¶
- Peak_Power_Demand_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Peak_Power_Demand_Sensor')¶
- Photovoltaic_Array: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Photovoltaic_Array')¶
- Photovoltaic_Current_Output_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Photovoltaic_Current_Output_Sensor')¶
- Piezoelectric_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Piezoelectric_Sensor')¶
- Position_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Position_Command')¶
- Position_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Position_Sensor')¶
- Power_Loss_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Power_Loss_Alarm')¶
- Pre_Filter_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Pre_Filter_Status')¶
- Preheat_Demand_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Preheat_Demand_Setpoint')¶
- Preheat_Discharge_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Preheat_Discharge_Air_Temperature_Sensor')¶
- Preheat_Hot_Water_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Preheat_Hot_Water_System')¶
- Preheat_Hot_Water_Valve: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Preheat_Hot_Water_Valve')¶
- Preheat_Supply_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Preheat_Supply_Air_Temperature_Sensor')¶
- Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Pressure_Sensor')¶
- Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Pressure_Setpoint')¶
- Pressure_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Pressure_Status')¶
- Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Proportional_Band_Parameter')¶
- Proportional_Gain_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Proportional_Gain_Parameter')¶
- Pump_On_Off_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Pump_On_Off_Status')¶
- Radiant_Ceiling_Panel: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Radiant_Ceiling_Panel')¶
- Radiant_Panel_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Radiant_Panel_Temperature_Sensor')¶
- Radiant_Panel_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Radiant_Panel_Temperature_Setpoint')¶
- Radiation_Hot_Water_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Radiation_Hot_Water_System')¶
- Radioactivity_Concentration_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Radioactivity_Concentration_Sensor')¶
- Radon_Concentration_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Radon_Concentration_Sensor')¶
- Rain_Duration_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Rain_Duration_Sensor')¶
- Rated_Speed_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Rated_Speed_Setpoint')¶
- Reactive_Power_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Reactive_Power_Sensor')¶
- Reheat_Hot_Water_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Reheat_Hot_Water_System')¶
- Relative_Humidity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Relative_Humidity_Sensor')¶
- Remotely_On_Off_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Remotely_On_Off_Status')¶
- Return_Air_CO2_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_CO2_Sensor')¶
- Return_Air_CO2_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_CO2_Setpoint')¶
- Return_Air_CO_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_CO_Sensor')¶
- Return_Air_Dewpoint_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Dewpoint_Sensor')¶
- Return_Air_Differential_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Differential_Pressure_Sensor')¶
- Return_Air_Differential_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Differential_Pressure_Setpoint')¶
- Return_Air_Enthalpy_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Enthalpy_Sensor')¶
- Return_Air_Filter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Filter')¶
- Return_Air_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Flow_Sensor')¶
- Return_Air_Grains_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Grains_Sensor')¶
- Return_Air_Humidity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Humidity_Sensor')¶
- Return_Air_Humidity_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Humidity_Setpoint')¶
- Return_Air_Plenum: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Plenum')¶
- Return_Air_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Temperature_Alarm')¶
- Return_Air_Temperature_High_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Temperature_High_Reset_Setpoint')¶
- Return_Air_Temperature_Low_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Temperature_Low_Reset_Setpoint')¶
- Return_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Temperature_Sensor')¶
- Return_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Air_Temperature_Setpoint')¶
- Return_Chilled_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Chilled_Water_Temperature_Setpoint')¶
- Return_Condenser_Water: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Condenser_Water')¶
- Return_Condenser_Water_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Condenser_Water_Flow_Sensor')¶
- Return_Condenser_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Condenser_Water_Temperature_Sensor')¶
- Return_Condenser_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Condenser_Water_Temperature_Setpoint')¶
- Return_Heating_Valve: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Heating_Valve')¶
- Return_Hot_Water: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Hot_Water')¶
- Return_Hot_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Hot_Water_Temperature_Setpoint')¶
- Return_Water_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Water_Flow_Sensor')¶
- Return_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Water_Temperature_Sensor')¶
- Return_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Return_Water_Temperature_Setpoint')¶
- Room_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Room_Air_Temperature_Setpoint')¶
- Run_Enable_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Run_Enable_Command')¶
- Run_Request_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Run_Request_Status')¶
- Run_Time_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Run_Time_Sensor')¶
- Safety_Equipment: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Safety_Equipment')¶
- Sash_Position_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Sash_Position_Sensor')¶
- Schedule_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Schedule_Temperature_Setpoint')¶
- Security_Equipment: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Security_Equipment')¶
- Security_Service_Room: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Security_Service_Room')¶
- Short_Cycle_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Short_Cycle_Alarm')¶
- Smoke_Detection_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Smoke_Detection_Alarm')¶
- Solar_Azimuth_Angle_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Solar_Azimuth_Angle_Sensor')¶
- Solar_Radiance_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Solar_Radiance_Sensor')¶
- Solar_Thermal_Collector: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Solar_Thermal_Collector')¶
- Solar_Zenith_Angle_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Solar_Zenith_Angle_Sensor')¶
- Speed_Reset_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Speed_Reset_Command')¶
- Speed_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Speed_Setpoint_Limit')¶
- Sports_Service_Room: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Sports_Service_Room')¶
- Stage_Enable_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Stage_Enable_Command')¶
- Standby_Glycool_Unit_On_Off_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Standby_Glycool_Unit_On_Off_Status')¶
- Standby_Load_Shed_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Standby_Load_Shed_Command')¶
- Standby_Unit_On_Off_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Standby_Unit_On_Off_Status')¶
- Start_Stop_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Start_Stop_Command')¶
- Start_Stop_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Start_Stop_Status')¶
- Static_Pressure_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Static_Pressure_Deadband_Setpoint')¶
- Static_Pressure_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Static_Pressure_Integral_Time_Parameter')¶
- Static_Pressure_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Static_Pressure_Proportional_Band_Parameter')¶
- Static_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Static_Pressure_Sensor')¶
- Static_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Static_Pressure_Setpoint')¶
- Static_Pressure_Setpoint_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Static_Pressure_Setpoint_Limit')¶
- Static_Pressure_Step_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Static_Pressure_Step_Parameter')¶
- Steam_Baseboard_Radiator: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Steam_Baseboard_Radiator')¶
- Steam_Distribution: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Steam_Distribution')¶
- Steam_On_Off_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Steam_On_Off_Command')¶
- Steam_Usage_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Steam_Usage_Sensor')¶
- Supply_Air_Differential_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Differential_Pressure_Sensor')¶
- Supply_Air_Differential_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Differential_Pressure_Setpoint')¶
- Supply_Air_Duct_Pressure_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Duct_Pressure_Status')¶
- Supply_Air_Flow_Demand_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Flow_Demand_Setpoint')¶
- Supply_Air_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Flow_Sensor')¶
- Supply_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Flow_Setpoint')¶
- Supply_Air_Humidity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Humidity_Sensor')¶
- Supply_Air_Humidity_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Humidity_Setpoint')¶
- Supply_Air_Integral_Gain_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Integral_Gain_Parameter')¶
- Supply_Air_Plenum: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Plenum')¶
- Supply_Air_Proportional_Gain_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Proportional_Gain_Parameter')¶
- Supply_Air_Static_Pressure_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Static_Pressure_Deadband_Setpoint')¶
- Supply_Air_Static_Pressure_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Static_Pressure_Integral_Time_Parameter')¶
- Supply_Air_Static_Pressure_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Static_Pressure_Proportional_Band_Parameter')¶
- Supply_Air_Static_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Static_Pressure_Sensor')¶
- Supply_Air_Static_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Static_Pressure_Setpoint')¶
- Supply_Air_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Temperature_Alarm')¶
- Supply_Air_Temperature_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Temperature_Deadband_Setpoint')¶
- Supply_Air_Temperature_High_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Temperature_High_Reset_Setpoint')¶
- Supply_Air_Temperature_Low_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Temperature_Low_Reset_Setpoint')¶
- Supply_Air_Temperature_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Temperature_Proportional_Band_Parameter')¶
- Supply_Air_Temperature_Reset_Differential_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Temperature_Reset_Differential_Setpoint')¶
- Supply_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Temperature_Sensor')¶
- Supply_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Temperature_Setpoint')¶
- Supply_Air_Temperature_Step_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Temperature_Step_Parameter')¶
- Supply_Air_Velocity_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Air_Velocity_Pressure_Sensor')¶
- Supply_Chilled_Water: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Chilled_Water')¶
- Supply_Chilled_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Chilled_Water_Temperature_Setpoint')¶
- Supply_Condenser_Water: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Condenser_Water')¶
- Supply_Condenser_Water_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Condenser_Water_Flow_Sensor')¶
- Supply_Condenser_Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Condenser_Water_Temperature_Sensor')¶
- Supply_Condenser_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Condenser_Water_Temperature_Setpoint')¶
- Supply_Hot_Water: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Hot_Water')¶
- Supply_Hot_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Hot_Water_Temperature_Setpoint')¶
- Supply_Water_Differential_Pressure_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Water_Differential_Pressure_Deadband_Setpoint')¶
- Supply_Water_Differential_Pressure_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Water_Differential_Pressure_Integral_Time_Parameter')¶
- Supply_Water_Differential_Pressure_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Water_Differential_Pressure_Proportional_Band_Parameter')¶
- Supply_Water_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Water_Flow_Sensor')¶
- Supply_Water_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Water_Flow_Setpoint')¶
- Supply_Water_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Water_Temperature_Alarm')¶
- Supply_Water_Temperature_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Water_Temperature_Deadband_Setpoint')¶
- Supply_Water_Temperature_Integral_Time_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Water_Temperature_Integral_Time_Parameter')¶
- Supply_Water_Temperature_Proportional_Band_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Water_Temperature_Proportional_Band_Parameter')¶
- Supply_Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Supply_Water_Temperature_Setpoint')¶
- Surveillance_Camera: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Surveillance_Camera')¶
- System_Enable_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#System_Enable_Command')¶
- System_Shutdown_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#System_Shutdown_Status')¶
- TVOC_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#TVOC_Level_Sensor')¶
- Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Temperature_Alarm')¶
- Temperature_Deadband_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Temperature_Deadband_Setpoint')¶
- Temperature_Differential_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Temperature_Differential_Reset_Setpoint')¶
- Temperature_High_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Temperature_High_Reset_Setpoint')¶
- Temperature_Low_Reset_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Temperature_Low_Reset_Setpoint')¶
- Temperature_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Temperature_Parameter')¶
- Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Temperature_Sensor')¶
- Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Temperature_Setpoint')¶
- Temperature_Step_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Temperature_Step_Parameter')¶
- Temperature_Tolerance_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Temperature_Tolerance_Parameter')¶
- Temporary_Occupancy_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Temporary_Occupancy_Status')¶
- Thermal_Power_Meter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Thermal_Power_Meter')¶
- Thermal_Power_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Thermal_Power_Sensor')¶
- Thermally_Activated_Building_System_Panel: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Thermally_Activated_Building_System_Panel')¶
- Ticketing_Booth: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Ticketing_Booth')¶
- Tolerance_Parameter: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Tolerance_Parameter')¶
- Trace_Heat_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Trace_Heat_Sensor')¶
- Transformer_Room: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Transformer_Room')¶
- Underfloor_Air_Plenum: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Underfloor_Air_Plenum')¶
- Underfloor_Air_Plenum_Static_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Underfloor_Air_Plenum_Static_Pressure_Sensor')¶
- Underfloor_Air_Plenum_Static_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Underfloor_Air_Plenum_Static_Pressure_Setpoint')¶
- Underfloor_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Underfloor_Air_Temperature_Sensor')¶
- Unit_Failure_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Unit_Failure_Alarm')¶
- Unoccupied_Air_Temperature_Cooling_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Unoccupied_Air_Temperature_Cooling_Setpoint')¶
- Unoccupied_Air_Temperature_Heating_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Unoccupied_Air_Temperature_Heating_Setpoint')¶
- Unoccupied_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Unoccupied_Air_Temperature_Setpoint')¶
- Unoccupied_Cooling_Discharge_Air_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Unoccupied_Cooling_Discharge_Air_Flow_Setpoint')¶
- Unoccupied_Discharge_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Unoccupied_Discharge_Air_Temperature_Setpoint')¶
- Unoccupied_Load_Shed_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Unoccupied_Load_Shed_Command')¶
- Unoccupied_Return_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Unoccupied_Return_Air_Temperature_Setpoint')¶
- Unoccupied_Room_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Unoccupied_Room_Air_Temperature_Setpoint')¶
- Unoccupied_Supply_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Unoccupied_Supply_Air_Temperature_Setpoint')¶
- Unoccupied_Zone_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Unoccupied_Zone_Air_Temperature_Setpoint')¶
- VFD_Enable_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#VFD_Enable_Command')¶
- Valve_Position_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Valve_Position_Sensor')¶
- Variable_Air_Volume_Box: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Variable_Air_Volume_Box')¶
- Variable_Air_Volume_Box_With_Reheat: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Variable_Air_Volume_Box_With_Reheat')¶
- Variable_Frequency_Drive: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Variable_Frequency_Drive')¶
- Velocity_Pressure_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Velocity_Pressure_Sensor')¶
- Velocity_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Velocity_Pressure_Setpoint')¶
- Vent_Operating_Mode_Status: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Vent_Operating_Mode_Status')¶
- Ventilation_Air_Flow_Ratio_Limit: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Ventilation_Air_Flow_Ratio_Limit')¶
- Ventilation_Air_System: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Ventilation_Air_System')¶
- Video_Surveillance_Equipment: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Video_Surveillance_Equipment')¶
- Voltage_Imbalance_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Voltage_Imbalance_Sensor')¶
- Warm_Cool_Adjust_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Warm_Cool_Adjust_Sensor')¶
- Warmest_Zone_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Warmest_Zone_Air_Temperature_Sensor')¶
- Water_Differential_Pressure_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Differential_Pressure_Setpoint')¶
- Water_Differential_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Differential_Temperature_Sensor')¶
- Water_Differential_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Differential_Temperature_Setpoint')¶
- Water_Distribution: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Distribution')¶
- Water_Flow_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Flow_Sensor')¶
- Water_Flow_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Flow_Setpoint')¶
- Water_Level_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Level_Alarm')¶
- Water_Level_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Level_Sensor')¶
- Water_Loss_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Loss_Alarm')¶
- Water_Temperature_Alarm: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Temperature_Alarm')¶
- Water_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Temperature_Sensor')¶
- Water_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Temperature_Setpoint')¶
- Water_Usage_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Water_Usage_Sensor')¶
- Weather_Station: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Weather_Station')¶
- Wind_Direction_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Wind_Direction_Sensor')¶
- Wind_Speed_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Wind_Speed_Sensor')¶
- Zone_Air_Cooling_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Zone_Air_Cooling_Temperature_Setpoint')¶
- Zone_Air_Dewpoint_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Zone_Air_Dewpoint_Sensor')¶
- Zone_Air_Heating_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Zone_Air_Heating_Temperature_Setpoint')¶
- Zone_Air_Humidity_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Zone_Air_Humidity_Sensor')¶
- Zone_Air_Humidity_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Zone_Air_Humidity_Setpoint')¶
- Zone_Air_Temperature_Sensor: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Zone_Air_Temperature_Sensor')¶
- Zone_Air_Temperature_Setpoint: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Zone_Air_Temperature_Setpoint')¶
- Zone_Standby_Load_Shed_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Zone_Standby_Load_Shed_Command')¶
- Zone_Unoccupied_Load_Shed_Command: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#Zone_Unoccupied_Load_Shed_Command')¶
- buildingPrimaryFunction: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#buildingPrimaryFunction')¶
- buildingThermalTransmittance: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#buildingThermalTransmittance')¶
- conversionEfficiency: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#conversionEfficiency')¶
- coolingCapacity: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#coolingCapacity')¶
- currentFlowType: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#currentFlowType')¶
- electricalPhaseCount: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#electricalPhaseCount')¶
- electricalPhases: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#electricalPhases')¶
- hasAssociatedTag: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#hasAssociatedTag')¶
- hasInputSubstance: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#hasInputSubstance')¶
- hasOutputSubstance: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#hasOutputSubstance')¶
- hasQUDTReference: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#hasQUDTReference')¶
- hasTimeseriesId: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#hasTimeseriesId')¶
- isAssociatedWith: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#isAssociatedWith')¶
- measuredModuleConversionEfficiency: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#measuredModuleConversionEfficiency')¶
- measuredPowerOutput: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#measuredPowerOutput')¶
- operationalStage: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#operationalStage')¶
- operationalStageCount: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#operationalStageCount')¶
- powerComplexity: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#powerComplexity')¶
- ratedModuleConversionEfficiency: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#ratedModuleConversionEfficiency')¶
- ratedPowerOutput: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#ratedPowerOutput')¶
- temperatureCoefficientofPmax: URIRef = rdflib.term.URIRef('https://brickschema.org/schema/Brick#temperatureCoefficientofPmax')¶
- class rdflib.CSVW[source]¶
Bases:
DefinedNamespace
CSVW Namespace Vocabulary Terms
This document describes the RDFS vocabulary description used in the Metadata Vocabulary for Tabular Data [[tabular-metadata]] along with the default JSON-LD Context.
Generated from: http://www.w3.org/ns/csvw Date: 2020-05-26 14:19:58.184766
- class rdflib.ConjunctiveGraph(store='default', identifier=None, default_graph_base=None)[source]¶
Bases:
Graph
A ConjunctiveGraph is an (unnamed) aggregation of all the named graphs in a store.
It has a
default
graph, whose name is associated with the graph throughout its life.__init__()
can take an identifier to use as the name of this default graph or it will assign a BNode.All methods that add triples work against this default graph.
All queries are carried out against the union of all graphs.
- Parameters:
- __annotations__ = {'__identifier': 'Node', '__store': 'Store'}¶
- __module__ = 'rdflib.graph'¶
- add(triple_or_quad)[source]¶
Add a triple or quad to the store.
if a triple is given it is added to the default context
- contexts(triple=None)[source]¶
Iterate over all contexts in the graph
If triple is specified, iterate over all contexts the triple is in.
- get_context(identifier, quoted=False, base=None)[source]¶
Return a context graph for the given identifier
identifier must be a URIRef or BNode.
- parse(source=None, publicID=None, format=None, location=None, file=None, data=None, **args)[source]¶
Parse source adding the resulting triples to its own context (sub graph of this graph).
See
rdflib.graph.Graph.parse()
for documentation on arguments.- Returns:
The graph into which the source was parsed. In the case of n3 it returns the root context.
- remove(triple_or_quad)[source]¶
Removes a triple or quads
if a triple is given it is removed from all contexts
a quad is removed from the given context only
- class rdflib.DC[source]¶
Bases:
DefinedNamespace
Dublin Core Metadata Element Set, Version 1.1
Generated from: https://www.dublincore.org/specifications/dublin-core/dcmi-terms/dublin_core_elements.ttl Date: 2020-05-26 14:19:58.671906
- class rdflib.DCAT[source]¶
Bases:
DefinedNamespace
The data catalog vocabulary
DCAT is an RDF vocabulary designed to facilitate interoperability between data catalogs published on the Web. By using DCAT to describe datasets in data catalogs, publishers increase discoverability and enable applications easily to consume metadata from multiple catalogs. It further enables decentralized publishing of catalogs and facilitates federated dataset search across sites. Aggregated DCAT metadata can serve as a manifest file to facilitate digital preservation. DCAT is defined at http://www.w3.org/TR/vocab-dcat/. Any variance between that normative document and this schema is an error in this schema.
Generated from: https://www.w3.org/ns/dcat2.ttl Date: 2020-05-26 14:19:59.985854
- class rdflib.DCMITYPE[source]¶
Bases:
DefinedNamespace
DCMI Type Vocabulary
Generated from: https://www.dublincore.org/specifications/dublin-core/dcmi-terms/dublin_core_type.ttl Date: 2020-05-26 14:19:59.084150
- class rdflib.DCTERMS[source]¶
Bases:
DefinedNamespace
DCMI Metadata Terms - other
Generated from: https://www.dublincore.org/specifications/dublin-core/dcmi-terms/dublin_core_terms.ttl Date: 2020-05-26 14:20:00.590514
- BibliographicResource: URIRef = rdflib.term.URIRef('http://purl.org/dc/terms/BibliographicResource')¶
- LocationPeriodOrJurisdiction: URIRef = rdflib.term.URIRef('http://purl.org/dc/terms/LocationPeriodOrJurisdiction')¶
- class rdflib.DOAP[source]¶
Bases:
DefinedNamespace
Description of a Project (DOAP) vocabulary
The Description of a Project (DOAP) vocabulary, described using W3C RDF Schema and the Web Ontology Language.
Generated from: http://usefulinc.com/ns/doap Date: 2020-05-26 14:20:01.307972
- class rdflib.Dataset(store='default', default_union=False, default_graph_base=None)[source]¶
Bases:
ConjunctiveGraph
RDF 1.1 Dataset. Small extension to the Conjunctive Graph: - the primary term is graphs in the datasets and not contexts with quads, so there is a separate method to set/retrieve a graph in a dataset and operate with graphs - graphs cannot be identified with blank nodes - added a method to directly add a single quad
Examples of usage:
>>> # Create a new Dataset >>> ds = Dataset() >>> # simple triples goes to default graph >>> ds.add((URIRef("http://example.org/a"), ... URIRef("http://www.example.org/b"), ... Literal("foo"))) <Graph identifier=... (<class 'rdflib.graph.Dataset'>)> >>> >>> # Create a graph in the dataset, if the graph name has already been >>> # used, the corresponding graph will be returned >>> # (ie, the Dataset keeps track of the constituent graphs) >>> g = ds.graph(URIRef("http://www.example.com/gr")) >>> >>> # add triples to the new graph as usual >>> g.add( ... (URIRef("http://example.org/x"), ... URIRef("http://example.org/y"), ... Literal("bar")) ) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> # alternatively: add a quad to the dataset -> goes to the graph >>> ds.add( ... (URIRef("http://example.org/x"), ... URIRef("http://example.org/z"), ... Literal("foo-bar"),g) ) <Graph identifier=... (<class 'rdflib.graph.Dataset'>)> >>> >>> # querying triples return them all regardless of the graph >>> for t in ds.triples((None,None,None)): ... print(t) (rdflib.term.URIRef("http://example.org/a"), rdflib.term.URIRef("http://www.example.org/b"), rdflib.term.Literal("foo")) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/z"), rdflib.term.Literal("foo-bar")) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/y"), rdflib.term.Literal("bar")) >>> >>> # querying quads() return quads; the fourth argument can be unrestricted >>> # (None) or restricted to a graph >>> for q in ds.quads((None, None, None, None)): ... print(q) (rdflib.term.URIRef("http://example.org/a"), rdflib.term.URIRef("http://www.example.org/b"), rdflib.term.Literal("foo"), None) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/y"), rdflib.term.Literal("bar"), rdflib.term.URIRef("http://www.example.com/gr")) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/z"), rdflib.term.Literal("foo-bar"), rdflib.term.URIRef("http://www.example.com/gr")) >>> >>> # unrestricted looping is equivalent to iterating over the entire Dataset >>> for q in ds: ... print(q) (rdflib.term.URIRef("http://example.org/a"), rdflib.term.URIRef("http://www.example.org/b"), rdflib.term.Literal("foo"), None) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/y"), rdflib.term.Literal("bar"), rdflib.term.URIRef("http://www.example.com/gr")) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/z"), rdflib.term.Literal("foo-bar"), rdflib.term.URIRef("http://www.example.com/gr")) >>> >>> # resticting iteration to a graph: >>> for q in ds.quads((None, None, None, g)): ... print(q) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/y"), rdflib.term.Literal("bar"), rdflib.term.URIRef("http://www.example.com/gr")) (rdflib.term.URIRef("http://example.org/x"), rdflib.term.URIRef("http://example.org/z"), rdflib.term.Literal("foo-bar"), rdflib.term.URIRef("http://www.example.com/gr")) >>> # Note that in the call above - >>> # ds.quads((None,None,None,"http://www.example.com/gr")) >>> # would have been accepted, too >>> >>> # graph names in the dataset can be queried: >>> for c in ds.graphs(): ... print(c) # doctest: DEFAULT http://www.example.com/gr >>> # A graph can be created without specifying a name; a skolemized genid >>> # is created on the fly >>> h = ds.graph() >>> for c in ds.graphs(): ... print(c) DEFAULT https://rdflib.github.io/.well-known/genid/rdflib/N... http://www.example.com/gr >>> # Note that the Dataset.graphs() call returns names of empty graphs, >>> # too. This can be restricted: >>> for c in ds.graphs(empty=False): ... print(c) DEFAULT http://www.example.com/gr >>> >>> # a graph can also be removed from a dataset via ds.remove_graph(g)
New in version 4.0.
- __annotations__ = {'__identifier': 'Node', '__store': 'Store'}¶
- __module__ = 'rdflib.graph'¶
- contexts(triple=None)[source]¶
Iterate over all contexts in the graph
If triple is specified, iterate over all contexts the triple is in.
- graphs(triple=None)¶
Iterate over all contexts in the graph
If triple is specified, iterate over all contexts the triple is in.
- parse(source=None, publicID=None, format=None, location=None, file=None, data=None, **args)[source]¶
Parse source adding the resulting triples to its own context (sub graph of this graph).
See
rdflib.graph.Graph.parse()
for documentation on arguments.- Returns:
The graph into which the source was parsed. In the case of n3 it returns the root context.
- class rdflib.FOAF[source]¶
Bases:
DefinedNamespace
Friend of a Friend (FOAF) vocabulary
The Friend of a Friend (FOAF) RDF vocabulary, described using W3C RDF Schema and the Web Ontology Language.
Generated from: http://xmlns.com/foaf/spec/index.rdf Date: 2020-05-26 14:20:01.597998
- OnlineEcommerceAccount: URIRef = rdflib.term.URIRef('http://xmlns.com/foaf/0.1/OnlineEcommerceAccount')¶
- PersonalProfileDocument: URIRef = rdflib.term.URIRef('http://xmlns.com/foaf/0.1/PersonalProfileDocument')¶
- class rdflib.Graph(store='default', identifier=None, namespace_manager=None, base=None, bind_namespaces='core')[source]¶
Bases:
Node
An RDF Graph
The constructor accepts one argument, the “store” that will be used to store the graph data (see the “store” package for stores currently shipped with rdflib).
Stores can be context-aware or unaware. Unaware stores take up (some) less space but cannot support features that require context, such as true merging/demerging of sub-graphs and provenance.
Even if used with a context-aware store, Graph will only expose the quads which belong to the default graph. To access the rest of the data,
ConjunctiveGraph
orDataset
classes can be used instead.The Graph constructor can take an identifier which identifies the Graph by name. If none is given, the graph is assigned a BNode for its identifier.
For more on named graphs, see: http://www.w3.org/2004/03/trix/
- Parameters:
- __and__(other)¶
Set-theoretic intersection. BNode IDs are not changed.
- __annotations__ = {'__identifier': 'Node', '__store': 'Store'}¶
- __dict__ = mappingproxy({'__module__': 'rdflib.graph', '__doc__': 'An RDF Graph\n\n The constructor accepts one argument, the "store"\n that will be used to store the graph data (see the "store"\n package for stores currently shipped with rdflib).\n\n Stores can be context-aware or unaware. Unaware stores take up\n (some) less space but cannot support features that require\n context, such as true merging/demerging of sub-graphs and\n provenance.\n\n Even if used with a context-aware store, Graph will only expose the quads which\n belong to the default graph. To access the rest of the data, `ConjunctiveGraph` or\n `Dataset` classes can be used instead.\n\n The Graph constructor can take an identifier which identifies the Graph\n by name. If none is given, the graph is assigned a BNode for its\n identifier.\n\n For more on named graphs, see: http://www.w3.org/2004/03/trix/\n ', '__init__': <function Graph.__init__>, 'store': <property object>, 'identifier': <property object>, 'namespace_manager': <property object>, '__repr__': <function Graph.__repr__>, '__str__': <function Graph.__str__>, 'toPython': <function Graph.toPython>, 'destroy': <function Graph.destroy>, 'commit': <function Graph.commit>, 'rollback': <function Graph.rollback>, 'open': <function Graph.open>, 'close': <function Graph.close>, 'add': <function Graph.add>, 'addN': <function Graph.addN>, 'remove': <function Graph.remove>, 'triples': <function Graph.triples>, '__getitem__': <function Graph.__getitem__>, '__len__': <function Graph.__len__>, '__iter__': <function Graph.__iter__>, '__contains__': <function Graph.__contains__>, '__hash__': <function Graph.__hash__>, '__cmp__': <function Graph.__cmp__>, '__eq__': <function Graph.__eq__>, '__lt__': <function Graph.__lt__>, '__le__': <function Graph.__le__>, '__gt__': <function Graph.__gt__>, '__ge__': <function Graph.__ge__>, '__iadd__': <function Graph.__iadd__>, '__isub__': <function Graph.__isub__>, '__add__': <function Graph.__add__>, '__mul__': <function Graph.__mul__>, '__sub__': <function Graph.__sub__>, '__xor__': <function Graph.__xor__>, '__or__': <function Graph.__add__>, '__and__': <function Graph.__mul__>, 'set': <function Graph.set>, 'subjects': <function Graph.subjects>, 'predicates': <function Graph.predicates>, 'objects': <function Graph.objects>, 'subject_predicates': <function Graph.subject_predicates>, 'subject_objects': <function Graph.subject_objects>, 'predicate_objects': <function Graph.predicate_objects>, 'triples_choices': <function Graph.triples_choices>, 'value': <function Graph.value>, 'items': <function Graph.items>, 'transitiveClosure': <function Graph.transitiveClosure>, 'transitive_objects': <function Graph.transitive_objects>, 'transitive_subjects': <function Graph.transitive_subjects>, 'qname': <function Graph.qname>, 'compute_qname': <function Graph.compute_qname>, 'bind': <function Graph.bind>, 'namespaces': <function Graph.namespaces>, 'absolutize': <function Graph.absolutize>, 'serialize': <function Graph.serialize>, 'print': <function Graph.print>, 'parse': <function Graph.parse>, 'query': <function Graph.query>, 'update': <function Graph.update>, 'n3': <function Graph.n3>, '__reduce__': <function Graph.__reduce__>, 'isomorphic': <function Graph.isomorphic>, 'connected': <function Graph.connected>, 'all_nodes': <function Graph.all_nodes>, 'collection': <function Graph.collection>, 'resource': <function Graph.resource>, '_process_skolem_tuples': <function Graph._process_skolem_tuples>, 'skolemize': <function Graph.skolemize>, 'de_skolemize': <function Graph.de_skolemize>, 'cbd': <function Graph.cbd>, '__dict__': <attribute '__dict__' of 'Graph' objects>, '__weakref__': <attribute '__weakref__' of 'Graph' objects>, '__annotations__': {'__identifier': 'Node', '__store': 'Store'}})¶
- __getitem__(item)[source]¶
A graph can be “sliced” as a shortcut for the triples method The python slice syntax is (ab)used for specifying triples. A generator over matches is returned, the returned tuples include only the parts not given
>>> import rdflib >>> g = rdflib.Graph() >>> g.add((rdflib.URIRef("urn:bob"), namespace.RDFS.label, rdflib.Literal("Bob"))) <Graph identifier=... (<class 'rdflib.graph.Graph'>)>
>>> list(g[rdflib.URIRef("urn:bob")]) # all triples about bob [(rdflib.term.URIRef('http://www.w3.org/2000/01/rdf-schema#label'), rdflib.term.Literal('Bob'))]
>>> list(g[:namespace.RDFS.label]) # all label triples [(rdflib.term.URIRef('urn:bob'), rdflib.term.Literal('Bob'))]
>>> list(g[::rdflib.Literal("Bob")]) # all triples with bob as object [(rdflib.term.URIRef('urn:bob'), rdflib.term.URIRef('http://www.w3.org/2000/01/rdf-schema#label'))]
Combined with SPARQL paths, more complex queries can be written concisely:
Name of all Bobs friends:
g[bob : FOAF.knows/FOAF.name ]
Some label for Bob:
g[bob : DC.title|FOAF.name|RDFS.label]
All friends and friends of friends of Bob
g[bob : FOAF.knows * “+”]
etc.
New in version 4.0.
- __init__(store='default', identifier=None, namespace_manager=None, base=None, bind_namespaces='core')[source]¶
- __len__()[source]¶
Returns the number of triples in the graph
If context is specified then the number of triples in the context is returned instead.
- __module__ = 'rdflib.graph'¶
- __or__(other)¶
Set-theoretic union BNode IDs are not changed.
- __weakref__¶
list of weak references to the object (if defined)
- bind(prefix, namespace, override=True, replace=False)[source]¶
Bind prefix to namespace
If override is True will bind namespace to given prefix even if namespace was already bound to a different prefix.
if replace, replace any existing prefix with the new namespace
for example: graph.bind(“foaf”, “http://xmlns.com/foaf/0.1/”)
- Return type:
- cbd(resource)[source]¶
Retrieves the Concise Bounded Description of a Resource from a Graph
Concise Bounded Description (CBD) is defined in [1] as:
Given a particular node (the starting node) in a particular RDF graph (the source graph), a subgraph of that particular graph, taken to comprise a concise bounded description of the resource denoted by the starting node, can be identified as follows:
- Include in the subgraph all statements in the source graph where the subject of the statement is the
starting node;
- Recursively, for all statements identified in the subgraph thus far having a blank node object, include
in the subgraph all statements in the source graph where the subject of the statement is the blank node in question and which are not already included in the subgraph.
- Recursively, for all statements included in the subgraph thus far, for all reifications of each statement
in the source graph, include the concise bounded description beginning from the rdf:Statement node of each reification.
This results in a subgraph where the object nodes are either URI references, literals, or blank nodes not serving as the subject of any statement in the graph.
[1] https://www.w3.org/Submission/CBD/
- Parameters:
resource – a URIRef object, of the Resource for queried for
- Returns:
a Graph, subgraph of self
- close(commit_pending_transaction=False)[source]¶
Close the graph store
Might be necessary for stores that require closing a connection to a database or releasing some resource.
- collection(identifier)[source]¶
Create a new
Collection
instance.Parameters:
identifier
: a URIRef or BNode instance.
Example:
>>> graph = Graph() >>> uri = URIRef("http://example.org/resource") >>> collection = graph.collection(uri) >>> assert isinstance(collection, Collection) >>> assert collection.uri is uri >>> assert collection.graph is graph >>> collection += [ Literal(1), Literal(2) ]
- connected()[source]¶
Check if the Graph is connected
The Graph is considered undirectional.
Performs a search on the Graph, starting from a random node. Then iteratively goes depth-first through the triplets where the node is subject and object. Return True if all nodes have been visited and False if it cannot continue and there are still unvisited nodes left.
- isomorphic(other)[source]¶
does a very basic check if these graphs are the same If no BNodes are involved, this is accurate.
See rdflib.compare for a correct implementation of isomorphism checks
- items(list)[source]¶
Generator over all items in the resource specified by list
list is an RDF collection.
- property namespace_manager: NamespaceManager¶
this graph’s namespace-manager
- Return type:
- objects(subject=None, predicate=None, unique=False)[source]¶
A generator of (optionally unique) objects with the given subject and predicate
- open(configuration, create=False)[source]¶
Open the graph store
Might be necessary for stores that require opening a connection to a database or acquiring some resource.
- parse(source=None, publicID=None, format=None, location=None, file=None, data=None, **args)[source]¶
Parse an RDF source adding the resulting triples to the Graph.
The source is specified using one of source, location, file or data.
- Parameters:
source
: An InputSource, file-like object, or string. In the case of a string the string is the location of the source.location
: A string indicating the relative or absolute URL of the source. Graph’s absolutize method is used if a relative location is specified.file
: A file-like object.data
: A string containing the data to be parsed.format
: Used if format can not be determined from source, e.g. file extension or Media Type. Defaults to text/turtle. Format support can be extended with plugins, but “xml”, “n3” (use for turtle), “nt” & “trix” are built in.publicID
: the logical URI to use as the document base. If None specified the document location is used (at least in the case where there is a document location).
- Returns:
self, the graph instance.
Examples:
>>> my_data = ''' ... <rdf:RDF ... xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" ... xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" ... > ... <rdf:Description> ... <rdfs:label>Example</rdfs:label> ... <rdfs:comment>This is really just an example.</rdfs:comment> ... </rdf:Description> ... </rdf:RDF> ... ''' >>> import tempfile >>> fd, file_name = tempfile.mkstemp() >>> f = os.fdopen(fd, "w") >>> dummy = f.write(my_data) # Returns num bytes written >>> f.close()
>>> g = Graph() >>> result = g.parse(data=my_data, format="application/rdf+xml") >>> len(g) 2
>>> g = Graph() >>> result = g.parse(location=file_name, format="application/rdf+xml") >>> len(g) 2
>>> g = Graph() >>> with open(file_name, "r") as f: ... result = g.parse(f, format="application/rdf+xml") >>> len(g) 2
>>> os.remove(file_name)
>>> # default turtle parsing >>> result = g.parse(data="<http://example.com/a> <http://example.com/a> <http://example.com/a> .") >>> len(g) 3
- predicate_objects(subject=None, unique=False)[source]¶
A generator of (optionally unique) (predicate, object) tuples for the given subject
- predicates(subject=None, object=None, unique=False)[source]¶
A generator of (optionally unique) predicates with the given subject and object
- query(query_object, processor='sparql', result='sparql', initNs=None, initBindings=None, use_store_provided=True, **kwargs)[source]¶
Query this graph.
A type of ‘prepared queries’ can be realised by providing initial variable bindings with initBindings
Initial namespaces are used to resolve prefixes used in the query, if none are given, the namespaces from the graph’s namespace manager are used.
- remove(triple)[source]¶
Remove a triple from the graph
If the triple does not provide a context attribute, removes the triple from all contexts.
- resource(identifier)[source]¶
Create a new
Resource
instance.Parameters:
identifier
: a URIRef or BNode instance.
Example:
>>> graph = Graph() >>> uri = URIRef("http://example.org/resource") >>> resource = graph.resource(uri) >>> assert isinstance(resource, Resource) >>> assert resource.identifier is uri >>> assert resource.graph is graph
- serialize(destination: None, format: str, base: Optional[str], encoding: str, **args) bytes [source]¶
- serialize(destination: None = None, format: str = 'turtle', base: Optional[str] = None, *, encoding: str, **args) bytes
- serialize(destination: None = None, format: str = 'turtle', base: Optional[str] = None, encoding: None = None, **args) str
- serialize(destination: Union[str, PurePath, IO[bytes]], format: str = 'turtle', base: Optional[str] = None, encoding: Optional[str] = None, **args) Graph
- serialize(destination: Optional[Union[str, PurePath, IO[bytes]]] = None, format: str = 'turtle', base: Optional[str] = None, encoding: Optional[str] = None, **args) Union[bytes, str, Graph]
Serialize the graph.
- Parameters:
destination (
Union
[str
,PurePath
,IO
[bytes
],None
]) – The destination to serialize the graph to. This can be a path as astr
orPurePath
object, or it can be aIO[bytes]
like object. If this parameter is not supplied the serialized graph will be returned.format (
str
) – The format that the output should be written in. This value references aSerializer
plugin. Format support can be extended with plugins, but"xml"
,"n3"
,"turtle"
,"nt"
,"pretty-xml"
,"trix"
,"trig"
,"nquads"
,"json-ld"
and"hext"
are built in. Defaults to"turtle"
.base (
Optional
[str
]) – The base IRI for formats that support it. For the turtle format this will be used as the@base
directive.args (
Any
) – Additional arguments to pass to theSerializer
that will be used.
- Returns:
The serialized graph if
destination
isNone
. The serialized graph is returned asstr
if no encoding is specified, and asbytes
if an encoding is specified.- Return type:
- Return type:
- Returns:
- Return type:
- set(triple)[source]¶
Convenience method to update the value of object
Remove any existing triples for subject and predicate before adding (subject, predicate, object).
- subject_objects(predicate=None, unique=False)[source]¶
A generator of (optionally unique) (subject, object) tuples for the given predicate
- subject_predicates(object=None, unique=False)[source]¶
A generator of (optionally unique) (subject, predicate) tuples for the given object
- subjects(predicate=None, object=None, unique=False)[source]¶
A generator of (optionally unique) subjects with the given predicate and object
- transitiveClosure(func, arg, seen=None)[source]¶
Generates transitive closure of a user-defined function against the graph
>>> from rdflib.collection import Collection >>> g=Graph() >>> a=BNode("foo") >>> b=BNode("bar") >>> c=BNode("baz") >>> g.add((a,RDF.first,RDF.type)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((a,RDF.rest,b)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((b,RDF.first,namespace.RDFS.label)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((b,RDF.rest,c)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((c,RDF.first,namespace.RDFS.comment)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> g.add((c,RDF.rest,RDF.nil)) <Graph identifier=... (<class 'rdflib.graph.Graph'>)> >>> def topList(node,g): ... for s in g.subjects(RDF.rest, node): ... yield s >>> def reverseList(node,g): ... for f in g.objects(node, RDF.first): ... print(f) ... for s in g.subjects(RDF.rest, node): ... yield s
>>> [rt for rt in g.transitiveClosure( ... topList,RDF.nil)] [rdflib.term.BNode('baz'), rdflib.term.BNode('bar'), rdflib.term.BNode('foo')]
>>> [rt for rt in g.transitiveClosure( ... reverseList,RDF.nil)] http://www.w3.org/2000/01/rdf-schema#comment http://www.w3.org/2000/01/rdf-schema#label http://www.w3.org/1999/02/22-rdf-syntax-ns#type [rdflib.term.BNode('baz'), rdflib.term.BNode('bar'), rdflib.term.BNode('foo')]
- transitive_objects(subject, predicate, remember=None)[source]¶
Transitively generate objects for the
predicate
relationshipGenerated objects belong to the depth first transitive closure of the
predicate
relationship starting atsubject
.
- transitive_subjects(predicate, object, remember=None)[source]¶
Transitively generate subjects for the
predicate
relationshipGenerated subjects belong to the depth first transitive closure of the
predicate
relationship starting atobject
.
- triples(triple: _TriplePatternType) Generator[_TripleType, None, None] [source]¶
- triples(triple: Tuple[Optional[_SubjectType], Path, Optional[_ObjectType]]) Generator[Tuple[_SubjectType, Path, _ObjectType], None, None]
- triples(triple: Tuple[Optional[_SubjectType], Union[None, Path, _PredicateType], Optional[_ObjectType]]) Generator[Tuple[_SubjectType, Union[_PredicateType, Path], _ObjectType], None, None]
Generator over the triple store
Returns triples that match the given triple pattern. If triple pattern does not provide a context, all contexts will be searched.
- update(update_object, processor='sparql', initNs=None, initBindings=None, use_store_provided=True, **kwargs)[source]¶
Update this graph with the given update query.
- value(subject=None, predicate=rdflib.term.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#value'), object=None, default=None, any=True)[source]¶
Get a value for a pair of two criteria
Exactly one of subject, predicate, object must be None. Useful if one knows that there may only be one value.
It is one of those situations that occur a lot, hence this ‘macro’ like utility
Parameters: subject, predicate, object – exactly one must be None default – value to be returned if no values found any – if True, return any value in the case there is more than one, else, raise UniquenessError
- class rdflib.IdentifiedNode(value: str)[source]¶
Bases:
Identifier
An abstract class, primarily defined to identify Nodes that are not Literals.
The name “Identified Node” is not explicitly defined in the RDF specification, but can be drawn from this section: https://www.w3.org/TR/rdf-concepts/#section-URI-Vocabulary
- __annotations__ = {}¶
- __dict__ = mappingproxy({'__module__': 'rdflib.term', '__doc__': '\n An abstract class, primarily defined to identify Nodes that are not Literals.\n\n The name "Identified Node" is not explicitly defined in the RDF specification, but can be drawn from this section: https://www.w3.org/TR/rdf-concepts/#section-URI-Vocabulary\n ', '__getnewargs__': <function IdentifiedNode.__getnewargs__>, 'toPython': <function IdentifiedNode.toPython>, '__dict__': <attribute '__dict__' of 'IdentifiedNode' objects>, '__weakref__': <attribute '__weakref__' of 'IdentifiedNode' objects>, '__annotations__': {}})¶
- __module__ = 'rdflib.term'¶
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.Literal(lexical_or_value: Any, lang: Optional[str] = None, datatype: Optional[str] = None, normalize: Optional[bool] = None)[source]¶
Bases:
Identifier
RDF 1.1’s Literals Section: http://www.w3.org/TR/rdf-concepts/#section-Graph-Literal
Literals are used for values such as strings, numbers, and dates.
A literal in an RDF graph consists of two or three elements:
a lexical form, being a Unicode string, which SHOULD be in Normal Form C
a datatype IRI, being an IRI identifying a datatype that determines how the lexical form maps to a literal value, and
if and only if the datatype IRI is
http://www.w3.org/1999/02/22-rdf-syntax-ns#langString
, a non-empty language tag. The language tag MUST be well-formed according to section 2.2.9 of Tags for identifying languages.
A literal is a language-tagged string if the third element is present. Lexical representations of language tags MAY be converted to lower case. The value space of language tags is always in lower case.
—
For valid XSD datatypes, the lexical form is optionally normalized at construction time. Default behaviour is set by rdflib.NORMALIZE_LITERALS and can be overridden by the normalize parameter to __new__
Equality and hashing of Literals are done based on the lexical form, i.e.:
>>> from rdflib.namespace import XSD
>>> Literal('01') != Literal('1') # clear - strings differ True
but with data-type they get normalized:
>>> Literal('01', datatype=XSD.integer) != Literal('1', datatype=XSD.integer) False
unless disabled:
>>> Literal('01', datatype=XSD.integer, normalize=False) != Literal('1', datatype=XSD.integer) True
Value based comparison is possible:
>>> Literal('01', datatype=XSD.integer).eq(Literal('1', datatype=XSD.float)) True
The eq method also provides limited support for basic python types:
>>> Literal(1).eq(1) # fine - int compatible with xsd:integer True >>> Literal('a').eq('b') # fine - str compatible with plain-lit False >>> Literal('a', datatype=XSD.string).eq('a') # fine - str compatible with xsd:string True >>> Literal('a').eq(1) # not fine, int incompatible with plain-lit NotImplemented
Greater-than/less-than ordering comparisons are also done in value space, when compatible datatypes are used. Incompatible datatypes are ordered by DT, or by lang-tag. For other nodes the ordering is None < BNode < URIRef < Literal
Any comparison with non-rdflib Node are “NotImplemented” In PY3 this is an error.
>>> from rdflib import Literal, XSD >>> lit2006 = Literal('2006-01-01',datatype=XSD.date) >>> lit2006.toPython() datetime.date(2006, 1, 1) >>> lit2006 < Literal('2007-01-01',datatype=XSD.date) True >>> Literal(datetime.utcnow()).datatype rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#dateTime') >>> Literal(1) > Literal(2) # by value False >>> Literal(1) > Literal(2.0) # by value False >>> Literal('1') > Literal(1) # by DT True >>> Literal('1') < Literal('1') # by lexical form False >>> Literal('a', lang='en') > Literal('a', lang='fr') # by lang-tag False >>> Literal(1) > URIRef('foo') # by node-type True
The > < operators will eat this NotImplemented and throw a TypeError (py3k):
>>> Literal(1).__gt__(2.0) NotImplemented
- __abs__()[source]¶
>>> abs(Literal(-1)) rdflib.term.Literal(u'1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
>>> from rdflib.namespace import XSD >>> abs( Literal("-1", datatype=XSD.integer)) rdflib.term.Literal(u'1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
>>> abs(Literal("1")) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Not a number; rdflib.term.Literal(u'1')
- Return type:
- __add__(val)[source]¶
>>> from rdflib.namespace import XSD >>> Literal(1) + 1 rdflib.term.Literal(u'2', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer')) >>> Literal("1") + "1" rdflib.term.Literal(u'11')
# Handling dateTime/date/time based operations in Literals >>> a = Literal(‘2006-01-01T20:50:00’, datatype=XSD.dateTime) >>> b = Literal(‘P31D’, datatype=XSD.duration) >>> (a + b) rdflib.term.Literal(‘2006-02-01T20:50:00’, datatype=rdflib.term.URIRef(’http://www.w3.org/2001/XMLSchema#dateTime’)) >>> from rdflib.namespace import XSD >>> a = Literal(‘2006-07-01T20:52:00’, datatype=XSD.dateTime) >>> b = Literal(‘P122DT15H58M’, datatype=XSD.duration) >>> (a + b) rdflib.term.Literal(‘2006-11-01T12:50:00’, datatype=rdflib.term.URIRef(’http://www.w3.org/2001/XMLSchema#dateTime’))
- __annotations__ = {'_datatype': typing.Union[str, NoneType], '_ill_typed': typing.Union[bool, NoneType], '_language': typing.Union[str, NoneType], '_value': typing.Any}¶
- __bool__()[source]¶
Is the Literal “True” This is used for if statements, bool(literal), etc.
- Return type:
- __eq__(other)[source]¶
Literals are only equal to other literals.
“Two literals are equal if and only if all of the following hold: * The strings of the two lexical forms compare equal, character by character. * Either both or neither have language tags. * The language tags, if any, compare equal. * Either both or neither have datatype URIs. * The two datatype URIs, if any, compare equal, character by character.” – 6.5.1 Literal Equality (RDF: Concepts and Abstract Syntax)
>>> Literal("1", datatype=URIRef("foo")) == Literal("1", datatype=URIRef("foo")) True >>> Literal("1", datatype=URIRef("foo")) == Literal("1", datatype=URIRef("foo2")) False
>>> Literal("1", datatype=URIRef("foo")) == Literal("2", datatype=URIRef("foo")) False >>> Literal("1", datatype=URIRef("foo")) == "asdf" False >>> from rdflib import XSD >>> Literal('2007-01-01', datatype=XSD.date) == Literal('2007-01-01', datatype=XSD.date) True >>> Literal('2007-01-01', datatype=XSD.date) == date(2007, 1, 1) False >>> Literal("one", lang="en") == Literal("one", lang="en") True >>> Literal("hast", lang='en') == Literal("hast", lang='de') False >>> Literal("1", datatype=XSD.integer) == Literal(1) True >>> Literal("1", datatype=XSD.integer) == Literal("01", datatype=XSD.integer) True
- __gt__(other)[source]¶
This implements ordering for Literals, the other comparison methods delegate here
This tries to implement this: http://www.w3.org/TR/sparql11-query/#modOrderBy
In short, Literals with compatible data-types are ordered in value space, i.e. >>> from rdflib import XSD
>>> Literal(1) > Literal(2) # int/int False >>> Literal(2.0) > Literal(1) # double/int True >>> from decimal import Decimal >>> Literal(Decimal("3.3")) > Literal(2.0) # decimal/double True >>> Literal(Decimal("3.3")) < Literal(4.0) # decimal/double True >>> Literal('b') > Literal('a') # plain lit/plain lit True >>> Literal('b') > Literal('a', datatype=XSD.string) # plain lit/xsd:str True
Incompatible datatype mismatches ordered by DT
>>> Literal(1) > Literal("2") # int>string False
Langtagged literals by lang tag >>> Literal(“a”, lang=”en”) > Literal(“a”, lang=”fr”) False
- __hash__()[source]¶
>>> from rdflib.namespace import XSD >>> a = {Literal('1', datatype=XSD.integer):'one'} >>> Literal('1', datatype=XSD.double) in a False
“Called for the key object for dictionary operations, and by the built-in function hash(). Should return a 32-bit integer usable as a hash value for dictionary operations. The only required property is that objects which compare equal have the same hash value; it is advised to somehow mix together (e.g., using exclusive or) the hash values for the components of the object that also play a part in comparison of objects.” – 3.4.1 Basic customization (Python)
“Two literals are equal if and only if all of the following hold: * The strings of the two lexical forms compare equal, character by character. * Either both or neither have language tags. * The language tags, if any, compare equal. * Either both or neither have datatype URIs. * The two datatype URIs, if any, compare equal, character by character.” – 6.5.1 Literal Equality (RDF: Concepts and Abstract Syntax)
- Return type:
- __invert__()[source]¶
>>> ~(Literal(-1)) rdflib.term.Literal(u'0', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
>>> from rdflib.namespace import XSD >>> ~( Literal("-1", datatype=XSD.integer)) rdflib.term.Literal(u'0', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
Not working:
>>> ~(Literal("1")) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Not a number; rdflib.term.Literal(u'1')
- Return type:
- __le__(other)[source]¶
>>> from rdflib.namespace import XSD >>> Literal('2007-01-01T10:00:00', datatype=XSD.dateTime ... ) <= Literal('2007-01-01T10:00:00', datatype=XSD.dateTime) True
- __module__ = 'rdflib.term'¶
- __neg__()[source]¶
>>> (- Literal(1)) rdflib.term.Literal(u'-1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer')) >>> (- Literal(10.5)) rdflib.term.Literal(u'-10.5', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#double')) >>> from rdflib.namespace import XSD >>> (- Literal("1", datatype=XSD.integer)) rdflib.term.Literal(u'-1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
>>> (- Literal("1")) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Not a number; rdflib.term.Literal(u'1') >>>
- Return type:
- __pos__()[source]¶
>>> (+ Literal(1)) rdflib.term.Literal(u'1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer')) >>> (+ Literal(-1)) rdflib.term.Literal(u'-1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer')) >>> from rdflib.namespace import XSD >>> (+ Literal("-1", datatype=XSD.integer)) rdflib.term.Literal(u'-1', datatype=rdflib.term.URIRef(u'http://www.w3.org/2001/XMLSchema#integer'))
>>> (+ Literal("1")) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Not a number; rdflib.term.Literal(u'1')
- Return type:
- __slots__ = ('_language', '_datatype', '_value', '_ill_typed')¶
- __sub__(val)[source]¶
>>> from rdflib.namespace import XSD >>> Literal(2) - 1 rdflib.term.Literal('1', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#integer')) >>> Literal(1.1) - 1.0 rdflib.term.Literal('0.10000000000000009', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#double')) >>> Literal(1.1) - 1 rdflib.term.Literal('0.1', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#decimal')) >>> Literal(1.1, datatype=XSD.float) - Literal(1.0, datatype=XSD.float) rdflib.term.Literal('0.10000000000000009', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#float')) >>> Literal("1.1") - 1.0 Traceback (most recent call last): ... TypeError: Not a number; rdflib.term.Literal('1.1') >>> Literal(1.1, datatype=XSD.integer) - Literal(1.0, datatype=XSD.integer) rdflib.term.Literal('0.10000000000000009', datatype=rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#integer'))
# Handling dateTime/date/time based operations in Literals >>> a = Literal(‘2006-01-01T20:50:00’, datatype=XSD.dateTime) >>> b = Literal(‘2006-02-01T20:50:00’, datatype=XSD.dateTime) >>> (b - a) rdflib.term.Literal(‘P31D’, datatype=rdflib.term.URIRef(’http://www.w3.org/2001/XMLSchema#duration’)) >>> from rdflib.namespace import XSD >>> a = Literal(‘2006-07-01T20:52:00’, datatype=XSD.dateTime) >>> b = Literal(‘2006-11-01T12:50:00’, datatype=XSD.dateTime) >>> (a - b) rdflib.term.Literal(‘-P122DT15H58M’, datatype=rdflib.term.URIRef(’http://www.w3.org/2001/XMLSchema#duration’)) >>> (b - a) rdflib.term.Literal(‘P122DT15H58M’, datatype=rdflib.term.URIRef(’http://www.w3.org/2001/XMLSchema#duration’))
- eq(other)[source]¶
Compare the value of this literal with something else
Either, with the value of another literal comparisons are then done in literal “value space”, and according to the rules of XSD subtype-substitution/type-promotion
OR, with a python object:
basestring objects can be compared with plain-literals, or those with datatype xsd:string
bool objects with xsd:boolean
a int, long or float with numeric xsd types
isodate date,time,datetime objects with xsd:date,xsd:time or xsd:datetime
Any other operations returns NotImplemented
- property ill_typed: Optional[bool]¶
For recognized datatype IRIs, this value will be
True
if the literal is ill formed, otherwise it will beFalse
.Literal.value
(i.e. the literal value) should always be defined if this property isFalse
, but should not be considered reliable if this property isTrue
.If the literal’s datatype is
None
or not in the set of recognized datatype IRIs this value will beNone
.
- n3(namespace_manager=None)[source]¶
Returns a representation in the N3 format.
Examples:
>>> Literal("foo").n3() u'"foo"'
Strings with newlines or triple-quotes:
>>> Literal("foo\nbar").n3() u'"""foo\nbar"""' >>> Literal("''\'").n3() u'"\'\'\'"' >>> Literal('"""').n3() u'"\\"\\"\\""'
Language:
>>> Literal("hello", lang="en").n3() u'"hello"@en'
Datatypes:
>>> Literal(1).n3() u'"1"^^<http://www.w3.org/2001/XMLSchema#integer>' >>> Literal(1.0).n3() u'"1.0"^^<http://www.w3.org/2001/XMLSchema#double>' >>> Literal(True).n3() u'"true"^^<http://www.w3.org/2001/XMLSchema#boolean>'
Datatype and language isn’t allowed (datatype takes precedence):
>>> Literal(1, lang="en").n3() u'"1"^^<http://www.w3.org/2001/XMLSchema#integer>'
Custom datatype:
>>> footype = URIRef("http://example.org/ns#foo") >>> Literal("1", datatype=footype).n3() u'"1"^^<http://example.org/ns#foo>'
Passing a namespace-manager will use it to abbreviate datatype URIs:
>>> from rdflib import Graph >>> Literal(1).n3(Graph().namespace_manager) u'"1"^^xsd:integer'
- Parameters:
namespace_manager (
Optional
[NamespaceManager
]) –- Return type:
- normalize()[source]¶
Returns a new literal with a normalised lexical representation of this literal >>> from rdflib import XSD >>> Literal(“01”, datatype=XSD.integer, normalize=False).normalize() rdflib.term.Literal(u’1’, datatype=rdflib.term.URIRef(u’http://www.w3.org/2001/XMLSchema#integer’))
Illegal lexical forms for the datatype given are simply passed on >>> Literal(“a”, datatype=XSD.integer, normalize=False) rdflib.term.Literal(u’a’, datatype=rdflib.term.URIRef(u’http://www.w3.org/2001/XMLSchema#integer’))
- Return type:
- class rdflib.Namespace(value: Union[str, bytes])[source]¶
Bases:
str
Utility class for quickly generating URIRefs with a common prefix
>>> from rdflib.namespace import Namespace >>> n = Namespace("http://example.org/") >>> n.Person # as attribute rdflib.term.URIRef('http://example.org/Person') >>> n['first-name'] # as item - for things that are not valid python identifiers rdflib.term.URIRef('http://example.org/first-name') >>> n.Person in n True >>> n2 = Namespace("http://example2.org/") >>> n.Person in n2 False
- __contains__(ref)[source]¶
Allows to check if a URI is within (starts with) this Namespace.
>>> from rdflib import URIRef >>> namespace = Namespace('http://example.org/') >>> uri = URIRef('http://example.org/foo') >>> uri in namespace True >>> person_class = namespace['Person'] >>> person_class in namespace True >>> obj = URIRef('http://not.example.org/bar') >>> obj in namespace False
- __dict__ = mappingproxy({'__module__': 'rdflib.namespace', '__doc__': '\n Utility class for quickly generating URIRefs with a common prefix\n\n >>> from rdflib.namespace import Namespace\n >>> n = Namespace("http://example.org/")\n >>> n.Person # as attribute\n rdflib.term.URIRef(\'http://example.org/Person\')\n >>> n[\'first-name\'] # as item - for things that are not valid python identifiers\n rdflib.term.URIRef(\'http://example.org/first-name\')\n >>> n.Person in n\n True\n >>> n2 = Namespace("http://example2.org/")\n >>> n.Person in n2\n False\n ', '__new__': <staticmethod object>, 'title': <property object>, 'term': <function Namespace.term>, '__getitem__': <function Namespace.__getitem__>, '__getattr__': <function Namespace.__getattr__>, '__repr__': <function Namespace.__repr__>, '__contains__': <function Namespace.__contains__>, '__dict__': <attribute '__dict__' of 'Namespace' objects>, '__weakref__': <attribute '__weakref__' of 'Namespace' objects>, '__annotations__': {}})¶
- __module__ = 'rdflib.namespace'¶
- __weakref__¶
list of weak references to the object (if defined)
- class rdflib.ODRL2[source]¶
Bases:
DefinedNamespace
ODRL Version 2.2
The ODRL Vocabulary and Expression defines a set of concepts and terms (the vocabulary) and encoding mechanism (the expression) for permissions and obligations statements describing digital content usage based on the ODRL Information Model.
Generated from: https://www.w3.org/ns/odrl/2/ODRL22.ttl Date: 2020-05-26 14:20:02.352356
- absoluteSpatialPosition: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/odrl/2/absoluteSpatialPosition')¶
- absoluteTemporalPosition: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/odrl/2/absoluteTemporalPosition')¶
- relativeSpatialPosition: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/odrl/2/relativeSpatialPosition')¶
- relativeTemporalPosition: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/odrl/2/relativeTemporalPosition')¶
- rightOperandReference: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/odrl/2/rightOperandReference')¶
- class rdflib.ORG[source]¶
Bases:
DefinedNamespace
Core organization ontology
Vocabulary for describing organizational structures, specializable to a broad variety of types of organization.
Generated from: http://www.w3.org/ns/org# Date: 2020-05-26 14:20:02.908408
- OrganizationalCollaboration: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/org#OrganizationalCollaboration')¶
- resultingOrganization: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/org#resultingOrganization')¶
- class rdflib.OWL[source]¶
Bases:
DefinedNamespace
The OWL 2 Schema vocabulary (OWL 2)
This ontology partially describes the built-in classes and properties that together form the basis of the RDF/XML syntax of OWL 2. The content of this ontology is based on Tables 6.1 and 6.2 in Section 6.4 of the OWL 2 RDF-Based Semantics specification, available at http://www.w3.org/TR/owl2-rdf-based- semantics/. Please note that those tables do not include the different annotations (labels, comments and rdfs:isDefinedBy links) used in this file. Also note that the descriptions provided in this ontology do not provide a complete and correct formal description of either the syntax or the semantics of the introduced terms (please see the OWL 2 recommendations for the complete and normative specifications). Furthermore, the information provided by this ontology may be misleading if not used with care. This ontology SHOULD NOT be imported into OWL ontologies. Importing this file into an OWL 2 DL ontology will cause it to become an OWL 2 Full ontology and may have other, unexpected, consequences.
Generated from: http://www.w3.org/2002/07/owl# Date: 2020-05-26 14:20:03.193795
- AllDisjointClasses: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#AllDisjointClasses')¶
- AllDisjointProperties: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#AllDisjointProperties')¶
- AnnotationProperty: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#AnnotationProperty')¶
- AsymmetricProperty: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#AsymmetricProperty')¶
- DeprecatedProperty: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#DeprecatedProperty')¶
- FunctionalProperty: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#FunctionalProperty')¶
- InverseFunctionalProperty: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#InverseFunctionalProperty')¶
- IrreflexiveProperty: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#IrreflexiveProperty')¶
- NegativePropertyAssertion: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#NegativePropertyAssertion')¶
- TransitiveProperty: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#TransitiveProperty')¶
- backwardCompatibleWith: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#backwardCompatibleWith')¶
- bottomDataProperty: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#bottomDataProperty')¶
- bottomObjectProperty: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#bottomObjectProperty')¶
- datatypeComplementOf: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#datatypeComplementOf')¶
- equivalentProperty: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#equivalentProperty')¶
- maxQualifiedCardinality: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#maxQualifiedCardinality')¶
- minQualifiedCardinality: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#minQualifiedCardinality')¶
- propertyChainAxiom: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#propertyChainAxiom')¶
- propertyDisjointWith: URIRef = rdflib.term.URIRef('http://www.w3.org/2002/07/owl#propertyDisjointWith')¶
- class rdflib.PROF[source]¶
Bases:
DefinedNamespace
Profiles Vocabulary
This vocabulary is for describing relationships between standards/specifications, profiles of them and supporting artifacts such as validating resources. This model starts with [http://dublincore.org/2012/06/14/dcterms#Standard](dct:Standard) entities which can either be Base Specifications (a standard not profiling any other Standard) or Profiles (Standards which do profile others). Base Specifications or Profiles can have Resource Descriptors associated with them that defines implementing rules for the it. Resource Descriptors must indicate the role they play (to guide, to validate etc.) and the formalism they adhere to (dct:format) to allow for content negotiation. A vocabulary of Resource Roles are provided alongside this vocabulary but that list is extensible.
Generated from: https://www.w3.org/ns/dx/prof/profilesont.ttl Date: 2020-05-26 14:20:03.542924
- class rdflib.PROV[source]¶
Bases:
DefinedNamespace
W3C PROVenance Interchange Ontology (PROV-O)
This document is published by the Provenance Working Group (http://www.w3.org/2011/prov/wiki/Main_Page). If you wish to make comments regarding this document, please send them to public-prov-comments@w3.org (subscribe public-prov-comments-request@w3.org, archives http://lists.w3.org/Archives/Public/public-prov-comments/). All feedback is welcome.
PROV Access and Query Ontology
This document is published by the Provenance Working Group (http://www.w3.org/2011/prov/wiki/Main_Page). If you wish to make comments regarding this document, please send them to public-prov-comments@w3.org (subscribe public-prov-comments-request@w3.org, archives http://lists.w3.org/Archives/Public/public-prov-comments/). All feedback is welcome.
Dublin Core extensions of the W3C PROVenance Interchange Ontology (PROV-O)
This document is published by the Provenance Working Group (http://www.w3.org/2011/prov/wiki/Main_Page). If you wish to make comments regarding this document, please send them to public-prov-comments@w3.org (subscribe public-prov-comments-request@w3.org, archives http://lists.w3.org/Archives/Public/public-prov-comments/). All feedback is welcome.
W3C PROV Linking Across Provenance Bundles Ontology (PROV-LINKS)
This document is published by the Provenance Working Group (http://www.w3.org/2011/prov/wiki/Main_Page). If you wish to make comments regarding this document, please send them to public-prov-comments@w3.org (subscribe public-prov-comments-request@w3.org, archives http://lists.w3.org/Archives/Public/public-prov-comments/ ). All feedback is welcome.
W3C PROVenance Interchange Ontology (PROV-O) Dictionary Extension
This document is published by the Provenance Working Group (http://www.w3.org/2011/prov/wiki/Main_Page). If you wish to make comments regarding this document, please send them to public-prov-comments@w3.org (subscribe public-prov-comments-request@w3.org, archives http://lists.w3.org/Archives/Public/public-prov- comments/). All feedback is welcome.
W3C PROVenance Interchange
This document is published by the Provenance Working Group (http://www.w3.org/2011/prov/wiki/Main_Page). If you wish to make comments regarding this document, please send them to public-prov-comments@w3.org (subscribe public-prov-comments-request@w3.org, archives http://lists.w3.org/ Archives/Public/public-prov-comments/). All feedback is welcome.
Generated from: http://www.w3.org/ns/prov Date: 2020-05-26 14:20:04.650279
- derivedByInsertionFrom: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#derivedByInsertionFrom')¶
- derivedByRemovalFrom: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#derivedByRemovalFrom')¶
- generatedAsDerivation: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#generatedAsDerivation')¶
- insertedKeyEntityPair: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#insertedKeyEntityPair')¶
- provenanceUriTemplate: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#provenanceUriTemplate')¶
- qualifiedAssociation: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedAssociation')¶
- qualifiedAssociationOf: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedAssociationOf')¶
- qualifiedAttribution: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedAttribution')¶
- qualifiedAttributionOf: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedAttributionOf')¶
- qualifiedCommunication: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedCommunication')¶
- qualifiedCommunicationOf: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedCommunicationOf')¶
- qualifiedDelegationOf: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedDelegationOf')¶
- qualifiedDerivationOf: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedDerivationOf')¶
- qualifiedGenerationOf: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedGenerationOf')¶
- qualifiedInfluenceOf: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedInfluenceOf')¶
- qualifiedInvalidation: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedInvalidation')¶
- qualifiedInvalidationOf: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedInvalidationOf')¶
- qualifiedPrimarySource: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedPrimarySource')¶
- qualifiedQuotationOf: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedQuotationOf')¶
- qualifiedUsingActivity: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/prov#qualifiedUsingActivity')¶
- class rdflib.QB[source]¶
Bases:
DefinedNamespace
Vocabulary for multi-dimensional (e.g. statistical) data publishing
This vocabulary allows multi-dimensional data, such as statistics, to be published in RDF. It is based on the core information model from SDMX (and thus also DDI).
Generated from: http://purl.org/linked-data/cube# Date: 2020-05-26 14:20:05.485176
- AttributeProperty: URIRef = rdflib.term.URIRef('http://purl.org/linked-data/cube#AttributeProperty')¶
- ComponentProperty: URIRef = rdflib.term.URIRef('http://purl.org/linked-data/cube#ComponentProperty')¶
- ComponentSpecification: URIRef = rdflib.term.URIRef('http://purl.org/linked-data/cube#ComponentSpecification')¶
- DataStructureDefinition: URIRef = rdflib.term.URIRef('http://purl.org/linked-data/cube#DataStructureDefinition')¶
- DimensionProperty: URIRef = rdflib.term.URIRef('http://purl.org/linked-data/cube#DimensionProperty')¶
- HierarchicalCodeList: URIRef = rdflib.term.URIRef('http://purl.org/linked-data/cube#HierarchicalCodeList')¶
- componentAttachment: URIRef = rdflib.term.URIRef('http://purl.org/linked-data/cube#componentAttachment')¶
- componentProperty: URIRef = rdflib.term.URIRef('http://purl.org/linked-data/cube#componentProperty')¶
- componentRequired: URIRef = rdflib.term.URIRef('http://purl.org/linked-data/cube#componentRequired')¶
- class rdflib.RDF[source]¶
Bases:
DefinedNamespace
The RDF Concepts Vocabulary (RDF)
This is the RDF Schema for the RDF vocabulary terms in the RDF Namespace, defined in RDF 1.1 Concepts.
Generated from: http://www.w3.org/1999/02/22-rdf-syntax-ns# Date: 2020-05-26 14:20:05.642859
dc:date “2019-12-16”
- CompoundLiteral: URIRef = rdflib.term.URIRef('http://www.w3.org/1999/02/22-rdf-syntax-ns#CompoundLiteral')¶
- class rdflib.RDFS[source]¶
Bases:
DefinedNamespace
The RDF Schema vocabulary (RDFS)
Generated from: http://www.w3.org/2000/01/rdf-schema# Date: 2020-05-26 14:20:05.794866
- class rdflib.SDO[source]¶
Bases:
DefinedNamespace
schema.org namespace elements
3DModel, True, False & yield are not available as they collde with Python terms
Generated from: https://schema.org/version/latest/schemaorg-current-https.jsonld Date: 2021-12-01 By: Nicholas J. Car
- ActionAccessSpecification: URIRef = rdflib.term.URIRef('https://schema.org/ActionAccessSpecification')¶
- AdvertiserContentArticle: URIRef = rdflib.term.URIRef('https://schema.org/AdvertiserContentArticle')¶
- AllWheelDriveConfiguration: URIRef = rdflib.term.URIRef('https://schema.org/AllWheelDriveConfiguration')¶
- BodyMeasurementInsideLeg: URIRef = rdflib.term.URIRef('https://schema.org/BodyMeasurementInsideLeg')¶
- BodyMeasurementTypeEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/BodyMeasurementTypeEnumeration')¶
- BodyMeasurementUnderbust: URIRef = rdflib.term.URIRef('https://schema.org/BodyMeasurementUnderbust')¶
- BroadcastFrequencySpecification: URIRef = rdflib.term.URIRef('https://schema.org/BroadcastFrequencySpecification')¶
- CharitableIncorporatedOrganization: URIRef = rdflib.term.URIRef('https://schema.org/CharitableIncorporatedOrganization')¶
- CompoundPriceSpecification: URIRef = rdflib.term.URIRef('https://schema.org/CompoundPriceSpecification')¶
- ContagiousnessHealthAspect: URIRef = rdflib.term.URIRef('https://schema.org/ContagiousnessHealthAspect')¶
- CurrencyConversionService: URIRef = rdflib.term.URIRef('https://schema.org/CurrencyConversionService')¶
- DeliveryChargeSpecification: URIRef = rdflib.term.URIRef('https://schema.org/DeliveryChargeSpecification')¶
- DigitalDocumentPermission: URIRef = rdflib.term.URIRef('https://schema.org/DigitalDocumentPermission')¶
- DigitalDocumentPermissionType: URIRef = rdflib.term.URIRef('https://schema.org/DigitalDocumentPermissionType')¶
- DriveWheelConfigurationValue: URIRef = rdflib.term.URIRef('https://schema.org/DriveWheelConfigurationValue')¶
- DrivingSchoolVehicleUsage: URIRef = rdflib.term.URIRef('https://schema.org/DrivingSchoolVehicleUsage')¶
- EUEnergyEfficiencyCategoryA: URIRef = rdflib.term.URIRef('https://schema.org/EUEnergyEfficiencyCategoryA')¶
- EUEnergyEfficiencyCategoryA1Plus: URIRef = rdflib.term.URIRef('https://schema.org/EUEnergyEfficiencyCategoryA1Plus')¶
- EUEnergyEfficiencyCategoryA2Plus: URIRef = rdflib.term.URIRef('https://schema.org/EUEnergyEfficiencyCategoryA2Plus')¶
- EUEnergyEfficiencyCategoryA3Plus: URIRef = rdflib.term.URIRef('https://schema.org/EUEnergyEfficiencyCategoryA3Plus')¶
- EUEnergyEfficiencyCategoryB: URIRef = rdflib.term.URIRef('https://schema.org/EUEnergyEfficiencyCategoryB')¶
- EUEnergyEfficiencyCategoryC: URIRef = rdflib.term.URIRef('https://schema.org/EUEnergyEfficiencyCategoryC')¶
- EUEnergyEfficiencyCategoryD: URIRef = rdflib.term.URIRef('https://schema.org/EUEnergyEfficiencyCategoryD')¶
- EUEnergyEfficiencyCategoryE: URIRef = rdflib.term.URIRef('https://schema.org/EUEnergyEfficiencyCategoryE')¶
- EUEnergyEfficiencyCategoryF: URIRef = rdflib.term.URIRef('https://schema.org/EUEnergyEfficiencyCategoryF')¶
- EUEnergyEfficiencyCategoryG: URIRef = rdflib.term.URIRef('https://schema.org/EUEnergyEfficiencyCategoryG')¶
- EUEnergyEfficiencyEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/EUEnergyEfficiencyEnumeration')¶
- EducationalOccupationalCredential: URIRef = rdflib.term.URIRef('https://schema.org/EducationalOccupationalCredential')¶
- EducationalOccupationalProgram: URIRef = rdflib.term.URIRef('https://schema.org/EducationalOccupationalProgram')¶
- EffectivenessHealthAspect: URIRef = rdflib.term.URIRef('https://schema.org/EffectivenessHealthAspect')¶
- EnergyConsumptionDetails: URIRef = rdflib.term.URIRef('https://schema.org/EnergyConsumptionDetails')¶
- EnergyEfficiencyEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/EnergyEfficiencyEnumeration')¶
- EnergyStarEnergyEfficiencyEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/EnergyStarEnergyEfficiencyEnumeration')¶
- EventAttendanceModeEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/EventAttendanceModeEnumeration')¶
- ExchangeRateSpecification: URIRef = rdflib.term.URIRef('https://schema.org/ExchangeRateSpecification')¶
- FoodEstablishmentReservation: URIRef = rdflib.term.URIRef('https://schema.org/FoodEstablishmentReservation')¶
- FourWheelDriveConfiguration: URIRef = rdflib.term.URIRef('https://schema.org/FourWheelDriveConfiguration')¶
- FrontWheelDriveConfiguration: URIRef = rdflib.term.URIRef('https://schema.org/FrontWheelDriveConfiguration')¶
- GettingAccessHealthAspect: URIRef = rdflib.term.URIRef('https://schema.org/GettingAccessHealthAspect')¶
- HealthPlanCostSharingSpecification: URIRef = rdflib.term.URIRef('https://schema.org/HealthPlanCostSharingSpecification')¶
- HearingImpairedSupported: URIRef = rdflib.term.URIRef('https://schema.org/HearingImpairedSupported')¶
- HomeAndConstructionBusiness: URIRef = rdflib.term.URIRef('https://schema.org/HomeAndConstructionBusiness')¶
- LandmarksOrHistoricalBuildings: URIRef = rdflib.term.URIRef('https://schema.org/LandmarksOrHistoricalBuildings')¶
- LimitedByGuaranteeCharity: URIRef = rdflib.term.URIRef('https://schema.org/LimitedByGuaranteeCharity')¶
- LocationFeatureSpecification: URIRef = rdflib.term.URIRef('https://schema.org/LocationFeatureSpecification')¶
- MeasurementTypeEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/MeasurementTypeEnumeration')¶
- MediaManipulationRatingEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/MediaManipulationRatingEnumeration')¶
- MedicalGuidelineContraindication: URIRef = rdflib.term.URIRef('https://schema.org/MedicalGuidelineContraindication')¶
- MedicalGuidelineRecommendation: URIRef = rdflib.term.URIRef('https://schema.org/MedicalGuidelineRecommendation')¶
- MedicalObservationalStudy: URIRef = rdflib.term.URIRef('https://schema.org/MedicalObservationalStudy')¶
- MedicalObservationalStudyDesign: URIRef = rdflib.term.URIRef('https://schema.org/MedicalObservationalStudyDesign')¶
- MerchantReturnEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/MerchantReturnEnumeration')¶
- MerchantReturnFiniteReturnWindow: URIRef = rdflib.term.URIRef('https://schema.org/MerchantReturnFiniteReturnWindow')¶
- MerchantReturnNotPermitted: URIRef = rdflib.term.URIRef('https://schema.org/MerchantReturnNotPermitted')¶
- MerchantReturnPolicySeasonalOverride: URIRef = rdflib.term.URIRef('https://schema.org/MerchantReturnPolicySeasonalOverride')¶
- MerchantReturnUnlimitedWindow: URIRef = rdflib.term.URIRef('https://schema.org/MerchantReturnUnlimitedWindow')¶
- MerchantReturnUnspecified: URIRef = rdflib.term.URIRef('https://schema.org/MerchantReturnUnspecified')¶
- MisconceptionsHealthAspect: URIRef = rdflib.term.URIRef('https://schema.org/MisconceptionsHealthAspect')¶
- MixedEventAttendanceMode: URIRef = rdflib.term.URIRef('https://schema.org/MixedEventAttendanceMode')¶
- MonetaryAmountDistribution: URIRef = rdflib.term.URIRef('https://schema.org/MonetaryAmountDistribution')¶
- MusicAlbumProductionType: URIRef = rdflib.term.URIRef('https://schema.org/MusicAlbumProductionType')¶
- OccupationalExperienceRequirements: URIRef = rdflib.term.URIRef('https://schema.org/OccupationalExperienceRequirements')¶
- OfflineEventAttendanceMode: URIRef = rdflib.term.URIRef('https://schema.org/OfflineEventAttendanceMode')¶
- OnlineEventAttendanceMode: URIRef = rdflib.term.URIRef('https://schema.org/OnlineEventAttendanceMode')¶
- OpeningHoursSpecification: URIRef = rdflib.term.URIRef('https://schema.org/OpeningHoursSpecification')¶
- PatientExperienceHealthAspect: URIRef = rdflib.term.URIRef('https://schema.org/PatientExperienceHealthAspect')¶
- PaymentAutomaticallyApplied: URIRef = rdflib.term.URIRef('https://schema.org/PaymentAutomaticallyApplied')¶
- PaymentChargeSpecification: URIRef = rdflib.term.URIRef('https://schema.org/PaymentChargeSpecification')¶
- PhysicalActivityCategory: URIRef = rdflib.term.URIRef('https://schema.org/PhysicalActivityCategory')¶
- PostalCodeRangeSpecification: URIRef = rdflib.term.URIRef('https://schema.org/PostalCodeRangeSpecification')¶
- PresentationDigitalDocument: URIRef = rdflib.term.URIRef('https://schema.org/PresentationDigitalDocument')¶
- PriceComponentTypeEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/PriceComponentTypeEnumeration')¶
- PropertyValueSpecification: URIRef = rdflib.term.URIRef('https://schema.org/PropertyValueSpecification')¶
- QuantitativeValueDistribution: URIRef = rdflib.term.URIRef('https://schema.org/QuantitativeValueDistribution')¶
- RearWheelDriveConfiguration: URIRef = rdflib.term.URIRef('https://schema.org/RearWheelDriveConfiguration')¶
- RelatedTopicsHealthAspect: URIRef = rdflib.term.URIRef('https://schema.org/RelatedTopicsHealthAspect')¶
- ReturnFeesCustomerResponsibility: URIRef = rdflib.term.URIRef('https://schema.org/ReturnFeesCustomerResponsibility')¶
- ReturnLabelCustomerResponsibility: URIRef = rdflib.term.URIRef('https://schema.org/ReturnLabelCustomerResponsibility')¶
- ReturnLabelDownloadAndPrint: URIRef = rdflib.term.URIRef('https://schema.org/ReturnLabelDownloadAndPrint')¶
- ReturnLabelSourceEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/ReturnLabelSourceEnumeration')¶
- RisksOrComplicationsHealthAspect: URIRef = rdflib.term.URIRef('https://schema.org/RisksOrComplicationsHealthAspect')¶
- SpreadsheetDigitalDocument: URIRef = rdflib.term.URIRef('https://schema.org/SpreadsheetDigitalDocument')¶
- TouristInformationCenter: URIRef = rdflib.term.URIRef('https://schema.org/TouristInformationCenter')¶
- UnincorporatedAssociationCharity: URIRef = rdflib.term.URIRef('https://schema.org/UnincorporatedAssociationCharity')¶
- UsageOrScheduleHealthAspect: URIRef = rdflib.term.URIRef('https://schema.org/UsageOrScheduleHealthAspect')¶
- WearableMeasurementChestOrBust: URIRef = rdflib.term.URIRef('https://schema.org/WearableMeasurementChestOrBust')¶
- WearableMeasurementCollar: URIRef = rdflib.term.URIRef('https://schema.org/WearableMeasurementCollar')¶
- WearableMeasurementHeight: URIRef = rdflib.term.URIRef('https://schema.org/WearableMeasurementHeight')¶
- WearableMeasurementInseam: URIRef = rdflib.term.URIRef('https://schema.org/WearableMeasurementInseam')¶
- WearableMeasurementLength: URIRef = rdflib.term.URIRef('https://schema.org/WearableMeasurementLength')¶
- WearableMeasurementOutsideLeg: URIRef = rdflib.term.URIRef('https://schema.org/WearableMeasurementOutsideLeg')¶
- WearableMeasurementSleeve: URIRef = rdflib.term.URIRef('https://schema.org/WearableMeasurementSleeve')¶
- WearableMeasurementTypeEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/WearableMeasurementTypeEnumeration')¶
- WearableMeasurementWaist: URIRef = rdflib.term.URIRef('https://schema.org/WearableMeasurementWaist')¶
- WearableMeasurementWidth: URIRef = rdflib.term.URIRef('https://schema.org/WearableMeasurementWidth')¶
- WearableSizeGroupEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/WearableSizeGroupEnumeration')¶
- WearableSizeGroupExtraShort: URIRef = rdflib.term.URIRef('https://schema.org/WearableSizeGroupExtraShort')¶
- WearableSizeGroupExtraTall: URIRef = rdflib.term.URIRef('https://schema.org/WearableSizeGroupExtraTall')¶
- WearableSizeGroupInfants: URIRef = rdflib.term.URIRef('https://schema.org/WearableSizeGroupInfants')¶
- WearableSizeGroupJuniors: URIRef = rdflib.term.URIRef('https://schema.org/WearableSizeGroupJuniors')¶
- WearableSizeGroupMaternity: URIRef = rdflib.term.URIRef('https://schema.org/WearableSizeGroupMaternity')¶
- WearableSizeGroupRegular: URIRef = rdflib.term.URIRef('https://schema.org/WearableSizeGroupRegular')¶
- WearableSizeSystemContinental: URIRef = rdflib.term.URIRef('https://schema.org/WearableSizeSystemContinental')¶
- WearableSizeSystemEN13402: URIRef = rdflib.term.URIRef('https://schema.org/WearableSizeSystemEN13402')¶
- WearableSizeSystemEnumeration: URIRef = rdflib.term.URIRef('https://schema.org/WearableSizeSystemEnumeration')¶
- WearableSizeSystemEurope: URIRef = rdflib.term.URIRef('https://schema.org/WearableSizeSystemEurope')¶
- actionAccessibilityRequirement: URIRef = rdflib.term.URIRef('https://schema.org/actionAccessibilityRequirement')¶
- actionableFeedbackPolicy: URIRef = rdflib.term.URIRef('https://schema.org/actionableFeedbackPolicy')¶
- additionalNumberOfGuests: URIRef = rdflib.term.URIRef('https://schema.org/additionalNumberOfGuests')¶
- advanceBookingRequirement: URIRef = rdflib.term.URIRef('https://schema.org/advanceBookingRequirement')¶
- applicantLocationRequirements: URIRef = rdflib.term.URIRef('https://schema.org/applicantLocationRequirements')¶
- associatedPathophysiology: URIRef = rdflib.term.URIRef('https://schema.org/associatedPathophysiology')¶
- broadcastSignalModulation: URIRef = rdflib.term.URIRef('https://schema.org/broadcastSignalModulation')¶
- customerRemorseReturnFees: URIRef = rdflib.term.URIRef('https://schema.org/customerRemorseReturnFees')¶
- customerRemorseReturnLabelSource: URIRef = rdflib.term.URIRef('https://schema.org/customerRemorseReturnLabelSource')¶
- customerRemorseReturnShippingFeesAmount: URIRef = rdflib.term.URIRef('https://schema.org/customerRemorseReturnShippingFeesAmount')¶
- dateVehicleFirstRegistered: URIRef = rdflib.term.URIRef('https://schema.org/dateVehicleFirstRegistered')¶
- disambiguatingDescription: URIRef = rdflib.term.URIRef('https://schema.org/disambiguatingDescription')¶
- educationalCredentialAwarded: URIRef = rdflib.term.URIRef('https://schema.org/educationalCredentialAwarded')¶
- eligibilityToWorkRequirement: URIRef = rdflib.term.URIRef('https://schema.org/eligibilityToWorkRequirement')¶
- eligibleTransactionVolume: URIRef = rdflib.term.URIRef('https://schema.org/eligibleTransactionVolume')¶
- energyEfficiencyScaleMax: URIRef = rdflib.term.URIRef('https://schema.org/energyEfficiencyScaleMax')¶
- energyEfficiencyScaleMin: URIRef = rdflib.term.URIRef('https://schema.org/energyEfficiencyScaleMin')¶
- experienceInPlaceOfEducation: URIRef = rdflib.term.URIRef('https://schema.org/experienceInPlaceOfEducation')¶
- feesAndCommissionsSpecification: URIRef = rdflib.term.URIRef('https://schema.org/feesAndCommissionsSpecification')¶
- hasDigitalDocumentPermission: URIRef = rdflib.term.URIRef('https://schema.org/hasDigitalDocumentPermission')¶
- hasEnergyConsumptionDetails: URIRef = rdflib.term.URIRef('https://schema.org/hasEnergyConsumptionDetails')¶
- hasEnergyEfficiencyCategory: URIRef = rdflib.term.URIRef('https://schema.org/hasEnergyEfficiencyCategory')¶
- healthPlanCoinsuranceOption: URIRef = rdflib.term.URIRef('https://schema.org/healthPlanCoinsuranceOption')¶
- healthPlanCoinsuranceRate: URIRef = rdflib.term.URIRef('https://schema.org/healthPlanCoinsuranceRate')¶
- healthPlanPharmacyCategory: URIRef = rdflib.term.URIRef('https://schema.org/healthPlanPharmacyCategory')¶
- includedInHealthInsurancePlan: URIRef = rdflib.term.URIRef('https://schema.org/includedInHealthInsurancePlan')¶
- includesHealthPlanFormulary: URIRef = rdflib.term.URIRef('https://schema.org/includesHealthPlanFormulary')¶
- includesHealthPlanNetwork: URIRef = rdflib.term.URIRef('https://schema.org/includesHealthPlanNetwork')¶
- isAccessoryOrSparePartFor: URIRef = rdflib.term.URIRef('https://schema.org/isAccessoryOrSparePartFor')¶
- isEncodedByBioChemEntity: URIRef = rdflib.term.URIRef('https://schema.org/isEncodedByBioChemEntity')¶
- isInvolvedInBiologicalProcess: URIRef = rdflib.term.URIRef('https://schema.org/isInvolvedInBiologicalProcess')¶
- isLocatedInSubcellularLocation: URIRef = rdflib.term.URIRef('https://schema.org/isLocatedInSubcellularLocation')¶
- itemDefectReturnLabelSource: URIRef = rdflib.term.URIRef('https://schema.org/itemDefectReturnLabelSource')¶
- itemDefectReturnShippingFeesAmount: URIRef = rdflib.term.URIRef('https://schema.org/itemDefectReturnShippingFeesAmount')¶
- loanMortgageMandateAmount: URIRef = rdflib.term.URIRef('https://schema.org/loanMortgageMandateAmount')¶
- maximumPhysicalAttendeeCapacity: URIRef = rdflib.term.URIRef('https://schema.org/maximumPhysicalAttendeeCapacity')¶
- maximumVirtualAttendeeCapacity: URIRef = rdflib.term.URIRef('https://schema.org/maximumVirtualAttendeeCapacity')¶
- mediaAuthenticityCategory: URIRef = rdflib.term.URIRef('https://schema.org/mediaAuthenticityCategory')¶
- missionCoveragePrioritiesPolicy: URIRef = rdflib.term.URIRef('https://schema.org/missionCoveragePrioritiesPolicy')¶
- monoisotopicMolecularWeight: URIRef = rdflib.term.URIRef('https://schema.org/monoisotopicMolecularWeight')¶
- monthlyMinimumRepaymentAmount: URIRef = rdflib.term.URIRef('https://schema.org/monthlyMinimumRepaymentAmount')¶
- newsUpdatesAndGuidelines: URIRef = rdflib.term.URIRef('https://schema.org/newsUpdatesAndGuidelines')¶
- numberOfAccommodationUnits: URIRef = rdflib.term.URIRef('https://schema.org/numberOfAccommodationUnits')¶
- numberOfAvailableAccommodationUnits: URIRef = rdflib.term.URIRef('https://schema.org/numberOfAvailableAccommodationUnits')¶
- numberOfPartialBathrooms: URIRef = rdflib.term.URIRef('https://schema.org/numberOfPartialBathrooms')¶
- occupationalCredentialAwarded: URIRef = rdflib.term.URIRef('https://schema.org/occupationalCredentialAwarded')¶
- offersPrescriptionByMail: URIRef = rdflib.term.URIRef('https://schema.org/offersPrescriptionByMail')¶
- openingHoursSpecification: URIRef = rdflib.term.URIRef('https://schema.org/openingHoursSpecification')¶
- originalMediaContextDescription: URIRef = rdflib.term.URIRef('https://schema.org/originalMediaContextDescription')¶
- providesBroadcastService: URIRef = rdflib.term.URIRef('https://schema.org/providesBroadcastService')¶
- publicTransportClosuresInfo: URIRef = rdflib.term.URIRef('https://schema.org/publicTransportClosuresInfo')¶
- remainingAttendeeCapacity: URIRef = rdflib.term.URIRef('https://schema.org/remainingAttendeeCapacity')¶
- returnPolicySeasonalOverride: URIRef = rdflib.term.URIRef('https://schema.org/returnPolicySeasonalOverride')¶
- returnShippingFeesAmount: URIRef = rdflib.term.URIRef('https://schema.org/returnShippingFeesAmount')¶
- securityClearanceRequirement: URIRef = rdflib.term.URIRef('https://schema.org/securityClearanceRequirement')¶
- specialOpeningHoursSpecification: URIRef = rdflib.term.URIRef('https://schema.org/specialOpeningHoursSpecification')¶
- usesHealthPlanIdStandard: URIRef = rdflib.term.URIRef('https://schema.org/usesHealthPlanIdStandard')¶
- vehicleIdentificationNumber: URIRef = rdflib.term.URIRef('https://schema.org/vehicleIdentificationNumber')¶
- class rdflib.SH[source]¶
Bases:
DefinedNamespace
W3C Shapes Constraint Language (SHACL) Vocabulary
This vocabulary defines terms used in SHACL, the W3C Shapes Constraint Language.
Generated from: https://www.w3.org/ns/shacl.ttl Date: 2020-05-26 14:20:08.041103
- AndConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#AndConstraintComponent')¶
- ClassConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#ClassConstraintComponent')¶
- ClosedConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#ClosedConstraintComponent')¶
- DatatypeConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#DatatypeConstraintComponent')¶
- DisjointConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#DisjointConstraintComponent')¶
- EqualsConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#EqualsConstraintComponent')¶
- ExpressionConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#ExpressionConstraintComponent')¶
- HasValueConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#HasValueConstraintComponent')¶
- InConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#InConstraintComponent')¶
- JSConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#JSConstraintComponent')¶
- LanguageInConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#LanguageInConstraintComponent')¶
- LessThanConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#LessThanConstraintComponent')¶
- LessThanOrEqualsConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#LessThanOrEqualsConstraintComponent')¶
- MaxCountConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#MaxCountConstraintComponent')¶
- MaxExclusiveConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#MaxExclusiveConstraintComponent')¶
- MaxInclusiveConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#MaxInclusiveConstraintComponent')¶
- MaxLengthConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#MaxLengthConstraintComponent')¶
- MinCountConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#MinCountConstraintComponent')¶
- MinExclusiveConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#MinExclusiveConstraintComponent')¶
- MinInclusiveConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#MinInclusiveConstraintComponent')¶
- MinLengthConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#MinLengthConstraintComponent')¶
- NodeConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#NodeConstraintComponent')¶
- NodeKindConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#NodeKindConstraintComponent')¶
- NotConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#NotConstraintComponent')¶
- OrConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#OrConstraintComponent')¶
- PatternConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#PatternConstraintComponent')¶
- PropertyConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#PropertyConstraintComponent')¶
- QualifiedMaxCountConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#QualifiedMaxCountConstraintComponent')¶
- QualifiedMinCountConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#QualifiedMinCountConstraintComponent')¶
- SPARQLConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#SPARQLConstraintComponent')¶
- SPARQLConstructExecutable: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#SPARQLConstructExecutable')¶
- SPARQLSelectExecutable: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#SPARQLSelectExecutable')¶
- SPARQLSelectValidator: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#SPARQLSelectValidator')¶
- SPARQLUpdateExecutable: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#SPARQLUpdateExecutable')¶
- UniqueLangConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#UniqueLangConstraintComponent')¶
- XoneConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#XoneConstraintComponent')¶
- qualifiedValueShapesDisjoint: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#qualifiedValueShapesDisjoint')¶
- shapesGraphWellFormed: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#shapesGraphWellFormed')¶
- sourceConstraintComponent: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/shacl#sourceConstraintComponent')¶
- class rdflib.SKOS[source]¶
Bases:
DefinedNamespace
SKOS Vocabulary
An RDF vocabulary for describing the basic structure and content of concept schemes such as thesauri, classification schemes, subject heading lists, taxonomies, ‘folksonomies’, other types of controlled vocabulary, and also concept schemes embedded in glossaries and terminologies.
Generated from: https://www.w3.org/2009/08/skos-reference/skos.rdf Date: 2020-05-26 14:20:08.489187
- OrderedCollection: URIRef = rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#OrderedCollection')¶
- broaderTransitive: URIRef = rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#broaderTransitive')¶
- mappingRelation: URIRef = rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#mappingRelation')¶
- narrowerTransitive: URIRef = rdflib.term.URIRef('http://www.w3.org/2004/02/skos/core#narrowerTransitive')¶
- class rdflib.SOSA[source]¶
Bases:
DefinedNamespace
Sensor, Observation, Sample, and Actuator (SOSA) Ontology
This ontology is based on the SSN Ontology by the W3C Semantic Sensor Networks Incubator Group (SSN-XG), together with considerations from the W3C/OGC Spatial Data on the Web Working Group.
Generated from: http://www.w3.org/ns/sosa/ Date: 2020-05-26 14:20:08.792504
- hasFeatureOfInterest: URIRef = rdflib.term.URIRef('http://www.w3.org/ns/sosa/hasFeatureOfInterest')¶
- class rdflib.SSN[source]¶
Bases:
DefinedNamespace
Semantic Sensor Network Ontology
This ontology describes sensors, actuators and observations, and related concepts. It does not describe domain concepts, time, locations, etc. these are intended to be included from other ontologies via OWL imports.
Generated from: http://www.w3.org/ns/ssn/ Date: 2020-05-26 14:20:09.068204
- class rdflib.TIME[source]¶
Bases:
DefinedNamespace
OWL-Time
Generated from: http://www.w3.org/2006/time# Date: 2020-05-26 14:20:10.531265
- DateTimeDescription: URIRef = rdflib.term.URIRef('http://www.w3.org/2006/time#DateTimeDescription')¶
- DurationDescription: URIRef = rdflib.term.URIRef('http://www.w3.org/2006/time#DurationDescription')¶
- GeneralDateTimeDescription: URIRef = rdflib.term.URIRef('http://www.w3.org/2006/time#GeneralDateTimeDescription')¶
- GeneralDurationDescription: URIRef = rdflib.term.URIRef('http://www.w3.org/2006/time#GeneralDurationDescription')¶
- hasDateTimeDescription: URIRef = rdflib.term.URIRef('http://www.w3.org/2006/time#hasDateTimeDescription')¶
- hasDurationDescription: URIRef = rdflib.term.URIRef('http://www.w3.org/2006/time#hasDurationDescription')¶
- hasTemporalDuration: URIRef = rdflib.term.URIRef('http://www.w3.org/2006/time#hasTemporalDuration')¶
- class rdflib.URIRef(value: str, base: Optional[str] = None)[source]¶
Bases:
IdentifiedNode
RDF 1.1’s IRI Section https://www.w3.org/TR/rdf11-concepts/#section-IRIs
Note
Documentation on RDF outside of RDFLib uses the term IRI or URI whereas this class is called URIRef. This is because it was made when the first version of the RDF specification was current, and it used the term URIRef, see RDF 1.0 URIRef
An IRI (Internationalized Resource Identifier) within an RDF graph is a Unicode string that conforms to the syntax defined in RFC 3987.
IRIs in the RDF abstract syntax MUST be absolute, and MAY contain a fragment identifier.
IRIs are a generalization of URIs [RFC3986] that permits a wider range of Unicode characters.
- __annotations__ = {'__invert__': typing.Callable[[ForwardRef('URIRef')], ForwardRef('InvPath')], '__neg__': typing.Callable[[ForwardRef('URIRef')], ForwardRef('NegatedPath')], '__or__': typing.Callable[[ForwardRef('URIRef'), typing.Union[ForwardRef('URIRef'), ForwardRef('Path')]], ForwardRef('AlternativePath')], '__truediv__': typing.Callable[[ForwardRef('URIRef'), typing.Union[ForwardRef('URIRef'), ForwardRef('Path')]], ForwardRef('SequencePath')]}¶
- __invert__()¶
inverse path
- __module__ = 'rdflib.term'¶
- __mul__(mul)¶
cardinality path
- __neg__()¶
negated path
- __or__(other)¶
alternative path
- __slots__ = ()¶
- __truediv__(other)¶
sequence path
- de_skolemize()[source]¶
Create a Blank Node from a skolem URI, in accordance with http://www.w3.org/TR/rdf11-concepts/#section-skolemization. This function accepts only rdflib type skolemization, to provide a round-tripping within the system.
New in version 4.0.
- Return type:
- property fragment: str¶
Return the URL Fragment
>>> URIRef("http://example.com/some/path/#some-fragment").fragment 'some-fragment' >>> URIRef("http://example.com/some/path/").fragment ''
- Return type:
- n3(namespace_manager=None)[source]¶
This will do a limited check for valid URIs, essentially just making sure that the string includes no illegal characters (
<, >, ", {, }, |, \, `, ^
)- Parameters:
namespace_manager (
Optional
[NamespaceManager
]) – if not None, will be used to make up a prefixed name- Return type:
- class rdflib.VANN[source]¶
Bases:
DefinedNamespace
VANN: A vocabulary for annotating vocabulary descriptions
This document describes a vocabulary for annotating descriptions of vocabularies with examples and usage notes.
Generated from: https://vocab.org/vann/vann-vocab-20100607.rdf Date: 2020-05-26 14:21:15.580430
- preferredNamespacePrefix: URIRef = rdflib.term.URIRef('http://purl.org/vocab/vann/preferredNamespacePrefix')¶
- class rdflib.VOID[source]¶
Bases:
DefinedNamespace
Vocabulary of Interlinked Datasets (VoID)
The Vocabulary of Interlinked Datasets (VoID) is an RDF Schema vocabulary for expressing metadata about RDF datasets. It is intended as a bridge between the publishers and users of RDF data, with applications ranging from data discovery to cataloging and archiving of datasets. This document provides a formal definition of the new RDF classes and properties introduced for VoID. It is a companion to the main specification document for VoID, <em><a href=”http://www.w3.org/TR/void/”>Describing Linked Datasets with the VoID Vocabulary</a></em>.
Generated from: http://rdfs.org/ns/void# Date: 2020-05-26 14:20:11.911298
- class rdflib.Variable(value: str)[source]¶
Bases:
Identifier
A Variable - this is used for querying, or in Formula aware graphs, where Variables can be stored
- __annotations__ = {}¶
- __module__ = 'rdflib.term'¶
- __slots__ = ()¶
- n3(namespace_manager=None)[source]¶
- Parameters:
namespace_manager (
Optional
[NamespaceManager
]) –- Return type:
- class rdflib.XSD[source]¶
Bases:
DefinedNamespace
W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes
Generated from: ../schemas/datatypes.xsd Date: 2021-09-05 20:37+10
- nonNegativeInteger: URIRef = rdflib.term.URIRef('http://www.w3.org/2001/XMLSchema#nonNegativeInteger')¶