|
2 | 2 | from rdflib import Literal, BNode, URIRef |
3 | 3 | from rdflib.collection import Collection |
4 | 4 |
|
5 | | -from .namespaces import DCTERMS, SDO, RDFS, RDF, OWL, BRICK, SH, XSD, REF |
| 5 | +from .namespaces import DCTERMS, SDO, RDFS, RDF, OWL, BRICK, SH, XSD, REF, REC |
6 | 6 | from .version import BRICK_VERSION, BRICK_FULL_VERSION |
7 | 7 |
|
8 | 8 | # defines metadata about the Brick ontology |
|
38 | 38 | "qudtoverlay": "http://qudt.org/2.1/schema/shacl/overlay/qudt", |
39 | 39 | "unit": "http://qudt.org/2.1/vocab/unit", |
40 | 40 | "bacnet": "http://data.ashrae.org/bacnet/2020", |
| 41 | + "ref": "https://brickschema.org/schema/Brick/ref", |
| 42 | + "rec": "https://w3id.org/rec", |
| 43 | + "recimports": "https://w3id.org/rec/recimports", |
| 44 | + "brickpatches": "https://w3id.org/rec/brickpatches", |
41 | 45 | "quantitykind": "http://qudt.org/2.1/vocab/quantitykind", |
42 | 46 | "qudtsou": "http://qudt.org/2.1/vocab/sou", |
43 | 47 | "qudtdv": "http://qudt.org/2.1/vocab/dimensionvector", |
44 | 48 | "qudtprefix": "http://qudt.org/2.1/vocab/prefix", |
45 | | - "ref": "https://brickschema.org/schema/Brick/ref", |
46 | 49 | } |
47 | 50 |
|
48 | 51 | shacl_namespace_declarations = [ |
|
76 | 79 | SH.namespace: Literal(str(REF), datatype=XSD.anyURI), |
77 | 80 | SH.prefix: Literal("ref"), |
78 | 81 | }, |
| 82 | + { |
| 83 | + SH.namespace: Literal("https://w3id.org/rec#", datatype=XSD.anyURI), |
| 84 | + SH.prefix: Literal("rec"), |
| 85 | + }, |
79 | 86 | ] |
80 | 87 |
|
81 | 88 | BRICK_IRI_VERSION = URIRef(f"https://brickschema.org/schema/{BRICK_VERSION}/Brick") |
|
0 commit comments