Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
62a2561
Created the ocean-acidification schema directory
adamml Oct 5, 2015
08629e1
Add the Reference object
adamml Oct 5, 2015
71ea97e
First draft of the Ocean Acidification schema completed
adamml Oct 6, 2015
5fcaff8
Create Context.json
adamml Oct 12, 2015
927860c
Update Context.json
adamml Oct 12, 2015
aa7889e
Fixed errors in Quality.json "oneOf"
adamml Oct 13, 2015
7288da9
Switched "required" in Protocol.json
adamml Oct 13, 2015
e39c6c5
Methodology.json only requires "id"
adamml Oct 13, 2015
f6b6cd0
Removed required: "doi" from Reference.json
adamml Oct 13, 2015
038a36a
Update Reference.json
adamml Oct 13, 2015
c99b941
Reference only the adamml repoistory
adamml Oct 15, 2015
58a7c5c
Created a json-ld folder
adamml Oct 15, 2015
24aa330
Created examples folder
adamml Oct 15, 2015
1bebedc
Upated DOI pattern
adamml Oct 15, 2015
fcfdf8d
Added required instrument and laboratory
adamml Oct 16, 2015
cd409b2
Update Reference.json
adamml Oct 16, 2015
e0aa08e
Create Common.json
adamml Oct 16, 2015
42b1c32
Update Common.json
adamml Oct 16, 2015
5e4c844
Update Reference.json
adamml Oct 16, 2015
2b77d9c
Update Reference.json
adamml Oct 16, 2015
7d7389e
Update Reference.json
adamml Oct 16, 2015
396fe9f
Delete Common.json
adamml Oct 16, 2015
fce1725
Update Observation.json
adamml Oct 16, 2015
ad73ad0
Update TotalAlkalinity.json
adamml Oct 16, 2015
da17f0e
Updated doi pattern
adamml Oct 16, 2015
0e209c4
Update Methodology.json
adamml Oct 16, 2015
2e09013
Update Protocol.json
adamml Oct 16, 2015
02b8110
Update TotalAlkalinity.json
adamml Oct 16, 2015
27a3072
Update Observation.json
adamml Oct 16, 2015
0efe17d
Fixed validation issues
adamml Oct 19, 2015
c7d7862
Update Reference.json
adamml Oct 19, 2015
6b999f9
Create Reference_Examle.json
adamml Oct 19, 2015
6874944
Update TotalAlkalinity.json
adamml Oct 19, 2015
4ac1b2a
Rename TotalAlkalinity.json to Observation.json
adamml Oct 19, 2015
2178ad8
Rename Observation.json to Observation_Example.json
adamml Oct 19, 2015
9f4471e
Create PreparationStep_Example.json
adamml Oct 19, 2015
18f121d
Update Observation
adamml Oct 20, 2015
692cc16
Example creation
adamml Oct 20, 2015
7b46fc4
Validation errors fixed
adamml Oct 20, 2015
080ab04
Fixed #1
adamml Dec 14, 2015
80c0a0a
Added JSON-LD context to everything.
adamml Dec 14, 2015
f2a84f8
Fixed #2
adamml Dec 14, 2015
b05bd9f
Added vocabTerm to observedProperty; uom; procedure; featureOfInterest
adamml May 13, 2016
5f6d10d
Fixed a typo in common.json introduced in b05bd9f41ea9c353efa8c49d0be…
adamml May 13, 2016
43c333b
Still fixing Common.json from b05bd9f41ea9c353efa8c49d0becf27ca70eed0b
adamml May 13, 2016
c6ebdd0
Fixed oneOfs unenclosed by double quotes
adamml Sep 28, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 101 additions & 51 deletions Common.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,103 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json",
"title": "Common",
"description": "A collection of commonly used types. Should maybe come from somehwere else, one day.",
"definitions": {
"count": {
"title": "count",
"type": "integer"
},
"measure": {
"title": "measure",
"description": "scaled number - uom is optional, to support the case where a common uom is used in a collection",
"type": "object",
"properties": {
"value": { "type": "number" },
"uom": { "type": "string" }
},
"required": [ "value" ],
"additionalProperties": false
},
"text": {
"title": "text",
"type": "string"
},
"truth": {
"title": "truth",
"type": "boolean"
},
"vocabTerm": {
"title": "vocabTerm",
"description": "term with optional vocabulary source",
"type": "object",
"properties": {
"term": { "type": "string" },
"vocabulary": { "type": "string", "format": "uri" }
},
"required": [ "term" ],
"additionalProperties": false
},
"link": {
"title": "link",
"type": "object",
"properties": {
"href": { "type": "string", "format": "uri" },
"rel": { "type": "string", "format": "uri" },
"title": { "type": "string" }
},
"required": [ "href" ],
"additionalProperties":false
}
}
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json",
"title": "Common",
"description": "A collection of commonly used types. Should maybe come from somehwere else, one day.",
"definitions": {
"@context": {
"oneOf": [{
"title": "@context",
"description": "A context header for JSON-LD applications - using string here to allow for a remote context",
"type": "string"},
{"title": "@context",
"description": "A context header for JSON-LD applications - using array here to allow for a local context",
"type": "array"}
]
},
"count": {
"title": "count",
"type": "integer"
},
"measure": {
"title": "measure",
"description": "scaled number - uom is optional, to support the case where a common uom is used in a collection",
"type": "object",
"properties": {
"value": {
"type": "number"
},
"uom": {
"oneOf": [
{"type": "string"},
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/vocabTerm" }]
}
},
"required": [
"value"
],
"additionalProperties": false
},
"text": {
"title": "text",
"type": "string"
},
"truth": {
"title": "truth",
"type": "boolean"
},
"vocabTerm": {
"title": "vocabTerm",
"description": "term with optional vocabulary source",
"type": "object",
"properties": {
"term": {
"type": "string"
},
"vocabulary": {
"type": "string",
"format": "uri"
}
},
"required": [
"term"
],
"additionalProperties": false
},
"link": {
"title": "link",
"type": "object",
"properties": {
"href": {
"type": "string",
"format": "uri"
},
"rel": {
"type": "string",
"format": "uri"
},
"title": {
"type": "string"
}
},
"required": [
"href"
],
"additionalProperties": false
},
"doi": {
"title": "doi",
"description": "A Digital Object Identifer to define a resource",
"type": "object",
"properties": {
"doi": {
"type": "string",
"format": "uri"
}
},
"required": [
"doi"
],
"additionalProperties": false
}
}
}
1 change: 1 addition & 0 deletions Geometry.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
}
},
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"geometry": { "$ref": "#/definitions/geometryObject"}
},
"required": [ "geometry" ]
Expand Down
1 change: 1 addition & 0 deletions Measurement.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Observation.json" }
],
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"id": { },
"type": { "enum": [ "Measurement" ] } ,
"phenomenonTime": { },
Expand Down
8 changes: 7 additions & 1 deletion MonitoringFeature.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
}
},
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"id": {
"title": "id",
"description": "A unique identifier for the observation",
"type": "string"
},
"relatedParty": {
"title": "relatedParty",
"description": "The details of a party related to this MonitoringFeature. Multiple related parties may be described using the role code list (from ISO 19115). The most common relationships are likely to be: owner, originator, pointOfContact, principalInvestigator and distributor.",
Expand All @@ -32,7 +38,7 @@
"representativePoint": {
"title": "representativePoint",
"description": "A point location that is representative of the monitoring feature's location. Typically this is used when the shape of the monitoring feature is an area or other non-point geometry. It may also be used to provide an approximate point location in sensitive observation scenarios.",
"$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/geometryObject"
"$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Geometry.json#/definitions/geometryObject"
},
"monitoringType": {
"title": "monitoringType",
Expand Down
20 changes: 16 additions & 4 deletions Observation.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"description": "An observation is an act associated with a discrete time instant or period through which a number, term or other symbol is assigned to a phenomenon. It involves application of a specified procedure, such as a sensor, instrument, algorithm or process chain. The procedure may be applied in-situ, remotely, or ex-situ with respect to the sampling location. The result of an observation is an estimate of the value of a property of some feature.",
"type": "object",
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"id": {
"title": "id",
"description": "A unique identifier for the observation",
Expand All @@ -30,17 +31,27 @@
"observedProperty": {
"title": "observedProperty",
"description": "property whose value is the result of the observation",
"$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/link"
"oneOf": [
{"$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/link"},
{"$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/vocabTerm"}
]
},
"procedure": {
"title": "procedure",
"description": "procedure used in making observation. Typically a sensor or sensor-system, algorithm, computational procedure.",
"$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/link"
"oneOf": [
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/link" },
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/vocabTerm" },
{ "$ref": "http://raw.githubusercontent.com/adamml/om-json/master/ocean-acidification/Protocol.json" }
]
},
"featureOfInterest": {
"title": "featureOfInterest",
"description": "subject of the observation, whose type may carry the observed property",
"$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/link"
"oneOf": [
{"$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/link"},
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/vocabTerm" }
]
},
"samplingStrategy": {
"title": "samplingStrategy",
Expand All @@ -67,7 +78,8 @@
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/text" },
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Temporal.json#/definitions/temporalObject" },
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Geometry.json#/definitions/geometryObject" },
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/TimeseriesTVP.json#/definitions/TimeseriesTVP" }
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/TimeseriesTVP.json#/definitions/TVPairMeasure" },
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/TimeseriesTVP.json#/definitions/TVPairCategory" }
]
}
},
Expand Down
1 change: 1 addition & 0 deletions ObservationCollection.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"member"
],
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"id": {
"title": "id",
"description": "A unique identifier for the observation collection",
Expand Down
1 change: 1 addition & 0 deletions Sampling.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"description": "Feature on which observations may be made, which is intended to be representative of a different (usually larger) feature that is not fully accessible for some reason.",
"type": "object",
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"id": {
"title": "id",
"description": "A unique identifier for the sampling feature",
Expand Down
6 changes: 4 additions & 2 deletions SamplingCollection.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"description": "Collection of features on which observations may be made.",
"type": "object",
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"id": {
"title": "id",
"description": "A unique identifier for the sampling feature collection",
Expand All @@ -13,7 +14,8 @@
"type": {
"title": "type",
"description": "Identifies the type of object",
"type": "enum"
"type": "string",
"enum": ["Specimen","Sampling","SpatialSampling"]
},
"sampledFeature": {
"title": "sampledFeature",
Expand All @@ -28,7 +30,7 @@
"description": "Member of this sampling feature collection",
"type": "array",
"items": {
"anyOf": [
"oneOf": [
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/link" },
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Sampling.json" },
{ "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Specimen.json" },
Expand Down
3 changes: 2 additions & 1 deletion SpatialSampling.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://raw.githubusercontent.com/peterataylor/om-json/master/SpatialSampling.json",
"id": "http://raw.githubusercontent.com/adamml/om-json/master/SpatialSampling.json",
"title": "Spatial Sampling Feature",
"description": " ## EXTENDS SAMPLING FEATURE ## Sampling feature whose defining characteristic is that it samples the intended feature by geometric subsetting. ",
"type": "object",
Expand All @@ -24,6 +24,7 @@
}
],
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"id": {},
"type": { "enum": [ "SamplingPoint" , "SamplingCurve" , "SamplingSurface" , "SamplingSolid" ] },
"sampledFeature": {},
Expand Down
1 change: 1 addition & 0 deletions Temporal.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
}
},
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"time": { "$ref": "#/definitions/temporalObject" }
},
"required": [ "time" ]
Expand Down
3 changes: 2 additions & 1 deletion TimeseriesMetadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"description":"Metadata for the whole timeseries",
"type":"object",
"properties" : {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"temporalExtent": {
"title":"temporalExtent",
"type":"object",
Expand Down Expand Up @@ -41,7 +42,7 @@
"title":"commentBlocks",
"type":"array",
"items" : {
"$ref":"#/definitions/commentBlock"
"$ref":"#/definitions/TimeseriesMetadata/properties/commentBlock"
}
},
"intendedObservationSpacing": {
Expand Down
5 changes: 3 additions & 2 deletions TimeseriesTVP.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"$ref":"http://raw.githubusercontent.com/peterataylor/om-json/master/TimeseriesMetadata.json#/definitions/PointMetadata"
}
},
"additionalProperties":"false"
"additionalProperties":false
},
"TVPairCategory" : {
"type":"object",
Expand All @@ -36,10 +36,11 @@
"$ref":"http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/vocabTerm"
}
},
"additionalProperties":"false"
"additionalProperties":false
}
},
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"id": {
"title": "id",
"description": "Identifier for the time-series",
Expand Down
13 changes: 13 additions & 0 deletions json-ld/Context.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"@context": {
"observedProperty": "http://def.seegrid.csiro.au/isotc211/iso19156/2011/observation#observedProperty",
"href": "@id",
"foi": "http://def.seegrid.csiro.au/isotc211/iso19156/2011/observation#featureOfInterest",
"id": "@id",
"phenomenonTime": "http://def.seegrid.csiro.au/isotc211/iso19156/2011/observation#phenomenonTime",
"instant": "@value",
"member": "http://def.seegrid.csiro.au/isotc211/iso19156/2011/observation#relatedObservation",
"procedure": "http://def.seegrid.csiro.au/isotc211/iso19156/2011/observation#Process",
"resultTime": "http://def.seegrid.csiro.au/isotc211/iso19156/2011/observation#resultTime",
"result": "http://def.seegrid.csiro.au/isotc211/iso19156/2011/observation#result",
"value": "@value"
}
33 changes: 33 additions & 0 deletions ocean-acidification/Methodology.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://raw.githubusercontent.com/adamml/om-json/master/ocean-acidification/Methodology.json",
"title": "Methodology",
"description": "A description of a reference to, for example, a journal article and some descriptive parameters for an analytical methodology",
"type": "object",
"properties": {
"@context" : { "$ref": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/@context" },
"id": {
"title": "id",
"description": "A unique identifier for this protocol",
"type": "string"
},
"reference": {
"title": "reference",
"description": "Either an object defining the academic literature reference or a URL linking to such an object",
"oneOf": [
{ "$ref" : "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/link" },
{ "$ref" : "http://raw.githubusercontent.com/adamml/om-json/master/ocean-acidification/Reference.json" }
]
},
"preparationStep": {
"title": "preparation step",
"description": "Either an object defining the sample preparation steps taken reference or a URL linking to such an object",
"oneOf": [
{ "$ref" : "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json#/definitions/link" },
{ "$ref" : "http://raw.githubusercontent.com/adamml/om-json/master/ocean-acidification/PreparationStep.json" }
]
}
},
"required": [ "id"],
"additionalProperties": false
}
Loading