Skip to content

Commit

Permalink
Convert xml/sql code blocks to turtle/sparql
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasnagare committed May 14, 2022
1 parent 86daf56 commit 125cfad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions ontologyPages/v1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand All @@ -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
Expand All @@ -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: <https://brickschema.org/schema/1.1.0/Brick#> .
@prefix tag: <https://brickschema.org/schema/1.1.0/BrickTag#> .
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 ;
Expand Down
4 changes: 2 additions & 2 deletions usageDetails/timeseries.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ targets:

## Example usage

```sql
```turtle
:sensor1 a brick:Temperature_Sensor ;
brick:hasUnit unit:DEG_F ;
brick:timeseries [
Expand All @@ -33,4 +33,4 @@ targets:
.
```

Read more about [Timeseries Storage](https://docs.brickschema.org/metadata/timeseries-storage.html) here.
Read more about [Timeseries Storage](https://docs.brickschema.org/metadata/timeseries-storage.html) here.

0 comments on commit 125cfad

Please sign in to comment.