-
Notifications
You must be signed in to change notification settings - Fork 11
/
xml.rb
72 lines (70 loc) · 3.16 KB
/
xml.rb
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
# This file is automatically generated by ./script/intern_context
# RDFa context for http://www.w3.org/2011/rdfa-context/rdfa-1.1
class RDF::RDFa::Context
def self.find_with_rdfa_1_1(uri)
if uri.to_s == "http://www.w3.org/2011/rdfa-context/rdfa-1.1"
@_rdfa_1_1_prof ||= RDF::RDFa::Context.new(RDF::URI("http://www.w3.org/2011/rdfa-context/rdfa-1.1"),
prefixes: {
as: "https://www.w3.org/ns/activitystreams#",
cc: "http://creativecommons.org/ns#",
csvw: "http://www.w3.org/ns/csvw#",
ctag: "http://commontag.org/ns#",
dc: "http://purl.org/dc/terms/",
dc11: "http://purl.org/dc/elements/1.1/",
dcat: "http://www.w3.org/ns/dcat#",
dcterms: "http://purl.org/dc/terms/",
dqv: "http://www.w3.org/ns/dqv#",
duv: "https://www.w3.org/ns/duv#",
foaf: "http://xmlns.com/foaf/0.1/",
gr: "http://purl.org/goodrelations/v1#",
grddl: "http://www.w3.org/2003/g/data-view#",
ical: "http://www.w3.org/2002/12/cal/icaltzd#",
ldp: "http://www.w3.org/ns/ldp#",
ma: "http://www.w3.org/ns/ma-ont#",
oa: "http://www.w3.org/ns/oa#",
odrl: "http://www.w3.org/ns/odrl/2/",
og: "http://ogp.me/ns#",
org: "http://www.w3.org/ns/org#",
owl: "http://www.w3.org/2002/07/owl#",
prov: "http://www.w3.org/ns/prov#",
qb: "http://purl.org/linked-data/cube#",
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#",
rev: "http://purl.org/stuff/rev#",
rif: "http://www.w3.org/2007/rif#",
rr: "http://www.w3.org/ns/r2rml#",
schema: "http://schema.org/",
sd: "http://www.w3.org/ns/sparql-service-description#",
sioc: "http://rdfs.org/sioc/ns#",
skos: "http://www.w3.org/2004/02/skos/core#",
skosxl: "http://www.w3.org/2008/05/skos-xl#",
sosa: "http://www.w3.org/ns/sosa/",
ssn: "http://www.w3.org/ns/ssn/",
time: "http://www.w3.org/2006/time#",
v: "http://rdf.data-vocabulary.org/#",
vcard: "http://www.w3.org/2006/vcard/ns#",
void: "http://rdfs.org/ns/void#",
wdr: "http://www.w3.org/2007/05/powder#",
wdrs: "http://www.w3.org/2007/05/powder-s#",
xhv: "http://www.w3.org/1999/xhtml/vocab#",
xml: "http://www.w3.org/XML/1998/namespace",
xsd: "http://www.w3.org/2001/XMLSchema#",
},
terms: {
describedby: "http://www.w3.org/2007/05/powder-s#describedby",
license: "http://www.w3.org/1999/xhtml/vocab#license",
role: "http://www.w3.org/1999/xhtml/vocab#role",
},
)
else
find_without_rdfa_1_1(uri)
end
end
class << self
##
# Override find to return this context, if matched
alias_method :find_without_rdfa_1_1, :find
alias_method :find, :find_with_rdfa_1_1
end
end