From 125cfad878a4700a9a607315661662282812abf9 Mon Sep 17 00:00:00 2001 From: shreyasnagare Date: Sat, 14 May 2022 02:54:38 -0400 Subject: [PATCH] Convert xml/sql code blocks to turtle/sparql --- ontologyPages/v1.1.md | 12 ++++++------ usageDetails/timeseries.md | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ontologyPages/v1.1.md b/ontologyPages/v1.1.md index 5d08a33a8b..baaee05747 100644 --- a/ontologyPages/v1.1.md +++ b/ontologyPages/v1.1.md @@ -51,7 +51,7 @@ The equivalency of a class to a set of tags is accomplished by modeling a Brick Here is the Brick "class-to-tag" mapping definition for the `Temperature_Sensor` class: -```xml +```turtle # in turtle format brick:Temperature_Sensor a owl:Class ; rdfs:subClassOf brick:Sensor ; @@ -75,7 +75,7 @@ brick:Temperature_Sensor a owl:Class ; The first `owl:Restriction` is the set of all classes that have `tag:Sensor` as the value for one of their `brick:hasTag` properties. Through a reasoning process, all instances of `brick:Temperature_Sensor` will inherit the tag annotations. -```xml +```turtle # input Brick model has an instance of brick:Temperature_Sensor :ts1 a brick:Temperature_Sensor @@ -90,7 +90,7 @@ To perform the inference of a class from a set of tags (the inverse of the proce For a sample entity modeled with tags: -```xml +```turtle # myfile.ttl @prefix brick: . @prefix tag: . @@ -119,7 +119,7 @@ Substances and quantities can be related to equipment and points. Not all of this is implemented. In the current prototype, sensors are related to substances and quantities through the `brick:measures` relationship. -```xml +```turtle :ts1 a brick:Temperature_Sensor :ts1 brick:measures :Air @@ -129,7 +129,7 @@ through the `brick:measures` relationship. We can further subclass substances to provide system- or process-level context to their definitions: -```xml +```turtle :ts1 a brick:Sensor :ts1 brick:measures brick:Return_Air :ts1 brick:measures brick:Temperature @@ -144,7 +144,7 @@ For this example, because `:ts1` measures Air (specifically the `brick:Air` clas Here's what that the definition looks like in turtle: -```xml +```turtle brick:Air_Temperature_Sensor a owl:Class ; rdfs:subClassOf brick:Temperature_Sensor ; owl:equivalentClass [ owl:intersectionOf ( [ a owl:Restriction ; diff --git a/usageDetails/timeseries.md b/usageDetails/timeseries.md index 2ac0e6815e..57fc4dce66 100644 --- a/usageDetails/timeseries.md +++ b/usageDetails/timeseries.md @@ -9,7 +9,7 @@ targets: ## Example usage -```sql +```turtle :sensor1 a brick:Temperature_Sensor ; brick:hasUnit unit:DEG_F ; brick:timeseries [ @@ -33,4 +33,4 @@ targets: . ``` -Read more about [Timeseries Storage](https://docs.brickschema.org/metadata/timeseries-storage.html) here. \ No newline at end of file +Read more about [Timeseries Storage](https://docs.brickschema.org/metadata/timeseries-storage.html) here.