Comparing version 0.0.4 to 0.0.5
@@ -51,17 +51,20 @@ //"use strict"; | ||
// General definition | ||
"id": "@id", | ||
"type": "@type", | ||
"name": "rdfs:label", | ||
"label": "rdfs:label", | ||
"url": "xs:anyURI", | ||
"dateCreated": { | ||
"@id": "ebucore:dateCreated", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"dateModified": { | ||
"@id": "ebucore:dateModified", | ||
"@type": "xsd:dateTime" | ||
}, | ||
// EBUcore definitions | ||
"BMContent": "ebucore:BMContent", | ||
"BMEssence": "ebucore:BMEssence", | ||
"dateCreated": "ebucore:dateCreated", | ||
"dateModified": "ebucore:dateModified", | ||
// FIMS definitions | ||
"Service": "fims:Service", | ||
@@ -179,5 +182,2 @@ "hasResource": { | ||
"BMEssence": "ebucore:BMEssence", | ||
"locator": "ebucore:locator", | ||
"asyncEndpoint": "fims:hasAsyncEndpoint", | ||
@@ -325,6 +325,6 @@ "AsyncEndpoint": "fims:AsyncEndpoint", | ||
function Service(name, hasResource, acceptsJobType, acceptsJobProfile, inputLocation, outputLocation) { | ||
function Service(label, hasResource, acceptsJobType, acceptsJobProfile, inputLocation, outputLocation) { | ||
this["@context"] = internalContext; | ||
this.type = "Service"; | ||
this.name = name; | ||
this.label = label; | ||
this.hasResource = hasResource; | ||
@@ -337,13 +337,13 @@ this.acceptsJobType = acceptsJobType; | ||
function ServiceResource(resourceType, locator) { | ||
function ServiceResource(resourceType, url) { | ||
this["@context"] = internalContext; | ||
this.type = "ServiceResource"; | ||
this.resourceType = resourceType; | ||
this.locator = locator; | ||
this.url = url; | ||
} | ||
function JobProfile(name, hasInputParameter, hasOutputParameter, hasOptionalInputParameter) { | ||
function JobProfile(label, hasInputParameter, hasOutputParameter, hasOptionalInputParameter) { | ||
this["@context"] = internalContext; | ||
this.type = "JobProfile"; | ||
this.name = name; | ||
this.label = label; | ||
this.hasInputParameter = hasInputParameter; | ||
@@ -766,3 +766,3 @@ this.hasOutputParameter = hasOutputParameter; | ||
function getJobProfilesByName(jobType, jobProfileName, callback) { | ||
function getJobProfilesByLabel(jobType, jobProfileLabel, callback) { | ||
var jobProfiles = []; | ||
@@ -795,3 +795,3 @@ | ||
(jobProfile, callback) => { | ||
if (jobProfile.name !== jobProfileName) { | ||
if (jobProfile.label !== jobProfileLabel) { | ||
return callback(); | ||
@@ -861,3 +861,3 @@ } | ||
canServiceAcceptJob: canServiceAcceptJob, | ||
getJobProfilesByName: getJobProfilesByName | ||
getJobProfilesByLabel: getJobProfilesByLabel | ||
} |
{ | ||
"name": "fims-core", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Node module with type definitions and helper utils for fims", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
41109
767