-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
86 lines (86 loc) · 4.47 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"@context": {
"xsd": "http://www.w3.org/2001/XMLSchema#",
"owl": "http://www.w3.org/2002/07/owl#",
"shacl": "http://www.w3.org/ns/shacl#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"label": "rdfs:label",
"subClassOf": { "@id": "rdfs:subClassOf", "@type": "@id" },
"dcterms": "http://purl.org/dc/elements/1.1/",
"description": "dcterms:description",
"path": { "@id": "shacl:path", "@type": "@id" },
"class": { "@id": "shacl:class", "@type": "@id" },
"datatype": { "@id": "shacl:datatype", "@type": "@id" },
"maxCount": { "@id": "shacl:maxCount", "@type": "xsd:integer" },
"minCount": { "@id": "shacl:minCount", "@type": "xsd:integer" },
"name": { "@id": "shacl:name", "@type": "xsd:string" },
"shacl:description": { "@type": "xsd:string" },
"closed": { "@id": "shacl:closed", "@type": "xsd:boolean" },
"property": { "@id": "shacl:property", "@type": "@id" },
"nodeKind": { "@id": "shacl:nodeKind", "@type": "@id" },
"skl": "https://standardknowledge.com/ontologies/core/",
"rr": "http://www.w3.org/ns/r2rml#"
},
"@id": "https://standardknowledge.com/ontologies/core/VerbNounMapping",
"@type": ["owl:Class", "shacl:NodeShape", "skl:Noun"],
"label": "Verb Noun Mapping",
"subClassOf": "skl:Mapping",
"description": "A type of SKL Mapping that specifies what should be done when a Verb is executed with a specific `noun` as an argument. The Mapping can either have a `verbMapping` to specify a target Verb to execute, or a `returnValueMapping` to directly translate the parameters of the original Verb into the desired return value. When a `verbMapping` is provided, a `parameterMapping` and `parameterMappingFrame` may be provided to translate the parameters of the original Verb into the expected format of the target Verb.",
"rdfs:subClassOf": "https://standardknowledge.com/ontologies/core/Mapping",
"shacl:closed": false,
"shacl:property": [
{
"class": "https://standardknowledge.com/ontologies/core/Verb",
"maxCount": 1,
"minCount": 1,
"nodeKind": { "@id": "shacl:IRI" },
"name": "verb",
"path": "https://standardknowledge.com/ontologies/core/verb",
"shacl:description": "The Verb that the Mapping translates from."
},
{
"class": "https://standardknowledge.com/ontologies/core/Noun",
"maxCount": 1,
"minCount": 1,
"nodeKind": { "@id": "shacl:IRI" },
"name": "noun",
"path": "https://standardknowledge.com/ontologies/core/noun",
"shacl:description": "The Noun that the Mapping uses to determine what action should be taken."
},
{
"class": "rr:TriplesMap",
"nodeKind": { "@id": "shacl:IRI" },
"path": "skl:parameterMapping",
"name": "parameterMapping",
"shacl:description": "An RML TriplesMap specifying how the standard parameters of the original Verb should be translated into the parameters of the target Verb. This field only gets used if `verbMapping` is also present."
},
{
"path": "skl:parameterMappingFrame",
"name": "parameterMappingFrame",
"datatype": "rdf:JSON",
"shacl:description": "A JSON-LD Frame used to transform the JSON-LD returned by the parameterMapping into the format required by target Verb's parameters. This field only gets used if `verbMapping` and `parameterMapping` are also present."
},
{
"class": "rr:TriplesMap",
"nodeKind": { "@id": "shacl:IRI" },
"path": "skl:verbMapping",
"name": "verbMapping",
"shacl:description": "An RML TriplesMap specifying what target Verb should be executed depending on the parameters supplied to the original Verb."
},
{
"class": "rr:TriplesMap",
"nodeKind": { "@id": "shacl:IRI" },
"path": "skl:returnValueMapping",
"name": "returnValueMapping",
"shacl:description": "An RML TriplesMap specifying how the parameters of the Verb should be directly translated into a return value. If `returnValueMapping` is set, there should be no `verbMapping`, `parameterMapping`, or `parameterMappingFrame`."
},
{
"maxCount": 1,
"path": "skl:returnValueFrame",
"name": "returnValueFrame",
"datatype": "rdf:JSON",
"shacl:description": "A JSON-LD Frame used to transform the JSON-LD returned by the `returnValueMapping` into a prefered format. This field overrides the `returnValueFrame` of the Verb. If not supplied, the Verb's `returnValueFrame` will be used instead."
}
]
}