Skip to content

Commit

Permalink
Added schema.org ontology
Browse files Browse the repository at this point in the history
Added schema.org ontology
  • Loading branch information
NelsonPereira1991 committed Jun 7, 2017
1 parent 05e6f48 commit f5f4f88
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/models/meta/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,15 @@ Config.initGlobals = function()
description: "Computational Fluid Dynamics... Flow Case, Initial Condition, Temporal Discretization...",
domain: "Computational Fluid Dynamics",
domain_specific: true
},
schema : {
prefix: "schema",
uri: "http://schema.org/",
elements: Elements.schema,
label: "Schema.org",
description: "General Purpose schema",
domain: "Generic",
domain_specific: false
}
};

Expand Down
15 changes: 14 additions & 1 deletion src/models/meta/elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@ var DbConnection = require(Config.absPathInSrcFolder("/kb/db.js")).DbConnection;

function Elements (){}


/**
* Elements of the DC Ontology
* Elements of the schema.org Ontology
*/

Elements.schema = {
sharedContent :
{
type : DbConnection.string,
control : Config.controls.input_box

}
};

/**
* Elements of the DC Ontology
*/
Elements.dcterms =
{
abstract :
Expand Down

0 comments on commit f5f4f88

Please sign in to comment.