Skip to content

Commit

Permalink
Merge pull request #336 from VladimirAlexiev/improved-examples
Browse files Browse the repository at this point in the history
improved-examples (part 3)
  • Loading branch information
CraigRe authored Sep 14, 2021
2 parents 0f57f29 + a7d83d7 commit 2e96a8c
Show file tree
Hide file tree
Showing 42 changed files with 979 additions and 753 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"endTime": "2019-04-02T13:55:00.000Z",
"dataProcessingMethod": "https://example.com/gdti/4012345000054987",
"bizRules": "https://example.com/gdti/4012345000054987",
"someFurtherMetadata": "someText"
"ext1:someFurtherMetadata": "someText"
},
"sensorReport": [
{
Expand Down Expand Up @@ -215,13 +215,13 @@
"@context": [
"https://gs1.github.io/EPCIS/epcis-context-simple.jsonld",
{
"ext3": "http://ext.com/ext3"
"ext3": "http://ext.com/ext3/"
},
{
"ext2": "http://ext.com/ext2"
"ext2": "http://ext.com/ext2/"
},
{
"ext1": "http://ext.com/ext1"
"ext1": "http://ext.com/ext1/"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"endTime": "2019-04-02T13:55:00.000Z",
"dataProcessingMethod": "https://example.com/gdti/4012345000054987",
"bizRules": "https://example.com/gdti/4012345000054987",
"someFurtherMetadata": "someText"
"ext1:someFurtherMetadata": "someText"
},
"sensorReport": [
{
Expand Down Expand Up @@ -215,13 +215,13 @@
"@context": [
"https://gs1.github.io/EPCIS/epcis-context-simple.jsonld",
{
"ext3": "http://ext.com/ext3"
"ext3": "http://ext.com/ext3/"
},
{
"ext2": "http://ext.com/ext2"
"ext2": "http://ext.com/ext2/"
},
{
"ext1": "http://ext.com/ext1"
"ext1": "http://ext.com/ext1/"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"endTime": "2019-04-02T13:55:00.000Z",
"dataProcessingMethod": "https://example.com/gdti/4012345000054987",
"bizRules": "https://example.com/gdti/4012345000054987",
"someFurtherMetadata": "someText"
"ext1:someFurtherMetadata": "someText"
},
"sensorReport": [
{
Expand Down Expand Up @@ -261,13 +261,13 @@
"@context": [
"https://gs1.github.io/EPCIS/epcis-context-simple.jsonld",
{
"ext3": "http://ext.com/ext3"
"ext3": "http://ext.com/ext3/"
},
{
"ext2": "http://ext.com/ext2"
"ext2": "http://ext.com/ext2/"
},
{
"ext1": "http://ext.com/ext1"
"ext1": "http://ext.com/ext1/"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"endTime": "2019-04-02T13:55:00.000Z",
"dataProcessingMethod": "https://example.com/gdti/4012345000054987",
"bizRules": "https://example.com/gdti/4012345000054987",
"someFurtherMetadata": "someText"
"ext1:someFurtherMetadata": "someText"
},
"sensorReport": [
{
Expand Down Expand Up @@ -211,13 +211,13 @@
"@context": [
"https://gs1.github.io/EPCIS/epcis-context-simple.jsonld",
{
"ext3": "http://ext.com/ext3"
"ext3": "http://ext.com/ext3/"
},
{
"ext2": "http://ext.com/ext2"
"ext2": "http://ext.com/ext2/"
},
{
"ext1": "http://ext.com/ext1"
"ext1": "http://ext.com/ext1/"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"endTime": "2019-04-02T13:55:00.000Z",
"dataProcessingMethod": "https://example.com/gdti/4012345000054987",
"bizRules": "https://example.com/gdti/4012345000054987",
"someFurtherMetadata": "someText"
"ext1:someFurtherMetadata": "someText"
},
"sensorReport": [
{
Expand Down Expand Up @@ -291,13 +291,13 @@
"@context": [
"https://gs1.github.io/EPCIS/epcis-context-simple.jsonld",
{
"ext3": "http://ext.com/ext3"
"ext3": "http://ext.com/ext3/"
},
{
"ext2": "http://ext.com/ext2"
"ext2": "http://ext.com/ext2/"
},
{
"ext1": "http://ext.com/ext1"
"ext1": "http://ext.com/ext1/"
}
]
}
3 changes: 3 additions & 0 deletions JSON-simple-context/WithSensorData/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Most of them are derived from the XML examples in [SensorDataExamples.xml](../..
- USes Web URIs (GS1 DL URIs) rather than EPC URNs
- `SensorDataExample14.jsonld`: Event conveying geographic coordinates as `Latitude, Longitude` (being `Angle` in `DD`) using the default Coordinate Reference System (WGS84), which does not need to be indicated
- `SensorDataExample15.jsonld`: Event conveying the same coordinates as `Easting, Northing` (being `Length` in `MTR`) using a Coordinate Reference System (CRS) other than WGS84
- Namely, this uses https://epsg.io/27700 OSGB 1936 / British National Grid (Ordnance Survey of Great Britain).
- You can see the conversion at https://epsg.io/transform#s_srs=4326&t_srs=27700&x=23.3199410&y=42.6983340,
- You can browse for the OGC EPSG URL to use at http://www.opengis.net/def/crs/EPSG/0/ (where /0/ indicates the "latest version" or version-independent URL of that CRS)
- `SensorDataExample16.jsonld`: Event conveying the same coordinates using the [geo: URI scheme](https://en.wikipedia.org/wiki/Geo_URI_scheme) ([RFC5870](https://datatracker.ietf.org/doc/html/rfc5870)), which is a much shorter way.
- However, `geo:` URIs can use only two fixed CRS (see [RFC5870 section 8.3](https://datatracker.ietf.org/doc/html/rfc5870#section-8.3) and [IANA geo-uri-parameters](https://iana.org/assignments/geo-uri-parameters/geo-uri-parameters.xhtml):
- `EPSG::4326`, which is WGS84 (2D)
Expand Down
34 changes: 20 additions & 14 deletions Turtle-simple-context/AssociationEvent/AssociationEvent-a.ttl
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix example-mda: <http://epcis.example.com/mda/> .
@prefix example1: <http://ns.example.com/epcis/> .
@prefix example2: <http://epcis.example.com/ns/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix md: <https://ns.gs1.org/epcismd/> .
@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 vtype: <urn:epcglobal:epcis:vtype:> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix ex: <http://epcis.example.com/ns/> .
@prefix examp: <http://ns.example.com/epcis/> .
@prefix example: <https://ns.example.com/epcis> .
@prefix example1: <https://ns.example1.com/epcis> .
@prefix example2: <https://ns.example2.com/epcis> .
@prefix example3: <https://ns.example3.com/epcis> .
@prefix example4: <https://ns.example4.com/epcis> .
@prefix ext1: <http://ext.com/ext1/> .
@prefix ext2: <http://ext.com/ext2/> .
@prefix ext3: <http://ext.com/ext3/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rail: <urn:gs1:epcisapp:rail:> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<ni:///sha-256;025ac144187a8c5e14caf4d1cfa69250a33dc59a5bc42a68d31b1b5e55a3f15a?ver=CBV2.0>
rdf:type epcis:AssociationEvent ;
Expand Down
46 changes: 26 additions & 20 deletions Turtle-simple-context/AssociationEvent/AssociationEvent-b.ttl
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix example-mda: <http://epcis.example.com/mda/> .
@prefix example1: <http://ns.example.com/epcis/> .
@prefix example2: <http://epcis.example.com/ns/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix md: <https://ns.gs1.org/epcismd/> .
@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 vtype: <urn:epcglobal:epcis:vtype:> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix ex: <http://epcis.example.com/ns/> .
@prefix examp: <http://ns.example.com/epcis/> .
@prefix example: <https://ns.example.com/epcis> .
@prefix example1: <https://ns.example1.com/epcis> .
@prefix example2: <https://ns.example2.com/epcis> .
@prefix example3: <https://ns.example3.com/epcis> .
@prefix example4: <https://ns.example4.com/epcis> .
@prefix ext1: <http://ext.com/ext1/> .
@prefix ext2: <http://ext.com/ext2/> .
@prefix ext3: <http://ext.com/ext3/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rail: <urn:gs1:epcisapp:rail:> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[ rdf:type epcis:EPCISDocument ;
dcterms:created "2019-11-02T14:00:00.000+01:00"^^xsd:dateTime ;
owl:versionInfo "2.0" ;
epcis:epcisBody [ epcis:eventList <ni:///sha-256;a15e0b457cfc95305b6d530978c4cd7965bb29c0b8c312310fc7210c9ef123d9?ver=CBV2.0> ]
] .

<ni:///sha-256;a15e0b457cfc95305b6d530978c4cd7965bb29c0b8c312310fc7210c9ef123d9?ver=CBV2.0>
rdf:type epcis:AssociationEvent ;
Expand All @@ -22,9 +34,3 @@
epcis:eventTimeZoneOffset "+01:00" ;
epcis:parentID <urn:epc:id:sgln:4012345.00002.12> ;
epcis:readPoint <urn:epc:id:sgln:4012345.00002.0> .

[ rdf:type epcis:EPCISDocument ;
dcterms:created "2019-11-02T14:00:00.000+01:00"^^xsd:dateTime ;
owl:versionInfo "2.0" ;
epcis:epcisBody [ epcis:eventList <ni:///sha-256;a15e0b457cfc95305b6d530978c4cd7965bb29c0b8c312310fc7210c9ef123d9?ver=CBV2.0> ]
] .
34 changes: 20 additions & 14 deletions Turtle-simple-context/AssociationEvent/AssociationEvent-c.ttl
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix example-mda: <http://epcis.example.com/mda/> .
@prefix example1: <http://ns.example.com/epcis/> .
@prefix example2: <http://epcis.example.com/ns/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix md: <https://ns.gs1.org/epcismd/> .
@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 vtype: <urn:epcglobal:epcis:vtype:> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix ex: <http://epcis.example.com/ns/> .
@prefix examp: <http://ns.example.com/epcis/> .
@prefix example: <https://ns.example.com/epcis> .
@prefix example1: <https://ns.example1.com/epcis> .
@prefix example2: <https://ns.example2.com/epcis> .
@prefix example3: <https://ns.example3.com/epcis> .
@prefix example4: <https://ns.example4.com/epcis> .
@prefix ext1: <http://ext.com/ext1/> .
@prefix ext2: <http://ext.com/ext2/> .
@prefix ext3: <http://ext.com/ext3/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rail: <urn:gs1:epcisapp:rail:> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[ rdf:type epcis:EPCISDocument ;
dcterms:created "2019-11-03T14:00:00.000+01:00"^^xsd:dateTime ;
Expand Down
34 changes: 20 additions & 14 deletions Turtle-simple-context/AssociationEvent/AssociationEvent-d.ttl
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix example-mda: <http://epcis.example.com/mda/> .
@prefix example1: <http://ns.example.com/epcis/> .
@prefix example2: <http://epcis.example.com/ns/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix md: <https://ns.gs1.org/epcismd/> .
@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 vtype: <urn:epcglobal:epcis:vtype:> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix ex: <http://epcis.example.com/ns/> .
@prefix examp: <http://ns.example.com/epcis/> .
@prefix example: <https://ns.example.com/epcis> .
@prefix example1: <https://ns.example1.com/epcis> .
@prefix example2: <https://ns.example2.com/epcis> .
@prefix example3: <https://ns.example3.com/epcis> .
@prefix example4: <https://ns.example4.com/epcis> .
@prefix ext1: <http://ext.com/ext1/> .
@prefix ext2: <http://ext.com/ext2/> .
@prefix ext3: <http://ext.com/ext3/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rail: <urn:gs1:epcisapp:rail:> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<ni:///sha-256;8a2d6f46deae4e62f517b2d2f84d2251b0c2db43b791663575e9ff358560fd85?ver=CBV2.0>
rdf:type epcis:AssociationEvent ;
Expand Down
46 changes: 26 additions & 20 deletions Turtle-simple-context/AssociationEvent/AssociationEvent-e.ttl
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix example-mda: <http://epcis.example.com/mda/> .
@prefix example1: <http://ns.example.com/epcis/> .
@prefix example2: <http://epcis.example.com/ns/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix md: <https://ns.gs1.org/epcismd/> .
@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 vtype: <urn:epcglobal:epcis:vtype:> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix ex: <http://epcis.example.com/ns/> .
@prefix examp: <http://ns.example.com/epcis/> .
@prefix example: <https://ns.example.com/epcis> .
@prefix example1: <https://ns.example1.com/epcis> .
@prefix example2: <https://ns.example2.com/epcis> .
@prefix example3: <https://ns.example3.com/epcis> .
@prefix example4: <https://ns.example4.com/epcis> .
@prefix ext1: <http://ext.com/ext1/> .
@prefix ext2: <http://ext.com/ext2/> .
@prefix ext3: <http://ext.com/ext3/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rail: <urn:gs1:epcisapp:rail:> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

[ rdf:type epcis:EPCISDocument ;
dcterms:created "2019-11-05T14:00:00.000+01:00"^^xsd:dateTime ;
owl:versionInfo "2.0" ;
epcis:epcisBody [ epcis:eventList <ni:///sha-256;8bbf932aa86072c4e5e6e58666b9344447c3811e07823677c336a00d7db67e5a?ver=CBV2.0> ]
] .

<ni:///sha-256;8bbf932aa86072c4e5e6e58666b9344447c3811e07823677c336a00d7db67e5a?ver=CBV2.0>
rdf:type epcis:AssociationEvent ;
Expand All @@ -27,9 +39,3 @@
epcis:eventTimeZoneOffset "+01:00" ;
epcis:parentID <urn:epc:id:grai:4012345.55555.987> ;
epcis:readPoint <urn:epc:id:sgln:4012345.00001.0> .

[ rdf:type epcis:EPCISDocument ;
dcterms:created "2019-11-05T14:00:00.000+01:00"^^xsd:dateTime ;
owl:versionInfo "2.0" ;
epcis:epcisBody [ epcis:eventList <ni:///sha-256;8bbf932aa86072c4e5e6e58666b9344447c3811e07823677c336a00d7db67e5a?ver=CBV2.0> ]
] .
34 changes: 20 additions & 14 deletions Turtle-simple-context/AssociationEvent/AssociationEvent-f.ttl
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix example-mda: <http://epcis.example.com/mda/> .
@prefix example1: <http://ns.example.com/epcis/> .
@prefix example2: <http://epcis.example.com/ns/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix md: <https://ns.gs1.org/epcismd/> .
@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 vtype: <urn:epcglobal:epcis:vtype:> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix cbv: <https://ns.gs1.org/cbv/> .
@prefix cbvmda: <urn:epcglobal:cbv:mda:> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix epcis: <https://ns.gs1.org/epcis/> .
@prefix ex: <http://epcis.example.com/ns/> .
@prefix examp: <http://ns.example.com/epcis/> .
@prefix example: <https://ns.example.com/epcis> .
@prefix example1: <https://ns.example1.com/epcis> .
@prefix example2: <https://ns.example2.com/epcis> .
@prefix example3: <https://ns.example3.com/epcis> .
@prefix example4: <https://ns.example4.com/epcis> .
@prefix ext1: <http://ext.com/ext1/> .
@prefix ext2: <http://ext.com/ext2/> .
@prefix ext3: <http://ext.com/ext3/> .
@prefix gs1: <https://gs1.org/voc/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rail: <urn:gs1:epcisapp:rail:> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<ni:///sha-256;5f7c472bc4905de27a19b2efc8e4a9c6dc195139669b80b515f12218ff07cf65?ver=CBV2.0>
rdf:type epcis:AssociationEvent ;
Expand Down
Loading

0 comments on commit 2e96a8c

Please sign in to comment.