-
Notifications
You must be signed in to change notification settings - Fork 0
/
model-reference.apib
92 lines (76 loc) · 2.83 KB
/
model-reference.apib
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
87
88
89
90
91
92
# Group Model reference
![Model](model.png)
The DataGraft API supports [RDF/XML](https://en.wikipedia.org/wiki/RDF/XML) and [JSON-LD](https://en.wikipedia.org/wiki/JSON-LD).
#### Namespaces
* dcat - http://www.w3.org/ns/dcat#
* dct - http://purl.org/dc/terms/
* rdf - http://www.w3.org/1999/02/22-rdf-syntax-ns
* foaf - http://xmlns.com/foaf/0.1/
#### Dataset
| Property | Range | Description |
|-------------|----------|----------------|
| rdf:type | `"dcat:Dataset"` | |
| dct:title | Text | |
| dct:description | Text | |
| dct:issued | Date | |
| dct:modified | Date | |
| dcat:keyword | Text []| List of keywords |
| dct:publisher | Text | |
| dcat:distribution | URI [] | List of the connected distributions|
| dcat:public | `"true"` or `"false"` | |
#### Distribution
| Property | Range | Description |
|-------------|----------|----------------|
| rdf:type | `"dcat:Distribution"` | |
| dct:title | Text | |
| dct:description | Text | |
| dct:issued | Date | |
| dct:modified | Date | |
| dcat:mediaType | Mimetype (Text) | |
| dcat:accessURL | URI | The SPARQL endpoint URL for RDF distributions |
| dcat:fileID | Text | UUID for the raw file generated by the system. |
| dcat:fileName | Text | Original file name |
#### Transformation
| Property | Range | Description |
|-------------|----------|----------------|
| rdf:type | `"dcat:Transformation"` | |
| dct:title | Text | |
| dct:description | Text | |
| dct:issued | Date | |
| dct:modified | Date | |
| dcat:keyword | Text [] | List of keywords |
| dct:publisher | Text | |
| dcat:clojureDataID | Text | |
| dcat:jsonDataID | Text | |
| dcat:sourceData | URI | Reference to the input data Distribution object |
| dcat:public | `"true"` or `"false"` | |
| dcat:transformationType | `"pipe"` or `"graft"` | |
| dcat:transformationCommand | Text | entry point (command/function) of the transformation. `"my-pipe"` for pipe and `"my-graft`" for graft are recommended.|
### JSON-LD
JSON-LD or JavaScript Object Notation for Linked Data is the recommended way to consume and provide data. You can use the same software as traditional JSON. The `@context`, `@type` and `@id` properties are JSON-LD specific.
**Example:**
```json
{
"@context": {
"dcat": "http://www.w3.org/ns/dcat#",
"foaf": "http://xmlns.com/foaf/0.1/",
"dct": "http://purl.org/dc/terms/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@type": "dcat:Catalog",
"@id": "http://dapaas.eu/users/dapaas/catalog",
"dct:publisher": "dapaas",
"dcat:record": [
{
"@type": "dcat:CatalogRecord",
"foaf:primaryTopic": "http://dapaas.eu/users/15052/dataset/example-1",
"dct:issued": "2014-09-18",
"dct:modified": "2014-09-17",
"dct:publisher": "dapaas",
"dct:title": "Title for DS4 DaPaaS dataset UPDATED",
"dcat:public": "true"
},
...
]
}
```