-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontext.js
More file actions
115 lines (113 loc) · 6.65 KB
/
Copy pathcontext.js
File metadata and controls
115 lines (113 loc) · 6.65 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
'use strict';
/* https://jsfiddle.net/hyg9e7vz/ */
// TODO descriptions, 'schema:domainIncludes'
let __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (let s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (let p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
exports.__esModule = true;
exports.defaultContext = void 0;
const baseUrl = 'https://www.w3.org/TR/activitystreams-vocabulary/';
exports.as = 'https://www.w3.org/ns/activitystreams';
exports.security = 'https://w3id.org/security/v1';
exports.vocab = { '@vocab': exports.as };
exports.wellKnownVocab = {
as: exports.as,
bibo: 'http://purl.org/ontology/bibo/',
dc: 'http://purl.org/dc/elements/1.1/',
dcat: 'http://www.w3.org/ns/dcat#',
dcterms: 'http://purl.org/dc/terms/',
dctype: 'http://purl.org/dc/dcmitype/',
exif: 'http://ns.adobe.com/exif/1.0/',
eli: 'http://data.europa.eu/eli/ontology#',
foaf: 'http://xmlns.com/foaf/0.1/',
ical: 'http://www.w3.org/2002/12/cal/ical#',
Iptc4xmpCore: 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/',
Iptc4xmpExt: 'http://iptc.org/std/Iptc4xmpExt/2008-02-29/',
ldp: 'http://www.w3.org/ns/ldp#',
og: 'http://ogp.me/ns#',
org: 'http://www.w3.org/ns/org#',
owl: 'http://www.w3.org/2002/07/owl#',
photoshop: 'http://ns.adobe.com/photoshop/1.0/',
rdf: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
rdfa: 'http://www.w3.org/ns/rdfa#',
rdfs: 'http://www.w3.org/2000/01/rdf-schema#',
redaktor: 'https://purl.org/redaktor/namespace',
schema: 'http://schema.org/',
skos: 'http://www.w3.org/2004/02/skos/core#',
snomed: 'http://purl.bioontology.org/ontology/SNOMEDCT/',
tiff: 'http://ns.adobe.com/tiff/1.0/',
vcard: 'http://www.w3.org/2006/vcard/ns#',
vf: 'https://w3id.org/valueflows#',
void: 'http://rdfs.org/ns/void#',
xml: 'http://www.w3.org/XML/1998/namespace',
xmp: 'http://ns.adobe.com/xap/1.0/',
xmpDM: 'http://ns.adobe.com/xmp/1.0/DynamicMedia/',
xmpMM: 'http://ns.adobe.com/xap/1.0/mm/',
xmpRights: 'http://ns.adobe.com/xap/1.0/rights/',
xsd: 'http://www.w3.org/2001/XMLSchema#'
}
const asCompact = {
activityTypes: [
[21, 2], [22, 21], [23, 2], [24, 3], [25, 2], [26, 2], [27, 2], [28, 2], [29, 2], [30, 2], [31, 2],
[32, 2], [33, 32], [34, 2], [35, 34], [36, 2], [37, 2], [38, 2], [39, 2], [40, 2], [41, 2], [42, 2],
[43, 3], [44, 2], [45, 28], [46, 2], [47, 2], [48, 3]
],
actorTypes: [
[49, 0], [50, 0], [51, 0], [52, 0], [53, 0]
],
coreTypes: [
[0, 1, 1], [1, 0, 0], [2, 0], [3, 2], [4, 0], [5, 4], [6, 4], [7, 5]
],
objectTypes: [
[8, 0], [9, 0], [10, 0], [11, 10], [12, 10], [13, 10], [14, 0], [15, 10], [16, 0], [17, 0], [18, 1], [19, 0], [20, 0]
],
properties: [
[baseUrl + '@id', [0, 1, 2], [0, 1], ['xsd:anyURI']], [baseUrl + '@type', [0, 1], [0, 1], ['xsd:anyURI']],
['actor', [0], [2], [0, 1]], ['attachment', [0, 1], [0], [0, 1]], ['attributedTo', [0, 1], [1, 0], [1, 0]],
['audience', [0, 1], [0], [0, 1]], ['bcc', [0, 1], [0], [0, 1]], ['bto', [0, 1], [0], [0, 1]],
['cc', [0, 1], [0], [0, 1]], ['context', [0, 1], [0], [0, 1]], ['current', [0, 2], [4], [6, 1]],
['first', [0, 2], [4], [6, 1]], ['generator', [0, 1], [0], [0, 1]], ['icon', [0, 1], [0], [12, 1]],
['image', [0, 1], [0], [12, 1]], ['inReplyTo', [0, 1], [0], [0, 1]], ['instrument', [0], [2], ['Object | Link']],
['last', [0, 2], [4], [6, 1]], ['location', [0, 1], [0], ['Object | Link']], ['items', [0], [4], [0, 1, 0, 1]],
['oneOf', [0], [48], [0, 1]], ['anyOf', [0], [48], [0, 1]], ['closed', [0], [48], [0, 1, 'xsd:datetime', 'xsd:boolean']],
['origin', [0], [2], [0, 1]], ['next', [0, 2], [6], [6, 1]], ['object', [0], [2, 8], [0, 1]], ['prev', [0, 2], [6], [6, 1]],
['preview', [0, 1], [1, 0], [1, 0]], ['result', [0], [2], [0, 1]], ['replies', [0, 1, 2], [0], [4]], ['tag', [0, 1], [0], [0, 1]],
['target', [0], [2], [0, 1]], ['to', [0, 1], [0], [0, 1]], ['url', [0, 1], [0], ['xsd:anyuri', 1]], ['accuracy', [0, 2], [17], ['xsd:float']],
['altitude', [0, 1, 2], [0], ['xsd:float']], ['content', [0, 1], [0], ['xsd:string', 'rdf:langstring']],
['name', [0, 1], [0, 1], ['xsd:string', 'rdf:langstring']], ['duration', [0, 1, 2], [0], ['xsd:duration']], ['height', [0, 2], [1], ['xsd:nonnegativeinteger']],
['href', [0, 2], [1], ['xsd:anyuri']], ['hreflang', [0, 2], [1], []], ['partOf', [0, 2], [6], [1, 4]], ['latitude', [0, 2], [17], ['xsd:float']],
['longitude', [0, 2], [17], ['xsd:float']], ['mediaType', [0, 1, 2], [1, 0], []], ['endTime', [0, 1, 2], [0], ['xsd:datetime']],
['published', [0, 1, 2], [0], ['xsd:datetime']], ['startTime', [0, 1, 2], [0], ['xsd:datetime']], ['radius', [0, 2], [17], ['xsd:float']],
['rel', [0], [1], []], ['startIndex', [0, 2], [7], ['xsd:nonnegativeinteger']], ['summary', [0, 1], [0], ['xsd:string', 'rdf:langstring']],
['totalItems', [0, 2], [4], ['xsd:nonnegativeinteger']],
['units', [0, 2], [17], [baseUrl + 'cm', baseUrl + 'feet', baseUrl + 'inches', baseUrl + 'km', baseUrl + 'm', baseUrl + 'miles', 'xsd:anyuri']],
['updated', [0, 1, 2], [0], ['xsd:datetime']], ['width', [0, 2], [1], ['xsd:nonnegativeinteger']],
['subject', [0, 2], [8], [1, 0]], ['relationship', [0], [8], [0]], ['describes', [0, 2], [19], [0]],
['formerType', [0], [20], [0]], ['deleted', [0, 2], [20], ['xsd:datetime']]
]
};
const asCore = {};
const asClasses = [
'Object', 'Link', 'Activity', 'IntransitiveActivity', 'Collection', 'OrderedCollection',
'CollectionPage', 'OrderedCollectionPage', 'Relationship', 'Article', 'Document', 'Audio',
'Image', 'Video', 'Note', 'Page', 'Event', 'Place', 'Mention', 'Profile', 'Tombstone',
'Accept', 'TentativeAccept', 'Add', 'Arrive', 'Create', 'Delete', 'Follow', 'Ignore', 'Join', 'Leave',
'Like', 'Offer', 'Invite', 'Reject', 'TentativeReject', 'Remove', 'Undo', 'Update', 'View', 'Listen',
'Read', 'Move', 'Travel', 'Announce', 'Block', 'Flag', 'Dislike', 'Question',
'Application', 'Group', 'Organization', 'Person', 'Service'
];
const asPropertyTypes = ['rdf:Property', 'owl:ObjectProperty', 'owl:FunctionalProperty'];
const asLayers = ['core', 'security', 'extension'];
exports.defaultContext = [
exports.as,
exports.security,
__assign(__assign(__assign(__assign({ '@version': 1.1, 'id': '@id', 'type': '@type' }, exports.vocab), exports.wellKnownVocab), asCore), exports.asSupportedExtensions)
];