Parents:
Definition: A device that transfers thermal energy in the opposite direction of spontaneous heat transfer by absorbing heat from a cold reservoir and releasing it into a warmer one.
| from graphviz import Digraph | |
| import sys | |
| from urllib.parse import quote | |
| import re | |
| import brickschema | |
| from brickschema.namespaces import BRICK | |
| classg = brickschema.Graph(load_brick=True) | |
| typenodes = {} |
| @prefix bacnet: <http://data.ashrae.org/bacnet/2020#> . | |
| @prefix brick: <https://brickschema.org/schema/Brick#> . | |
| @prefix bsh: <https://brickschema.org/schema/BrickShape#> . | |
| @prefix dcterms1: <http://purl.org/dc/terms#> . | |
| @prefix owl: <http://www.w3.org/2002/07/owl#> . | |
| @prefix qudt: <http://qudt.org/schema/qudt/> . | |
| @prefix qudtqk: <http://qudt.org/vocab/quantitykind/> . | |
| @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
| @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
| @prefix ref: <https://brickschema.org/schema/Brick/ref#> . |
Parents:
Definition: A device that transfers thermal energy in the opposite direction of spontaneous heat transfer by absorbing heat from a cold reservoir and releasing it into a warmer one.
| import random | |
| from functools import partial | |
| import inspect | |
| from typing import Optional | |
| from types import MethodType | |
| from contextlib import ContextDecorator | |
| class Session: | |
| pass |
| from flask import Flask | |
| from flask import request, jsonify | |
| import rdflib | |
| from rdflib.util import from_n3 | |
| import sys | |
| graph = rdflib.Graph() | |
| graph.parse(sys.argv[1], format="turtle") | |
| app = Flask(__name__) |
| from rdflib import Namespace | |
| from brickschema.namespaces import BRICK, RDF | |
| from brickschema import Graph | |
| NS = Namespace("ex:") | |
| def ifc2brick(osobj): | |
| """ | |
| Convert an IFC object from OpenShell to a Brick object. | |
| Returns the corresponding Brick graph for that object |
| diff --git a/generate_brick.py b/generate_brick.py | |
| index 448ffe3..3b3ba78 100755 | |
| --- a/generate_brick.py | |
| +++ b/generate_brick.py | |
| @@ -65,6 +65,16 @@ shacl_tag_property_shapes = {} | |
| has_exactly_n_tags_shapes = {} | |
| +def bn(item): | |
| + """ |
| @prefix brick: <https://brickschema.org/schema/Brick#> . | |
| @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
| @prefix owl: <http://www.w3.org/2002/07/owl#> . | |
| @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
| @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
| @prefix sh: <http://www.w3.org/ns/shacl#> . | |
| @prefix unit: <http://qudt.org/vocab/unit/> . | |
| @prefix : <urn:example#> . | |
| # a => rdf:type |
| @prefix brick: <https://brickschema.org/schema/Brick#> . | |
| @prefix bsh: <https://brickschema.org/schema/BrickShape#> . | |
| @prefix dcterms: <http://purl.org/dc/terms#> . | |
| @prefix owl: <http://www.w3.org/2002/07/owl#> . | |
| @prefix qudt: <http://qudt.org/schema/qudt/> . | |
| @prefix qudtqk: <http://qudt.org/vocab/quantitykind/> . | |
| @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
| @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
| @prefix sdo: <http://schema.org/> . | |
| @prefix sh: <http://www.w3.org/ns/shacl#> . |