rdf-rdfa 0.3.9 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +16 -8
- data/VERSION +1 -1
- data/lib/rdf/rdfa.rb +5 -6
- data/lib/rdf/rdfa/{profile.rb → context.rb} +42 -42
- data/lib/rdf/rdfa/context/html.rb +20 -0
- data/lib/rdf/rdfa/{profile → context}/xhtml.rb +9 -9
- data/lib/rdf/rdfa/context/xml.rb +55 -0
- data/lib/rdf/rdfa/expansion.rb +4 -4
- data/lib/rdf/rdfa/expansion/doap.rb +8 -8
- data/lib/rdf/rdfa/expansion/gr.rb +33 -21
- data/lib/rdf/rdfa/expansion/schema.rb +2 -0
- data/lib/rdf/rdfa/expansion/skosxl.rb +1 -1
- data/lib/rdf/rdfa/format.rb +4 -2
- data/lib/rdf/rdfa/reader.rb +135 -103
- data/lib/rdf/rdfa/reader/nokogiri.rb +1 -1
- data/lib/rdf/rdfa/reader/rexml.rb +1 -1
- data/lib/rdf/rdfa/writer.rb +5 -5
- metadata +130 -238
- data/lib/rdf/rdfa/profile/html.rb +0 -20
- data/lib/rdf/rdfa/profile/xml.rb +0 -53
@@ -1,20 +0,0 @@
|
|
1
|
-
# This file is automatically generated by ./script/intern_profile
|
2
|
-
# RDFa profile for http://www.w3.org/2011/rdfa-context/html-rdfa-1.1.html
|
3
|
-
|
4
|
-
class RDF::RDFa::Profile
|
5
|
-
def self.find_with_html_rdfa_1_1_html(uri)
|
6
|
-
if uri.to_s == "http://www.w3.org/2011/rdfa-context/html-rdfa-1.1"
|
7
|
-
@_html_rdfa_1_1_html_prof ||= RDF::RDFa::Profile.new(RDF::URI("http://www.w3.org/2011/rdfa-context/html-rdfa-1.1"), {
|
8
|
-
})
|
9
|
-
else
|
10
|
-
find_without_html_rdfa_1_1_html(uri)
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
class << self
|
15
|
-
##
|
16
|
-
# Override find to return this profile, if matched
|
17
|
-
alias_method :find_without_html_rdfa_1_1_html, :find
|
18
|
-
alias_method :find, :find_with_html_rdfa_1_1_html
|
19
|
-
end
|
20
|
-
end
|
data/lib/rdf/rdfa/profile/xml.rb
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
# This file is automatically generated by script/intern_profile
|
2
|
-
# RDFa profile for ./rdfa-1.1.html
|
3
|
-
|
4
|
-
class RDF::RDFa::Profile
|
5
|
-
def self.find_with_rdfa_1_1_html(uri)
|
6
|
-
if uri.to_s == "http://www.w3.org/2011/rdfa-context/rdfa-1.1"
|
7
|
-
@_rdfa_1_1_html_prof ||= RDF::RDFa::Profile.new(RDF::URI("http://www.w3.org/2011/rdfa-context/rdfa-1.1"), {
|
8
|
-
:prefixes => {
|
9
|
-
:cc => "http://creativecommons.org/ns#",
|
10
|
-
:ctag => "http://commontag.org/ns#",
|
11
|
-
:dc => "http://purl.org/dc/terms/",
|
12
|
-
:foaf => "http://xmlns.com/foaf/0.1/",
|
13
|
-
:gr => "http://purl.org/goodrelations/v1#",
|
14
|
-
:grddl => "http://www.w3.org/2003/g/data-view#",
|
15
|
-
:ical => "http://www.w3.org/2002/12/cal/icaltzd#",
|
16
|
-
:og => "http://ogp.me/ns#",
|
17
|
-
:owl => "http://www.w3.org/2002/07/owl#",
|
18
|
-
:rdf => "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
|
19
|
-
:rdfa => "http://www.w3.org/ns/rdfa#",
|
20
|
-
:rdfs => "http://www.w3.org/2000/01/rdf-schema#",
|
21
|
-
:rev => "http://purl.org/stuff/rev#",
|
22
|
-
:rif => "http://www.w3.org/2007/rif#",
|
23
|
-
:schema => "http://schema.org/",
|
24
|
-
:sioc => "http://rdfs.org/sioc/ns#",
|
25
|
-
:skos => "http://www.w3.org/2004/02/skos/core#",
|
26
|
-
:skosxl => "http://www.w3.org/2008/05/skos-xl#",
|
27
|
-
:v => "http://rdf.data-vocabulary.org/#",
|
28
|
-
:vcard => "http://www.w3.org/2006/vcard/ns#",
|
29
|
-
:void => "http://rdfs.org/ns/void#",
|
30
|
-
:wdr => "http://www.w3.org/2007/05/powder#",
|
31
|
-
:wdrs => "http://www.w3.org/2007/05/powder-s#",
|
32
|
-
:xhv => "http://www.w3.org/1999/xhtml/vocab#",
|
33
|
-
:xml => "http://www.w3.org/XML/1998/namespace",
|
34
|
-
:xsd => "http://www.w3.org/2001/XMLSchema#",
|
35
|
-
},
|
36
|
-
:terms => {
|
37
|
-
:describedby => "http://www.w3.org/2007/05/powder-s#describedby",
|
38
|
-
:license => "http://www.w3.org/1999/xhtml/vocab#license",
|
39
|
-
:role => "http://www.w3.org/1999/xhtml/vocab#role",
|
40
|
-
},
|
41
|
-
})
|
42
|
-
else
|
43
|
-
find_without_rdfa_1_1_html(uri)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
class << self
|
48
|
-
##
|
49
|
-
# Override find to return this profile, if matched
|
50
|
-
alias_method :find_without_rdfa_1_1_html, :find
|
51
|
-
alias_method :find, :find_with_rdfa_1_1_html
|
52
|
-
end
|
53
|
-
end
|