Skip to content

Commit

Permalink
added ontologies, corrected sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
mgpsp committed Jun 5, 2018
1 parent 003ed65 commit 7a8139b
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 2 deletions.
4 changes: 3 additions & 1 deletion conf/deployment_configs.json
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@
"research",
"hdg",
"ddiup",
"disco"
"disco",
"m3lite",
"ssn"
],
"authentication": {
"default": {
Expand Down
2 changes: 1 addition & 1 deletion public/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"angular-mocks": "1.6.1",
"angular-resource": "1.6.1",
"angular-route": "1.6.1",
"angular-sanitize": "^1.6.1",
"angular-sanitize": "1.6.1",
"angular-touch": "1.6.1",
"angular-loading-bar": "^0.8.0",
"angular-ui-tree": "^2.15.0",
Expand Down
18 changes: 18 additions & 0 deletions src/models/meta/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,24 @@ Config.enabledOntologies = {
description: "A vocabulary for publishing metadata about data sets (research and survey data) into the Web of Linked Data",
domain: "Generic",
domain_specific: false
},
ssn: {
prefix: "ssn",
uri: "https://raw.githubusercontent.com/feup-infolab/dendro-ontologies/master/SSN/SSN.owl#",
elements: Elements.ontologies.ssn,
label: "Semantic Sensor Network",
description: "Describes sensors and observations, and related concepts. It does not describe domain concepts, time, locations, etc. these are intended to be included from other ontologies via OWL imports.",
domain: "Sensors and Observations",
domain_specific: true
},
m3lite: {
prefix: "m3lite",
uri: "https://raw.githubusercontent.com/feup-infolab/dendro-ontologies/master/M3-LITE/M3-lite.owl#",
elements: Elements.ontologies.m3lite,
label: "M3-lite Taxonomy",
description: "A taxonomy that enables testbeds to semantically annotate the IoT data produced by heterogeneous devices. In this taxonomy, we classify devices, the domain of interests (health, smart home, smart kitchen, environmental monitoring, etc.), phenomena and unit of measurements",
domain: "IoT",
domain_specific: true
}
};

Expand Down
131 changes: 131 additions & 0 deletions src/models/meta/elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -3276,6 +3276,137 @@ Elements.ontologies.ddiup = {
}
};

/**
* Elements of the m3lite ontology
*
*/

Elements.ontologies.m3lite = {
calibrationMeasurementType:
{
type: Elements.types.string,
control: Controls.markdown_box
},
coordinates:
{
type: Elements.types.string,
control: Controls.input_box
},
device:
{
type: Elements.types.string,
control: Controls.markdown_box
},
workingState:
{
type: Elements.types.string,
control: Controls.input_box
},
connectedUsers:
{
type: Elements.types.string,
control: Controls.input_box
},
count:
{
type: Elements.types.string,
control: Controls.input_box
},
unit:
{
type: Elements.types.string,
control: Controls.input_box
},
transportationDOI:
{
type: Elements.types.string,
control: Controls.markdown_box
},
measurementType:
{
type: Elements.types.string,
control: Controls.input_box
},
distance:
{
type: Elements.types.string,
control: Controls.input_box
}
};

/**
* Elements of the ssn ontology
*
*/

Elements.ontologies.ssn = {
observation:
{
type: Elements.types.string,
control: Controls.markdown_box
},
observationSamplingTime:
{
type: Elements.types.string,
control: Controls.input_box
},
region:
{
type: Elements.types.string,
control: Controls.input_box
},
startTime:
{
type: Elements.types.string,
control: Controls.input_box
},
endTime:
{
type: Elements.types.string,
control: Controls.input_box
},
observationResult:
{
type: Elements.types.string,
control: Controls.markdown_box
},
measurementRange:
{
type: Elements.types.string,
control: Controls.markdown_box
},
sensor:
{
type: Elements.types.string,
control: Controls.markdown_box
},
sensorDataSheet:
{
type: Elements.types.string,
control: Controls.markdown_box
},
frequency:
{
type: Elements.types.string,
control: Controls.input_box
},
sensingMethodUsed:
{
type: Elements.types.string,
control: Controls.markdown_box
},
system:
{
type: Elements.types.string,
control: Controls.markdown_box
},
platform:
{
type: Elements.types.string,
control: Controls.input_box
}
};

Elements.setAllElements = function (loadedElements)
{
for (let i = 0; i < loadedElements.length; i++)
Expand Down

0 comments on commit 7a8139b

Please sign in to comment.