RDFS
RDF(S) terms. Note that the set of terms is complete, i.e., it includes all OWL 2 terms, regardless of whether the term is used in OWL 2 RL or not.
Requires: RDFLib, 4.0.0 and higher.
License: This software is available for use under the W3C Software License.
Organization: World Wide Web Consortium
Author: Ivan Herman
Source code
1"""
2RDF(S) terms. Note that the set of terms is *complete*, i.e., it includes *all* OWL 2 terms, regardless of whether the
3term is used in OWL 2 RL or not.
4
5**Requires**: `RDFLib`_, 4.0.0 and higher.
6
7.. _RDFLib: https://github.com/RDFLib/rdflib
8
9**License**: This software is available for use under the `W3C Software License`_.
10
11.. _W3C Software License: http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
12
13**Organization**: `World Wide Web Consortium`_
14
15.. _World Wide Web Consortium: http://www.w3.org
16
17**Author**: `Ivan Herman`_
18
19.. _Ivan Herman: http://www.w3.org/People/Ivan/
20"""
21
22import rdflib
23from rdflib import Namespace
24
25RDFNS = Namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#")
26RDFSNS = Namespace("http://www.w3.org/2000/01/rdf-schema#")
27
28# RDF Classes
29Seq = RDFNS["Seq"]
30Bag = RDFNS["Bag"]
31Alt = RDFNS["Alt"]
32Statement = RDFNS["Statement"]
33Property = RDFNS["Property"]
34XMLLiteral = RDFNS["XMLLiteral"]
35HTMLLiteral = RDFNS["HTML"]
36LangString = RDFNS["LangString"]
37List = RDFNS["List"]
38
39# RDF Properties
40rdf_subject = RDFNS["subject"]
41rdf_predicate = RDFNS["predicate"]
42rdf_object = RDFNS["object"]
43rdf_type = RDFNS["type"]
44value = RDFNS["value"]
45first = RDFNS["first"]
46rest = RDFNS["rest"]
47# and _n where n is a non-negative integer
48
49# RDF Resources
50nil = RDFNS["nil"]
51
52Resource = RDFSNS["Resource"]
53Class = RDFSNS["Class"]
54subClassOf = RDFSNS["subClassOf"]
55subPropertyOf = RDFSNS["subPropertyOf"]
56comment = RDFSNS["comment"]
57label = RDFSNS["label"]
58rdfs_domain = RDFSNS["domain"]
59rdfs_range = RDFSNS["range"]
60seeAlso = RDFSNS["seeAlso"]
61isDefinedBy = RDFSNS["isDefinedBy"]
62Literal = RDFSNS["Literal"]
63Container = RDFSNS["Container"]
64ContainerMembershipProperty = RDFSNS["ContainerMembershipProperty"]
65member = RDFSNS["member"]
66Datatype = RDFSNS["Datatype"]