Skip to content

Commit

Permalink
JSON-FG+PROV example 1 complete
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew authored and matthew committed Dec 13, 2023
1 parent 5604c39 commit 5bf60fd
Show file tree
Hide file tree
Showing 14 changed files with 1,501 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/opengeospatial/bblocks-postprocess/master/ogc/bblocks/metadata-schema.yaml",
"name": "My Building Block",
"abstract": "This Building Block serves as a template to create new ones",
"abstract": "This Building Block serves as a template to combine a JSON-FG Feature Object with a Provenance Chain",
"status": "under-development",
"dateTimeAddition": "2023-04-05T00:00:00Z",
"itemClass": "schema",
Expand Down
31 changes: 31 additions & 0 deletions _sources/json-fg-feature_with-prov/context.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"@context": {
"@base": "https://example.org/aThing/",
"base_href": "https://terranexus.pangaeainnovations.com/",
"agents": "https://someAgentRegister.eg/",
"roles": "https://someRolesRegister.eg/",
"dggsOperations": "https://someDGGSOperationsRegister.eg",
"terranexusProcesses": "base_href:ogcapi/processes/",
"terranexusCollections": "base_href:ogcapi/collections/",
"terranexusJobs": "base_href:ogcapi/jobs/",
"terranexusTempData": "https://someTempDataRegister.eg/",
"featureType": {
"@id": "@type",
"@context": {
"@base": "http://example.org/myEntities/"
}
},
"activityType": {
"@id": "@type",
"@context": {
"@base": "http://example.org/myActivityTypes/"
},
"oneOf": [
"DataIngestion",
"Registration",
"ogcapiProcess",
"dggsOperation"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
- language: json
ref: examples/test.json
- language: json
ref: examples/test-fail.json
ref: examples/wasGenerated_prov_example.json
81 changes: 81 additions & 0 deletions _sources/json-fg-feature_with-prov/examples/test4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"@context": {
"@base": "https://example.org/aThing/",
"agents": "https://someagentregister.eg/",
"thing": "https://example.org/entities/",
"foaf": "http://xmlns.com/foaf/0.1/",
"survtypes": "https://example.org/surveytypes/",
"surveyreg": "https://example.org/surveys/",
"featureType": {
"@id": "@type",
"@context": {
"@base": "http://example.org/myEntities/"
}
},
"activityType": {
"@id": "@type",
"@context": {
"@base": "http://example.org/myActivityTypes/"
}
}
},
"id": "DP-1",
"type": "Feature",
"featureType": "Survey",
"time": {
"date":"2023-12-10"
},
"place": {"type": "null"},
"geometry": {
"type": "Point",
"coordinates": [100.0,-0.5]
},
"properties": {
"prop1": "bla"
},
"wasGeneratedBy": [
"surveyreg:DP-1-S1",
{
"activityType": "Registration",
"id": "surveyreg:DP-1-S2",
"endedAtTime": "2019-01-01T19:03:15+01:00",
"wasAssociatedWith": "agents:bc-3",
"used": {
"id": "Example-Act",
"wasAttributedTo": "agents:nz",
"links": [
{
"href": "https://nze.gov/linktoact/Example1",
"rel": "related"
}
]
}
}
],
"has_provenance": [
{
"id": "DP-2223",
"provType": "Entity",
"featureType": "Survey",
"wasGeneratedBy": "DP-1-S1"
},
{
"provType": "Activity",
"id": "surveyreg:DP-1-S1",
"activityType": "InitialSurvey",
"endedAtTime": "2023-10-05T05:03:15+01:00",
"wasAssociatedWith": "agents:ah-2344503",
"used": {
"id": "thing:Act3",
"entityType": "Legislation",
"wasAttributedTo": "agents:nz",
"links": [
{
"href": "https://some.gov/linktoact/",
"rel": "related"
}
]
}
}
]
}
Loading

0 comments on commit 5bf60fd

Please sign in to comment.