json-ld-preloaded 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/AUTHORS +1 -0
- data/README.md +113 -0
- data/UNLICENSE +24 -0
- data/VERSION +1 -0
- data/lib/json/ld/preloaded.rb +26 -0
- data/lib/json/ld/preloaded/activitystreams.rb +157 -0
- data/lib/json/ld/preloaded/csvw.rb +182 -0
- data/lib/json/ld/preloaded/datacube.rb +53 -0
- data/lib/json/ld/preloaded/entityfacts.rb +82 -0
- data/lib/json/ld/preloaded/foaf.rb +25 -0
- data/lib/json/ld/preloaded/geojson.rb +28 -0
- data/lib/json/ld/preloaded/hydra.rb +89 -0
- data/lib/json/ld/preloaded/identity.rb +86 -0
- data/lib/json/ld/preloaded/iiif.rb +57 -0
- data/lib/json/ld/preloaded/linkedart.rb +436 -0
- data/lib/json/ld/preloaded/lov.rb +693 -0
- data/lib/json/ld/preloaded/oa.rb +35 -0
- data/lib/json/ld/preloaded/obi.rb +104 -0
- data/lib/json/ld/preloaded/prefix.rb +2299 -0
- data/lib/json/ld/preloaded/presentation.rb +91 -0
- data/lib/json/ld/preloaded/rdfa.rb +65 -0
- data/lib/json/ld/preloaded/research.rb +56 -0
- data/lib/json/ld/preloaded/schema.rb +2394 -0
- data/lib/json/ld/preloaded/vc.rb +19 -0
- data/lib/json/ld/preloaded/vcard.rb +159 -0
- data/lib/json/ld/preloaded/version.rb +20 -0
- data/spec/preloaded_spec.rb +28 -0
- data/spec/spec_helper.rb +7 -0
- metadata +170 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from https://www.w3.org/2018/credentials/v1
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("https://www.w3.org/2018/credentials/v1") do
|
7
|
+
new(processingMode: "json-ld-1.1", term_definitions: {
|
8
|
+
"EcdsaSecp256k1Signature2019" => TermDefinition.new("EcdsaSecp256k1Signature2019", id: "https://w3id.org/security#EcdsaSecp256k1Signature2019", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "xsd"=>"http://www.w3.org/2001/XMLSchema#", "challenge"=>"sec:challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"xsd:dateTime"}, "domain"=>"sec:domain", "expires"=>{"@id"=>"sec:expiration", "@type"=>"xsd:dateTime"}, "jws"=>"sec:jws", "nonce"=>"sec:nonce", "proofPurpose"=>{"@id"=>"sec:proofPurpose", "@type"=>"@vocab", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "assertionMethod"=>{"@id"=>"sec:assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"sec:authenticationMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>"sec:proofValue", "verificationMethod"=>{"@id"=>"sec:verificationMethod", "@type"=>"@id"}}, protected: true),
|
9
|
+
"EcdsaSecp256r1Signature2019" => TermDefinition.new("EcdsaSecp256r1Signature2019", id: "https://w3id.org/security#EcdsaSecp256r1Signature2019", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "xsd"=>"http://www.w3.org/2001/XMLSchema#", "challenge"=>"sec:challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"xsd:dateTime"}, "domain"=>"sec:domain", "expires"=>{"@id"=>"sec:expiration", "@type"=>"xsd:dateTime"}, "jws"=>"sec:jws", "nonce"=>"sec:nonce", "proofPurpose"=>{"@id"=>"sec:proofPurpose", "@type"=>"@vocab", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "assertionMethod"=>{"@id"=>"sec:assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"sec:authenticationMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>"sec:proofValue", "verificationMethod"=>{"@id"=>"sec:verificationMethod", "@type"=>"@id"}}, protected: true),
|
10
|
+
"Ed25519Signature2018" => TermDefinition.new("Ed25519Signature2018", id: "https://w3id.org/security#Ed25519Signature2018", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "xsd"=>"http://www.w3.org/2001/XMLSchema#", "challenge"=>"sec:challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"xsd:dateTime"}, "domain"=>"sec:domain", "expires"=>{"@id"=>"sec:expiration", "@type"=>"xsd:dateTime"}, "jws"=>"sec:jws", "nonce"=>"sec:nonce", "proofPurpose"=>{"@id"=>"sec:proofPurpose", "@type"=>"@vocab", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "assertionMethod"=>{"@id"=>"sec:assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"sec:authenticationMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>"sec:proofValue", "verificationMethod"=>{"@id"=>"sec:verificationMethod", "@type"=>"@id"}}, protected: true),
|
11
|
+
"RsaSignature2018" => TermDefinition.new("RsaSignature2018", id: "https://w3id.org/security#RsaSignature2018", context: {"@version"=>1.1, "@protected"=>true, "challenge"=>"sec:challenge", "created"=>{"@id"=>"http://purl.org/dc/terms/created", "@type"=>"xsd:dateTime"}, "domain"=>"sec:domain", "expires"=>{"@id"=>"sec:expiration", "@type"=>"xsd:dateTime"}, "jws"=>"sec:jws", "nonce"=>"sec:nonce", "proofPurpose"=>{"@id"=>"sec:proofPurpose", "@type"=>"@vocab", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "sec"=>"https://w3id.org/security#", "assertionMethod"=>{"@id"=>"sec:assertionMethod", "@type"=>"@id", "@container"=>"@set"}, "authentication"=>{"@id"=>"sec:authenticationMethod", "@type"=>"@id", "@container"=>"@set"}}}, "proofValue"=>"sec:proofValue", "verificationMethod"=>{"@id"=>"sec:verificationMethod", "@type"=>"@id"}}, protected: true),
|
12
|
+
"VerifiableCredential" => TermDefinition.new("VerifiableCredential", id: "https://www.w3.org/2018/credentials#VerifiableCredential", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "cred"=>"https://www.w3.org/2018/credentials#", "sec"=>"https://w3id.org/security#", "xsd"=>"http://www.w3.org/2001/XMLSchema#", "credentialSchema"=>{"@id"=>"cred:credentialSchema", "@type"=>"@id", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "cred"=>"https://www.w3.org/2018/credentials#", "JsonSchemaValidator2018"=>"cred:JsonSchemaValidator2018"}}, "credentialStatus"=>{"@id"=>"cred:credentialStatus", "@type"=>"@id"}, "credentialSubject"=>{"@id"=>"cred:credentialSubject", "@type"=>"@id"}, "evidence"=>{"@id"=>"cred:evidence", "@type"=>"@id"}, "expirationDate"=>{"@id"=>"cred:expirationDate", "@type"=>"xsd:dateTime"}, "holder"=>{"@id"=>"cred:holder", "@type"=>"@id"}, "issued"=>{"@id"=>"cred:issued", "@type"=>"xsd:dateTime"}, "issuer"=>{"@id"=>"cred:issuer", "@type"=>"@id"}, "issuanceDate"=>{"@id"=>"cred:issuanceDate", "@type"=>"xsd:dateTime"}, "proof"=>{"@id"=>"sec:proof", "@type"=>"@id", "@container"=>"@graph"}, "refreshService"=>{"@id"=>"cred:refreshService", "@type"=>"@id", "@context"=>{"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "cred"=>"https://www.w3.org/2018/credentials#", "ManualRefreshService2018"=>"cred:ManualRefreshService2018"}}, "termsOfUse"=>{"@id"=>"cred:termsOfUse", "@type"=>"@id"}, "validFrom"=>{"@id"=>"cred:validFrom", "@type"=>"xsd:dateTime"}, "validUntil"=>{"@id"=>"cred:validUntil", "@type"=>"xsd:dateTime"}}, protected: true),
|
13
|
+
"VerifiablePresentation" => TermDefinition.new("VerifiablePresentation", id: "https://www.w3.org/2018/credentials#VerifiablePresentation", context: {"@version"=>1.1, "@protected"=>true, "id"=>"@id", "type"=>"@type", "cred"=>"https://www.w3.org/2018/credentials#", "sec"=>"https://w3id.org/security#", "holder"=>{"@id"=>"cred:holder", "@type"=>"@id"}, "proof"=>{"@id"=>"sec:proof", "@type"=>"@id", "@container"=>"@graph"}, "verifiableCredential"=>{"@id"=>"cred:verifiableCredential", "@type"=>"@id", "@container"=>"@graph"}}, protected: true),
|
14
|
+
"id" => TermDefinition.new("id", id: "@id", simple: true, protected: true),
|
15
|
+
"proof" => TermDefinition.new("proof", id: "https://w3id.org/security#proof", type_mapping: "@id", container_mapping: "@graph", protected: true),
|
16
|
+
"type" => TermDefinition.new("type", id: "@type", simple: true, protected: true)
|
17
|
+
})
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,159 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
# This file generated automatically from http://www.w3.org/2006/vcard/ns
|
4
|
+
require 'json/ld'
|
5
|
+
class JSON::LD::Context
|
6
|
+
add_preloaded("http://www.w3.org/2006/vcard/ns") do
|
7
|
+
new(term_definitions: {
|
8
|
+
"Acquaintance" => TermDefinition.new("Acquaintance", id: "http://www.w3.org/2006/vcard/ns#Acquaintance", simple: true),
|
9
|
+
"Address" => TermDefinition.new("Address", id: "http://www.w3.org/2006/vcard/ns#Address", simple: true),
|
10
|
+
"Agent" => TermDefinition.new("Agent", id: "http://www.w3.org/2006/vcard/ns#Agent", simple: true),
|
11
|
+
"BBS" => TermDefinition.new("BBS", id: "http://www.w3.org/2006/vcard/ns#BBS", simple: true),
|
12
|
+
"Car" => TermDefinition.new("Car", id: "http://www.w3.org/2006/vcard/ns#Car", simple: true),
|
13
|
+
"Cell" => TermDefinition.new("Cell", id: "http://www.w3.org/2006/vcard/ns#Cell", simple: true),
|
14
|
+
"Child" => TermDefinition.new("Child", id: "http://www.w3.org/2006/vcard/ns#Child", simple: true),
|
15
|
+
"Colleague" => TermDefinition.new("Colleague", id: "http://www.w3.org/2006/vcard/ns#Colleague", simple: true),
|
16
|
+
"Contact" => TermDefinition.new("Contact", id: "http://www.w3.org/2006/vcard/ns#Contact", simple: true),
|
17
|
+
"Coresident" => TermDefinition.new("Coresident", id: "http://www.w3.org/2006/vcard/ns#Coresident", simple: true),
|
18
|
+
"Coworker" => TermDefinition.new("Coworker", id: "http://www.w3.org/2006/vcard/ns#Coworker", simple: true),
|
19
|
+
"Crush" => TermDefinition.new("Crush", id: "http://www.w3.org/2006/vcard/ns#Crush", simple: true),
|
20
|
+
"Date" => TermDefinition.new("Date", id: "http://www.w3.org/2006/vcard/ns#Date", simple: true),
|
21
|
+
"Dom" => TermDefinition.new("Dom", id: "http://www.w3.org/2006/vcard/ns#Dom", simple: true),
|
22
|
+
"Email" => TermDefinition.new("Email", id: "http://www.w3.org/2006/vcard/ns#Email", simple: true),
|
23
|
+
"Emergency" => TermDefinition.new("Emergency", id: "http://www.w3.org/2006/vcard/ns#Emergency", simple: true),
|
24
|
+
"Fax" => TermDefinition.new("Fax", id: "http://www.w3.org/2006/vcard/ns#Fax", simple: true),
|
25
|
+
"Female" => TermDefinition.new("Female", id: "http://www.w3.org/2006/vcard/ns#Female", simple: true),
|
26
|
+
"Friend" => TermDefinition.new("Friend", id: "http://www.w3.org/2006/vcard/ns#Friend", simple: true),
|
27
|
+
"Gender" => TermDefinition.new("Gender", id: "http://www.w3.org/2006/vcard/ns#Gender", simple: true),
|
28
|
+
"Group" => TermDefinition.new("Group", id: "http://www.w3.org/2006/vcard/ns#Group", simple: true),
|
29
|
+
"Home" => TermDefinition.new("Home", id: "http://www.w3.org/2006/vcard/ns#Home", simple: true),
|
30
|
+
"ISDN" => TermDefinition.new("ISDN", id: "http://www.w3.org/2006/vcard/ns#ISDN", simple: true),
|
31
|
+
"Individual" => TermDefinition.new("Individual", id: "http://www.w3.org/2006/vcard/ns#Individual", simple: true),
|
32
|
+
"Internet" => TermDefinition.new("Internet", id: "http://www.w3.org/2006/vcard/ns#Internet", simple: true),
|
33
|
+
"Intl" => TermDefinition.new("Intl", id: "http://www.w3.org/2006/vcard/ns#Intl", simple: true),
|
34
|
+
"Kin" => TermDefinition.new("Kin", id: "http://www.w3.org/2006/vcard/ns#Kin", simple: true),
|
35
|
+
"Kind" => TermDefinition.new("Kind", id: "http://www.w3.org/2006/vcard/ns#Kind", simple: true),
|
36
|
+
"Label" => TermDefinition.new("Label", id: "http://www.w3.org/2006/vcard/ns#Label", simple: true),
|
37
|
+
"Location" => TermDefinition.new("Location", id: "http://www.w3.org/2006/vcard/ns#Location", simple: true),
|
38
|
+
"Male" => TermDefinition.new("Male", id: "http://www.w3.org/2006/vcard/ns#Male", simple: true),
|
39
|
+
"Me" => TermDefinition.new("Me", id: "http://www.w3.org/2006/vcard/ns#Me", simple: true),
|
40
|
+
"Met" => TermDefinition.new("Met", id: "http://www.w3.org/2006/vcard/ns#Met", simple: true),
|
41
|
+
"Modem" => TermDefinition.new("Modem", id: "http://www.w3.org/2006/vcard/ns#Modem", simple: true),
|
42
|
+
"Msg" => TermDefinition.new("Msg", id: "http://www.w3.org/2006/vcard/ns#Msg", simple: true),
|
43
|
+
"Muse" => TermDefinition.new("Muse", id: "http://www.w3.org/2006/vcard/ns#Muse", simple: true),
|
44
|
+
"Name" => TermDefinition.new("Name", id: "http://www.w3.org/2006/vcard/ns#Name", simple: true),
|
45
|
+
"Neighbor" => TermDefinition.new("Neighbor", id: "http://www.w3.org/2006/vcard/ns#Neighbor", simple: true),
|
46
|
+
"None" => TermDefinition.new("None", id: "http://www.w3.org/2006/vcard/ns#None", simple: true),
|
47
|
+
"Organization" => TermDefinition.new("Organization", id: "http://www.w3.org/2006/vcard/ns#Organization", simple: true),
|
48
|
+
"Other" => TermDefinition.new("Other", id: "http://www.w3.org/2006/vcard/ns#Other", simple: true),
|
49
|
+
"PCS" => TermDefinition.new("PCS", id: "http://www.w3.org/2006/vcard/ns#PCS", simple: true),
|
50
|
+
"Pager" => TermDefinition.new("Pager", id: "http://www.w3.org/2006/vcard/ns#Pager", simple: true),
|
51
|
+
"Parcel" => TermDefinition.new("Parcel", id: "http://www.w3.org/2006/vcard/ns#Parcel", simple: true),
|
52
|
+
"Parent" => TermDefinition.new("Parent", id: "http://www.w3.org/2006/vcard/ns#Parent", simple: true),
|
53
|
+
"Postal" => TermDefinition.new("Postal", id: "http://www.w3.org/2006/vcard/ns#Postal", simple: true),
|
54
|
+
"Pref" => TermDefinition.new("Pref", id: "http://www.w3.org/2006/vcard/ns#Pref", simple: true),
|
55
|
+
"RelatedType" => TermDefinition.new("RelatedType", id: "http://www.w3.org/2006/vcard/ns#RelatedType", simple: true),
|
56
|
+
"Sibling" => TermDefinition.new("Sibling", id: "http://www.w3.org/2006/vcard/ns#Sibling", simple: true),
|
57
|
+
"Spouse" => TermDefinition.new("Spouse", id: "http://www.w3.org/2006/vcard/ns#Spouse", simple: true),
|
58
|
+
"Sweetheart" => TermDefinition.new("Sweetheart", id: "http://www.w3.org/2006/vcard/ns#Sweetheart", simple: true),
|
59
|
+
"Tel" => TermDefinition.new("Tel", id: "http://www.w3.org/2006/vcard/ns#Tel", simple: true),
|
60
|
+
"TelephoneType" => TermDefinition.new("TelephoneType", id: "http://www.w3.org/2006/vcard/ns#TelephoneType", simple: true),
|
61
|
+
"Text" => TermDefinition.new("Text", id: "http://www.w3.org/2006/vcard/ns#Text", simple: true),
|
62
|
+
"TextPhone" => TermDefinition.new("TextPhone", id: "http://www.w3.org/2006/vcard/ns#TextPhone", simple: true),
|
63
|
+
"Type" => TermDefinition.new("Type", id: "http://www.w3.org/2006/vcard/ns#Type", simple: true),
|
64
|
+
"Unknown" => TermDefinition.new("Unknown", id: "http://www.w3.org/2006/vcard/ns#Unknown", simple: true),
|
65
|
+
"VCard" => TermDefinition.new("VCard", id: "http://www.w3.org/2006/vcard/ns#VCard", simple: true),
|
66
|
+
"Video" => TermDefinition.new("Video", id: "http://www.w3.org/2006/vcard/ns#Video", simple: true),
|
67
|
+
"Voice" => TermDefinition.new("Voice", id: "http://www.w3.org/2006/vcard/ns#Voice", simple: true),
|
68
|
+
"Work" => TermDefinition.new("Work", id: "http://www.w3.org/2006/vcard/ns#Work", simple: true),
|
69
|
+
"X400" => TermDefinition.new("X400", id: "http://www.w3.org/2006/vcard/ns#X400", simple: true),
|
70
|
+
"additional-name" => TermDefinition.new("additional-name", id: "http://www.w3.org/2006/vcard/ns#additional-name", simple: true),
|
71
|
+
"adr" => TermDefinition.new("adr", id: "http://www.w3.org/2006/vcard/ns#adr", type_mapping: "@id"),
|
72
|
+
"agent" => TermDefinition.new("agent", id: "http://www.w3.org/2006/vcard/ns#agent", type_mapping: "@id"),
|
73
|
+
"anniversary" => TermDefinition.new("anniversary", id: "http://www.w3.org/2006/vcard/ns#anniversary", simple: true),
|
74
|
+
"bday" => TermDefinition.new("bday", id: "http://www.w3.org/2006/vcard/ns#bday", simple: true),
|
75
|
+
"category" => TermDefinition.new("category", id: "http://www.w3.org/2006/vcard/ns#category", simple: true),
|
76
|
+
"class" => TermDefinition.new("class", id: "http://www.w3.org/2006/vcard/ns#class", simple: true),
|
77
|
+
"country-name" => TermDefinition.new("country-name", id: "http://www.w3.org/2006/vcard/ns#country-name", simple: true),
|
78
|
+
"email" => TermDefinition.new("email", id: "http://www.w3.org/2006/vcard/ns#email", type_mapping: "@id"),
|
79
|
+
"extended-address" => TermDefinition.new("extended-address", id: "http://www.w3.org/2006/vcard/ns#extended-address", simple: true),
|
80
|
+
"family-name" => TermDefinition.new("family-name", id: "http://www.w3.org/2006/vcard/ns#family-name", simple: true),
|
81
|
+
"fn" => TermDefinition.new("fn", id: "http://www.w3.org/2006/vcard/ns#fn", simple: true),
|
82
|
+
"geo" => TermDefinition.new("geo", id: "http://www.w3.org/2006/vcard/ns#geo", type_mapping: "@id"),
|
83
|
+
"given-name" => TermDefinition.new("given-name", id: "http://www.w3.org/2006/vcard/ns#given-name", simple: true),
|
84
|
+
"hasAdditionalName" => TermDefinition.new("hasAdditionalName", id: "http://www.w3.org/2006/vcard/ns#hasAdditionalName", type_mapping: "@id"),
|
85
|
+
"hasAddress" => TermDefinition.new("hasAddress", id: "http://www.w3.org/2006/vcard/ns#hasAddress", type_mapping: "@id"),
|
86
|
+
"hasCalendarBusy" => TermDefinition.new("hasCalendarBusy", id: "http://www.w3.org/2006/vcard/ns#hasCalendarBusy", type_mapping: "@id"),
|
87
|
+
"hasCalendarLink" => TermDefinition.new("hasCalendarLink", id: "http://www.w3.org/2006/vcard/ns#hasCalendarLink", type_mapping: "@id"),
|
88
|
+
"hasCalendarRequest" => TermDefinition.new("hasCalendarRequest", id: "http://www.w3.org/2006/vcard/ns#hasCalendarRequest", type_mapping: "@id"),
|
89
|
+
"hasCategory" => TermDefinition.new("hasCategory", id: "http://www.w3.org/2006/vcard/ns#hasCategory", type_mapping: "@id"),
|
90
|
+
"hasCountryName" => TermDefinition.new("hasCountryName", id: "http://www.w3.org/2006/vcard/ns#hasCountryName", type_mapping: "@id"),
|
91
|
+
"hasEmail" => TermDefinition.new("hasEmail", id: "http://www.w3.org/2006/vcard/ns#hasEmail", type_mapping: "@id"),
|
92
|
+
"hasFN" => TermDefinition.new("hasFN", id: "http://www.w3.org/2006/vcard/ns#hasFN", type_mapping: "@id"),
|
93
|
+
"hasFamilyName" => TermDefinition.new("hasFamilyName", id: "http://www.w3.org/2006/vcard/ns#hasFamilyName", type_mapping: "@id"),
|
94
|
+
"hasGender" => TermDefinition.new("hasGender", id: "http://www.w3.org/2006/vcard/ns#hasGender", type_mapping: "@id"),
|
95
|
+
"hasGeo" => TermDefinition.new("hasGeo", id: "http://www.w3.org/2006/vcard/ns#hasGeo", type_mapping: "@id"),
|
96
|
+
"hasGivenName" => TermDefinition.new("hasGivenName", id: "http://www.w3.org/2006/vcard/ns#hasGivenName", type_mapping: "@id"),
|
97
|
+
"hasHonorificPrefix" => TermDefinition.new("hasHonorificPrefix", id: "http://www.w3.org/2006/vcard/ns#hasHonorificPrefix", type_mapping: "@id"),
|
98
|
+
"hasHonorificSuffix" => TermDefinition.new("hasHonorificSuffix", id: "http://www.w3.org/2006/vcard/ns#hasHonorificSuffix", type_mapping: "@id"),
|
99
|
+
"hasInstantMessage" => TermDefinition.new("hasInstantMessage", id: "http://www.w3.org/2006/vcard/ns#hasInstantMessage", type_mapping: "@id"),
|
100
|
+
"hasKey" => TermDefinition.new("hasKey", id: "http://www.w3.org/2006/vcard/ns#hasKey", type_mapping: "@id"),
|
101
|
+
"hasLanguage" => TermDefinition.new("hasLanguage", id: "http://www.w3.org/2006/vcard/ns#hasLanguage", type_mapping: "@id"),
|
102
|
+
"hasLocality" => TermDefinition.new("hasLocality", id: "http://www.w3.org/2006/vcard/ns#hasLocality", type_mapping: "@id"),
|
103
|
+
"hasLogo" => TermDefinition.new("hasLogo", id: "http://www.w3.org/2006/vcard/ns#hasLogo", type_mapping: "@id"),
|
104
|
+
"hasMember" => TermDefinition.new("hasMember", id: "http://www.w3.org/2006/vcard/ns#hasMember", type_mapping: "@id"),
|
105
|
+
"hasName" => TermDefinition.new("hasName", id: "http://www.w3.org/2006/vcard/ns#hasName", type_mapping: "@id"),
|
106
|
+
"hasNickname" => TermDefinition.new("hasNickname", id: "http://www.w3.org/2006/vcard/ns#hasNickname", type_mapping: "@id"),
|
107
|
+
"hasNote" => TermDefinition.new("hasNote", id: "http://www.w3.org/2006/vcard/ns#hasNote", type_mapping: "@id"),
|
108
|
+
"hasOrganizationName" => TermDefinition.new("hasOrganizationName", id: "http://www.w3.org/2006/vcard/ns#hasOrganizationName", type_mapping: "@id"),
|
109
|
+
"hasOrganizationUnit" => TermDefinition.new("hasOrganizationUnit", id: "http://www.w3.org/2006/vcard/ns#hasOrganizationUnit", type_mapping: "@id"),
|
110
|
+
"hasPhoto" => TermDefinition.new("hasPhoto", id: "http://www.w3.org/2006/vcard/ns#hasPhoto", type_mapping: "@id"),
|
111
|
+
"hasPostalCode" => TermDefinition.new("hasPostalCode", id: "http://www.w3.org/2006/vcard/ns#hasPostalCode", type_mapping: "@id"),
|
112
|
+
"hasRegion" => TermDefinition.new("hasRegion", id: "http://www.w3.org/2006/vcard/ns#hasRegion", type_mapping: "@id"),
|
113
|
+
"hasRelated" => TermDefinition.new("hasRelated", id: "http://www.w3.org/2006/vcard/ns#hasRelated", type_mapping: "@id"),
|
114
|
+
"hasRole" => TermDefinition.new("hasRole", id: "http://www.w3.org/2006/vcard/ns#hasRole", type_mapping: "@id"),
|
115
|
+
"hasSound" => TermDefinition.new("hasSound", id: "http://www.w3.org/2006/vcard/ns#hasSound", type_mapping: "@id"),
|
116
|
+
"hasSource" => TermDefinition.new("hasSource", id: "http://www.w3.org/2006/vcard/ns#hasSource", type_mapping: "@id"),
|
117
|
+
"hasStreetAddress" => TermDefinition.new("hasStreetAddress", id: "http://www.w3.org/2006/vcard/ns#hasStreetAddress", type_mapping: "@id"),
|
118
|
+
"hasTelephone" => TermDefinition.new("hasTelephone", id: "http://www.w3.org/2006/vcard/ns#hasTelephone", type_mapping: "@id"),
|
119
|
+
"hasTitle" => TermDefinition.new("hasTitle", id: "http://www.w3.org/2006/vcard/ns#hasTitle", type_mapping: "@id"),
|
120
|
+
"hasUID" => TermDefinition.new("hasUID", id: "http://www.w3.org/2006/vcard/ns#hasUID", type_mapping: "@id"),
|
121
|
+
"hasURL" => TermDefinition.new("hasURL", id: "http://www.w3.org/2006/vcard/ns#hasURL", type_mapping: "@id"),
|
122
|
+
"hasValue" => TermDefinition.new("hasValue", id: "http://www.w3.org/2006/vcard/ns#hasValue", type_mapping: "@id"),
|
123
|
+
"honorific-prefix" => TermDefinition.new("honorific-prefix", id: "http://www.w3.org/2006/vcard/ns#honorific-prefix", simple: true),
|
124
|
+
"honorific-suffix" => TermDefinition.new("honorific-suffix", id: "http://www.w3.org/2006/vcard/ns#honorific-suffix", simple: true),
|
125
|
+
"key" => TermDefinition.new("key", id: "http://www.w3.org/2006/vcard/ns#key", type_mapping: "@id"),
|
126
|
+
"label" => TermDefinition.new("label", id: "http://www.w3.org/2006/vcard/ns#label", simple: true),
|
127
|
+
"language" => TermDefinition.new("language", id: "http://www.w3.org/2006/vcard/ns#language", simple: true),
|
128
|
+
"latitude" => TermDefinition.new("latitude", id: "http://www.w3.org/2006/vcard/ns#latitude", simple: true),
|
129
|
+
"locality" => TermDefinition.new("locality", id: "http://www.w3.org/2006/vcard/ns#locality", simple: true),
|
130
|
+
"logo" => TermDefinition.new("logo", id: "http://www.w3.org/2006/vcard/ns#logo", type_mapping: "@id"),
|
131
|
+
"longitude" => TermDefinition.new("longitude", id: "http://www.w3.org/2006/vcard/ns#longitude", simple: true),
|
132
|
+
"mailer" => TermDefinition.new("mailer", id: "http://www.w3.org/2006/vcard/ns#mailer", simple: true),
|
133
|
+
"n" => TermDefinition.new("n", id: "http://www.w3.org/2006/vcard/ns#n", type_mapping: "@id"),
|
134
|
+
"nickname" => TermDefinition.new("nickname", id: "http://www.w3.org/2006/vcard/ns#nickname", simple: true),
|
135
|
+
"note" => TermDefinition.new("note", id: "http://www.w3.org/2006/vcard/ns#note", simple: true),
|
136
|
+
"org" => TermDefinition.new("org", id: "http://www.w3.org/2006/vcard/ns#org", type_mapping: "@id"),
|
137
|
+
"organization-name" => TermDefinition.new("organization-name", id: "http://www.w3.org/2006/vcard/ns#organization-name", simple: true),
|
138
|
+
"organization-unit" => TermDefinition.new("organization-unit", id: "http://www.w3.org/2006/vcard/ns#organization-unit", simple: true),
|
139
|
+
"photo" => TermDefinition.new("photo", id: "http://www.w3.org/2006/vcard/ns#photo", type_mapping: "@id"),
|
140
|
+
"post-office-box" => TermDefinition.new("post-office-box", id: "http://www.w3.org/2006/vcard/ns#post-office-box", simple: true),
|
141
|
+
"postal-code" => TermDefinition.new("postal-code", id: "http://www.w3.org/2006/vcard/ns#postal-code", simple: true),
|
142
|
+
"prodid" => TermDefinition.new("prodid", id: "http://www.w3.org/2006/vcard/ns#prodid", simple: true),
|
143
|
+
"region" => TermDefinition.new("region", id: "http://www.w3.org/2006/vcard/ns#region", simple: true),
|
144
|
+
"rev" => TermDefinition.new("rev", id: "http://www.w3.org/2006/vcard/ns#rev", type_mapping: "http://www.w3.org/2001/XMLSchema#dateTime"),
|
145
|
+
"role" => TermDefinition.new("role", id: "http://www.w3.org/2006/vcard/ns#role", simple: true),
|
146
|
+
"sort-string" => TermDefinition.new("sort-string", id: "http://www.w3.org/2006/vcard/ns#sort-string", simple: true),
|
147
|
+
"sound" => TermDefinition.new("sound", id: "http://www.w3.org/2006/vcard/ns#sound", type_mapping: "@id"),
|
148
|
+
"street-address" => TermDefinition.new("street-address", id: "http://www.w3.org/2006/vcard/ns#street-address", simple: true),
|
149
|
+
"tel" => TermDefinition.new("tel", id: "http://www.w3.org/2006/vcard/ns#tel", type_mapping: "@id"),
|
150
|
+
"title" => TermDefinition.new("title", id: "http://www.w3.org/2006/vcard/ns#title", simple: true),
|
151
|
+
"tz" => TermDefinition.new("tz", id: "http://www.w3.org/2006/vcard/ns#tz", simple: true),
|
152
|
+
"url" => TermDefinition.new("url", id: "http://www.w3.org/2006/vcard/ns#url", type_mapping: "@id"),
|
153
|
+
"value" => TermDefinition.new("value", id: "http://www.w3.org/2006/vcard/ns#value", simple: true),
|
154
|
+
"vcard" => TermDefinition.new("vcard", id: "http://www.w3.org/2006/vcard/ns#", simple: true, prefix: true),
|
155
|
+
"xsd" => TermDefinition.new("xsd", id: "http://www.w3.org/2001/XMLSchema#", simple: true, prefix: true)
|
156
|
+
})
|
157
|
+
end
|
158
|
+
alias_preloaded("https://www.w3.org/2006/vcard/ns", "http://www.w3.org/2006/vcard/ns")
|
159
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
module JSON::LD::Preloaded::VERSION
|
4
|
+
VERSION_FILE = File.expand_path("../../../../../VERSION", __FILE__)
|
5
|
+
MAJOR, MINOR, TINY, EXTRA = File.read(VERSION_FILE).chomp.split(".")
|
6
|
+
|
7
|
+
STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
|
8
|
+
|
9
|
+
##
|
10
|
+
# @return [String]
|
11
|
+
def self.to_s() STRING end
|
12
|
+
|
13
|
+
##
|
14
|
+
# @return [String]
|
15
|
+
def self.to_str() STRING end
|
16
|
+
|
17
|
+
##
|
18
|
+
# @return [Array(Integer, Integer, Integer)]
|
19
|
+
def self.to_a() STRING.split(".") end
|
20
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
$:.unshift "."
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe JSON::LD::Context::Preloaded do
|
6
|
+
{
|
7
|
+
activitystreams: "https://www.w3.org/ns/activitystreams",
|
8
|
+
csvw: "https://www.w3.org/ns/csvw",
|
9
|
+
datacube: "http://pebbie.org/context/qb",
|
10
|
+
entityfacts: "http://hub.culturegraph.org/entityfacts/context/v1/entityfacts.jsonld",
|
11
|
+
foaf: "http://xmlns.com/foaf/context",
|
12
|
+
geojson: "http://geojson.org/geojson-ld/geojson-context.jsonld",
|
13
|
+
hydra: "http://www.w3.org/ns/hydra/core",
|
14
|
+
identity: "https://w3id.org/identity/v1",
|
15
|
+
iiif: "http://iiif.io/api/image/2/context.json",
|
16
|
+
lov: "http://lov.okfn.org/dataset/lov/context",
|
17
|
+
prefix: "http://prefix.cc/context",
|
18
|
+
presentation: "http://iiif.io/api/presentation/2/context.json",
|
19
|
+
rdfa: "http://www.w3.org/2013/json-ld-context/rdfa11",
|
20
|
+
research: "https://w3id.org/bundle/context",
|
21
|
+
schema: "http://schema.org/",
|
22
|
+
vcard: "http://www.w3.org/2006/vcard/ns",
|
23
|
+
}.each do |id, url|
|
24
|
+
it "preloads #{id}" do
|
25
|
+
expect(JSON::LD::Context::PRELOADED.keys).to include(url)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: json-ld-preloaded
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Gregg Kellogg
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-09-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rdf
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: json-ld
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: multi_json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.12'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.12'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: oj
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.18'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.18'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rdf-turtle
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.7'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.7'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: yard
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.9.12
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.9.12
|
111
|
+
description: A meta-release of the json-ld gem including preloaded vocabularies.
|
112
|
+
email: public-linked-json@w3.org
|
113
|
+
executables: []
|
114
|
+
extensions: []
|
115
|
+
extra_rdoc_files: []
|
116
|
+
files:
|
117
|
+
- AUTHORS
|
118
|
+
- README.md
|
119
|
+
- UNLICENSE
|
120
|
+
- VERSION
|
121
|
+
- lib/json/ld/preloaded.rb
|
122
|
+
- lib/json/ld/preloaded/activitystreams.rb
|
123
|
+
- lib/json/ld/preloaded/csvw.rb
|
124
|
+
- lib/json/ld/preloaded/datacube.rb
|
125
|
+
- lib/json/ld/preloaded/entityfacts.rb
|
126
|
+
- lib/json/ld/preloaded/foaf.rb
|
127
|
+
- lib/json/ld/preloaded/geojson.rb
|
128
|
+
- lib/json/ld/preloaded/hydra.rb
|
129
|
+
- lib/json/ld/preloaded/identity.rb
|
130
|
+
- lib/json/ld/preloaded/iiif.rb
|
131
|
+
- lib/json/ld/preloaded/linkedart.rb
|
132
|
+
- lib/json/ld/preloaded/lov.rb
|
133
|
+
- lib/json/ld/preloaded/oa.rb
|
134
|
+
- lib/json/ld/preloaded/obi.rb
|
135
|
+
- lib/json/ld/preloaded/prefix.rb
|
136
|
+
- lib/json/ld/preloaded/presentation.rb
|
137
|
+
- lib/json/ld/preloaded/rdfa.rb
|
138
|
+
- lib/json/ld/preloaded/research.rb
|
139
|
+
- lib/json/ld/preloaded/schema.rb
|
140
|
+
- lib/json/ld/preloaded/vc.rb
|
141
|
+
- lib/json/ld/preloaded/vcard.rb
|
142
|
+
- lib/json/ld/preloaded/version.rb
|
143
|
+
- spec/preloaded_spec.rb
|
144
|
+
- spec/spec_helper.rb
|
145
|
+
homepage: http://github.com/ruby-rdf/json-ld-preloaded
|
146
|
+
licenses:
|
147
|
+
- Unlicense
|
148
|
+
metadata: {}
|
149
|
+
post_install_message:
|
150
|
+
rdoc_options: []
|
151
|
+
require_paths:
|
152
|
+
- lib
|
153
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 2.2.2
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
+
requirements:
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '0'
|
163
|
+
requirements: []
|
164
|
+
rubygems_version: 3.0.4
|
165
|
+
signing_key:
|
166
|
+
specification_version: 4
|
167
|
+
summary: JSON-LD with preloaded contexts.
|
168
|
+
test_files:
|
169
|
+
- spec/preloaded_spec.rb
|
170
|
+
- spec/spec_helper.rb
|