rdf_context 0.4.8 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +27 -0
- data/README.rdoc +22 -9
- data/Rakefile +11 -6
- data/VERSION +1 -1
- data/bin/rdf_context +12 -4
- data/lib/rdf_context.rb +3 -1
- data/lib/rdf_context/aggregate_graph.rb +86 -0
- data/lib/rdf_context/array_hacks.rb +53 -0
- data/lib/rdf_context/conjunctive_graph.rb +1 -1
- data/lib/rdf_context/exceptions.rb +9 -7
- data/lib/rdf_context/graph.rb +174 -15
- data/lib/rdf_context/literal.rb +34 -2
- data/lib/rdf_context/n3_grammar.treetop +213 -129
- data/lib/rdf_context/n3parser.rb +281 -57
- data/lib/rdf_context/namespace.rb +23 -12
- data/lib/rdf_context/parser.rb +4 -3
- data/lib/rdf_context/quoted_graph.rb +38 -0
- data/lib/rdf_context/rdfaparser.rb +2 -1
- data/lib/rdf_context/rdfxmlparser.rb +4 -3
- data/lib/rdf_context/store/abstract_sql_store.rb +4 -4
- data/lib/rdf_context/store/abstract_store.rb +5 -1
- data/lib/rdf_context/store/sqlite3_store.rb +10 -8
- data/lib/rdf_context/string_hacks.rb +44 -21
- data/lib/rdf_context/term_utils.rb +73 -4
- data/lib/rdf_context/triple.rb +32 -47
- data/lib/rdf_context/uriref.rb +33 -26
- data/spec/aggregate_graph_spec.rb +59 -0
- data/spec/conjunctive_graph_spec.rb +1 -1
- data/spec/cwm_spec.rb +32 -0
- data/spec/graph_spec.rb +114 -3
- data/spec/literal_spec.rb +107 -5
- data/spec/matchers.rb +104 -51
- data/spec/n3parser_spec.rb +798 -99
- data/spec/namespaces_spec.rb +26 -0
- data/spec/quoted_graph_spec.rb +0 -0
- data/spec/rdf_helper.rb +197 -0
- data/spec/rdfa_helper.rb +15 -11
- data/spec/rdfa_parser_spec.rb +6 -8
- data/spec/rdfxml_spec.rb +21 -28
- data/spec/spec_helper.rb +20 -0
- data/spec/sqlite3_store_spec.rb +6 -5
- data/spec/store_helper.rb +9 -1
- data/spec/string_hacks_spec.rb +14 -0
- data/spec/{rdfxml_helper.rb → swap_helper.rb} +8 -9
- data/spec/swap_spec.rb +77 -0
- data/spec/swap_test/animal.rdf +17 -0
- data/spec/swap_test/anon-prop.n3 +14 -0
- data/spec/swap_test/anonymous_loop.n3 +2 -0
- data/spec/swap_test/contexts.n3 +16 -0
- data/spec/swap_test/daml-pref.n3 +10 -0
- data/spec/swap_test/i18n/hiragana.n3 +22 -0
- data/spec/swap_test/i18n/n3string.n3 +4 -0
- data/spec/swap_test/list/itemType.rdf +12 -0
- data/spec/swap_test/lists-simple.n3 +40 -0
- data/spec/swap_test/lists.n3 +35 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10001.nt +3 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10002.nt +7 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10003.nt +3 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10004.nt +119 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10005.nt +3 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10006.nt +225 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10007.nt +79 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10008.nt +5 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10009.nt +13 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10010.nt +21 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10011.nt +9 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10012.nt +53 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10013.nt +19 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10014.nt +103 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10015.nt +103 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10016.nt +3 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10017.nt +151 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10018.nt +9 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10019.nt +3 -0
- data/spec/swap_test/n3/n3parser.tests_n3_10020.nt +13 -0
- data/spec/swap_test/n3parser.tests +160 -0
- data/spec/swap_test/nodeID/classes.n3 +9 -0
- data/spec/swap_test/nodeID/classes.ref.rdf +15 -0
- data/spec/swap_test/nodeID/ex1.rdf +15 -0
- data/spec/swap_test/norm/fix.rdf +33 -0
- data/spec/swap_test/owl-ex.rdf +150 -0
- data/spec/swap_test/ref/animal.n3 +11 -0
- data/spec/swap_test/ref/anon-prop-1.n3 +8 -0
- data/spec/swap_test/ref/anonymous_loop.ref +7 -0
- data/spec/swap_test/ref/bnode.n3 +6 -0
- data/spec/swap_test/ref/bnode.rdf +16 -0
- data/spec/swap_test/ref/colon-in-uri.n3 +15 -0
- data/spec/swap_test/ref/daml-ex.n3 +103 -0
- data/spec/swap_test/ref/daml-ont.n3 +289 -0
- data/spec/swap_test/ref/djb1a-out.n3 +4 -0
- data/spec/swap_test/ref/dot-dash.n3 +8 -0
- data/spec/swap_test/ref/in-xml-t.n3 +4 -0
- data/spec/swap_test/ref/itemType.n3 +9 -0
- data/spec/swap_test/ref/keywords1.n3 +11 -0
- data/spec/swap_test/ref/keywords2.n3 +11 -0
- data/spec/swap_test/ref/lists-simple-1.rdf +108 -0
- data/spec/swap_test/ref/lists.n3 +43 -0
- data/spec/swap_test/ref/lstring-out.n3 +20 -0
- data/spec/swap_test/ref/n3string.n3 +13 -0
- data/spec/swap_test/ref/no-last-nl.n3 +3 -0
- data/spec/swap_test/ref/numbers.n3 +18 -0
- data/spec/swap_test/ref/path1.n3 +8 -0
- data/spec/swap_test/ref/path2.n3 +39 -0
- data/spec/swap_test/ref/prefix1.rdf +31 -0
- data/spec/swap_test/ref/prefix3.rdf +31 -0
- data/spec/swap_test/ref/rdf-redefine.rdf +11 -0
- data/spec/swap_test/ref/reluri-1.rdf +18 -0
- data/spec/swap_test/ref/strquot.n3 +23 -0
- data/spec/swap_test/ref/strquot_a.n3 +23 -0
- data/spec/swap_test/ref/xml-base3.n3 +5 -0
- data/spec/swap_test/ref/xml-redefine.rdf +20 -0
- data/spec/swap_test/ref/xml-redefine2.rdf +23 -0
- data/spec/swap_test/ref/xml-syntax-basic-serialization.rdf +10 -0
- data/spec/swap_test/ref/xmllit.nt +3 -0
- data/spec/swap_test/regression.n3 +231 -0
- data/spec/swap_test/reluri-1.n3 +10 -0
- data/spec/swap_test/strquot.n3 +23 -0
- data/spec/swap_test/syntax/colon-in-uri.rdf +27 -0
- data/spec/swap_test/syntax/djb1a.n3 +3 -0
- data/spec/swap_test/syntax/dot-dash.n3 +15 -0
- data/spec/swap_test/syntax/equals1.n3 +1 -0
- data/spec/swap_test/syntax/equals2.n3 +1 -0
- data/spec/swap_test/syntax/keywords1.n3 +17 -0
- data/spec/swap_test/syntax/keywords2.n3 +18 -0
- data/spec/swap_test/syntax/lstring.n3 +26 -0
- data/spec/swap_test/syntax/neg-formula-predicate.n3 +1 -0
- data/spec/swap_test/syntax/neg-keywords3.n3 +1 -0
- data/spec/swap_test/syntax/neg-literal-predicate.n3 +1 -0
- data/spec/swap_test/syntax/neg-single-quote.n3 +1 -0
- data/spec/swap_test/syntax/neg-thisadoc.n3 +1 -0
- data/spec/swap_test/syntax/no-last-nl.n3 +2 -0
- data/spec/swap_test/syntax/numbers.n3 +26 -0
- data/spec/swap_test/syntax/path1.n3 +23 -0
- data/spec/swap_test/syntax/path2.n3 +31 -0
- data/spec/swap_test/syntax/qvars1.n3 +19 -0
- data/spec/swap_test/syntax/qvars2.n3 +19 -0
- data/spec/swap_test/syntax/this-quantifiers.n3 +164 -0
- data/spec/swap_test/syntax/this-rules.n3 +43 -0
- data/spec/swap_test/syntax/too-nested.n3 +25 -0
- data/spec/swap_test/syntax/trailing-semicolon.n3 +12 -0
- data/spec/swap_test/syntax/zero-objects.n3 +1 -0
- data/spec/swap_test/syntax/zero-predicates.n3 +3 -0
- data/spec/swap_test/tests-work.txt +25 -0
- data/spec/swap_test/xml-syntax/basic-serialization.n3 +8 -0
- data/spec/swap_test/xml-syntax/in-xml.xml +13 -0
- data/spec/swap_test/xml-syntax/non-ascii-pred.rdf +14 -0
- data/spec/swap_test/xml-syntax/rdf_prefix.n3 +2 -0
- data/spec/swap_test/xml-syntax/xml_prefix.n3 +7 -0
- data/spec/swap_test/xml-syntax/xml_prefix2.n3 +9 -0
- data/spec/swap_test/xml-syntax/xmlbase3.rdf +10 -0
- data/spec/swap_test/xml-syntax/xmllit.rdf +33 -0
- data/spec/triple_spec.rb +90 -46
- data/spec/turtle/README.txt +20 -0
- data/spec/turtle/bad-00.ttl +2 -0
- data/spec/turtle/bad-01.ttl +3 -0
- data/spec/turtle/bad-02.ttl +3 -0
- data/spec/turtle/bad-03.ttl +3 -0
- data/spec/turtle/bad-04.ttl +3 -0
- data/spec/turtle/bad-05.ttl +4 -0
- data/spec/turtle/bad-06.ttl +3 -0
- data/spec/turtle/bad-07.ttl +4 -0
- data/spec/turtle/bad-08.ttl +2 -0
- data/spec/turtle/bad-09.ttl +3 -0
- data/spec/turtle/bad-10.ttl +3 -0
- data/spec/turtle/bad-11.ttl +3 -0
- data/spec/turtle/bad-12.ttl +3 -0
- data/spec/turtle/bad-13.ttl +3 -0
- data/spec/turtle/bad-14.ttl +6 -0
- data/spec/turtle/manifest-bad.ttl +88 -0
- data/spec/turtle/manifest.ttl +215 -0
- data/spec/turtle/rdf-schema.out +126 -0
- data/spec/turtle/rdf-schema.ttl +156 -0
- data/spec/turtle/rdfq-results.out +36 -0
- data/spec/turtle/rdfq-results.ttl +39 -0
- data/spec/turtle/rdfs-namespace.out +131 -0
- data/spec/turtle/rdfs-namespace.ttl +160 -0
- data/spec/turtle/test-00.out +1 -0
- data/spec/turtle/test-00.ttl +2 -0
- data/spec/turtle/test-01.out +3 -0
- data/spec/turtle/test-01.ttl +7 -0
- data/spec/turtle/test-02.out +3 -0
- data/spec/turtle/test-02.ttl +5 -0
- data/spec/turtle/test-03.out +3 -0
- data/spec/turtle/test-03.ttl +5 -0
- data/spec/turtle/test-04.out +2 -0
- data/spec/turtle/test-04.ttl +4 -0
- data/spec/turtle/test-05.out +4 -0
- data/spec/turtle/test-05.ttl +4 -0
- data/spec/turtle/test-06.out +1 -0
- data/spec/turtle/test-06.ttl +3 -0
- data/spec/turtle/test-07.out +5 -0
- data/spec/turtle/test-07.ttl +3 -0
- data/spec/turtle/test-08.out +1 -0
- data/spec/turtle/test-08.ttl +3 -0
- data/spec/turtle/test-09.out +4 -0
- data/spec/turtle/test-09.ttl +10 -0
- data/spec/turtle/test-10.out +5 -0
- data/spec/turtle/test-10.ttl +5 -0
- data/spec/turtle/test-11.out +4 -0
- data/spec/turtle/test-11.ttl +10 -0
- data/spec/turtle/test-12.out +4 -0
- data/spec/turtle/test-12.ttl +9 -0
- data/spec/turtle/test-13.out +2 -0
- data/spec/turtle/test-13.ttl +7 -0
- data/spec/turtle/test-14.out +10000 -0
- data/spec/turtle/test-14.ttl +10002 -0
- data/spec/turtle/test-15.out +10000 -0
- data/spec/turtle/test-15.ttl +3 -0
- data/spec/turtle/test-16.out +10000 -0
- data/spec/turtle/test-16.ttl +10002 -0
- data/spec/turtle/test-17.out +1 -0
- data/spec/turtle/test-17.ttl +6 -0
- data/spec/turtle/test-18.out +2 -0
- data/spec/turtle/test-18.ttl +9 -0
- data/spec/turtle/test-19.out +1 -0
- data/spec/turtle/test-19.ttl +4 -0
- data/spec/turtle/test-20.out +2 -0
- data/spec/turtle/test-20.ttl +6 -0
- data/spec/turtle/test-21.out +3 -0
- data/spec/turtle/test-21.ttl +4 -0
- data/spec/turtle/test-22.out +3 -0
- data/spec/turtle/test-22.ttl +4 -0
- data/spec/turtle/test-23.out +1 -0
- data/spec/turtle/test-23.ttl +3 -0
- data/spec/turtle/test-24.out +2 -0
- data/spec/turtle/test-24.ttl +3 -0
- data/spec/turtle/test-25.out +7 -0
- data/spec/turtle/test-25.ttl +14 -0
- data/spec/turtle/test-26.out +1 -0
- data/spec/turtle/test-26.ttl +4 -0
- data/spec/turtle/test-27.out +1 -0
- data/spec/turtle/test-27.ttl +5 -0
- data/spec/turtle/test-28-out.ttl +6 -0
- data/spec/turtle/test-28.out +22 -0
- data/spec/turtle/test-28.ttl +22 -0
- data/spec/turtle/test-29.out +1 -0
- data/spec/turtle/test-29.ttl +1 -0
- data/spec/turtle/test-30.out +5 -0
- data/spec/turtle/test-30.ttl +12 -0
- data/spec/turtle_spec.rb +64 -0
- data/spec/uriref_spec.rb +74 -34
- data/test/n3_tests/rdflib/n3-writer-teset-26.n3 +31 -0
- data/test/n3_tests/rdflib/n3-writer-teset-26.nt +14 -0
- data/test/rdf_tests/xml-literal-mixed.nt +1 -2
- metadata +278 -39
- data/lib/rdf_context/n3_grammar.rb +0 -2171
- data/test/perf_test/test.rb +0 -11
- data/test/perf_test/tommorris.rdf +0 -2267
@@ -0,0 +1,14 @@
|
|
1
|
+
<http://server/deck> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://joseki.org/2002/11/configuration#AttachedModel> .
|
2
|
+
<http://server/deck> <http://joseki.org/2002/11/configuration#attachedModel> <file:deck.n3> .
|
3
|
+
<http://server/deck> <http://joseki.org/2002/11/configuration#hasQueryOperation> <http://joseki.org/2002/11/configuration#BindingRDQL> .
|
4
|
+
<http://server/deck> <http://joseki.org/2002/11/configuration#hasQueryOperation> <http://joseki.org/2002/11/configuration#BindingGET> .
|
5
|
+
<http://server/deck> <http://joseki.org/2002/11/configuration#hasQueryOperation> <http://joseki.org/2002/11/configuration#BindingSPO> .
|
6
|
+
<http://server/deck> <http://joseki.org/2002/11/configuration#hasOperation> <http://joseki.org/2002/11/configuration#BindingQueryModel> .
|
7
|
+
<http://server/deck> <http://joseki.org/2002/11/configuration#hasOperation> <http://joseki.org/2002/11/configuration#BindingOptions> .
|
8
|
+
_:bnode0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://joseki.org/2002/11/configuration#QueryLanguageBinding> .
|
9
|
+
_:bnode0 <http://joseki.org/2002/11/configuration#queryOperationName> "fetch" .
|
10
|
+
_:bnode1 <http://joseki.org/2002/11/configuration#className> "org.joseki.server.processors.QueryProcessorFetch" .
|
11
|
+
_:bnode0 <http://joseki.org/2002/11/configuration#queryOperation> _:bnode1 .
|
12
|
+
<http://server/deck> <http://joseki.org/2002/11/configuration#hasQueryOperation> _:bnode0 .
|
13
|
+
<http://server/deck> <http://joseki.org/2002/11/configuration#isImmutable> "true" .
|
14
|
+
<http://server/deck> <http://www.w3.org/2000/01/rdf-schema#comment> "Deck of cards" .
|
@@ -1,7 +1,6 @@
|
|
1
1
|
<http://www.example.com/books#book12345> <http://purl.org/dc/elements/1.1/title> """
|
2
2
|
Foo
|
3
|
-
<html:b xmlns:html="http://www.w3.org/1999/xhtml" html:a="b">bar<rdf:Thing xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><a:b xmlns:a="foo:"></a:b>here<a:c xmlns:a="foo:"></a:c></
|
4
|
-
f:Thing></html:b>
|
3
|
+
<html:b xmlns:html="http://www.w3.org/1999/xhtml" html:a="b">bar<rdf:Thing xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><a:b xmlns:a="foo:"></a:b>here<a:c xmlns:a="foo:"></a:c></rdf:Thing></html:b>
|
5
4
|
baz
|
6
5
|
<html:i xmlns:html="http://www.w3.org/1999/xhtml">more</html:i>
|
7
6
|
"""^^rdf:XMLLiteral .
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf_context
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 5
|
8
|
+
- 0
|
9
|
+
version: 0.5.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Gregg Kellogg
|
@@ -9,79 +14,105 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-02-22 00:00:00 -08:00
|
13
18
|
default_executable: rdf_context
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: addressable
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 2
|
29
|
+
- 0
|
30
|
+
- 0
|
23
31
|
version: 2.0.0
|
24
|
-
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
25
34
|
- !ruby/object:Gem::Dependency
|
26
35
|
name: treetop
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
requirements:
|
31
39
|
- - ">="
|
32
40
|
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 1
|
43
|
+
- 4
|
44
|
+
- 0
|
33
45
|
version: 1.4.0
|
34
|
-
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
35
48
|
- !ruby/object:Gem::Dependency
|
36
49
|
name: whatlanguage
|
37
|
-
|
38
|
-
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
40
52
|
requirements:
|
41
53
|
- - ">="
|
42
54
|
- !ruby/object:Gem::Version
|
55
|
+
segments:
|
56
|
+
- 1
|
57
|
+
- 0
|
58
|
+
- 0
|
43
59
|
version: 1.0.0
|
44
|
-
|
60
|
+
type: :runtime
|
61
|
+
version_requirements: *id003
|
45
62
|
- !ruby/object:Gem::Dependency
|
46
63
|
name: nokogiri
|
47
|
-
|
48
|
-
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
prerelease: false
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
66
|
requirements:
|
51
67
|
- - ">="
|
52
68
|
- !ruby/object:Gem::Version
|
69
|
+
segments:
|
70
|
+
- 1
|
71
|
+
- 3
|
72
|
+
- 3
|
53
73
|
version: 1.3.3
|
54
|
-
|
74
|
+
type: :runtime
|
75
|
+
version_requirements: *id004
|
55
76
|
- !ruby/object:Gem::Dependency
|
56
77
|
name: builder
|
57
|
-
|
58
|
-
|
59
|
-
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
prerelease: false
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
60
80
|
requirements:
|
61
81
|
- - ">="
|
62
82
|
- !ruby/object:Gem::Version
|
83
|
+
segments:
|
84
|
+
- 2
|
85
|
+
- 1
|
86
|
+
- 2
|
63
87
|
version: 2.1.2
|
64
|
-
|
88
|
+
type: :runtime
|
89
|
+
version_requirements: *id005
|
65
90
|
- !ruby/object:Gem::Dependency
|
66
91
|
name: rspec
|
67
|
-
|
68
|
-
|
69
|
-
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
prerelease: false
|
93
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
70
94
|
requirements:
|
71
95
|
- - ">="
|
72
96
|
- !ruby/object:Gem::Version
|
97
|
+
segments:
|
98
|
+
- 0
|
73
99
|
version: "0"
|
74
|
-
|
100
|
+
type: :development
|
101
|
+
version_requirements: *id006
|
75
102
|
- !ruby/object:Gem::Dependency
|
76
103
|
name: activesupport
|
77
|
-
|
78
|
-
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
104
|
+
prerelease: false
|
105
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
80
106
|
requirements:
|
81
107
|
- - ">="
|
82
108
|
- !ruby/object:Gem::Version
|
109
|
+
segments:
|
110
|
+
- 2
|
111
|
+
- 3
|
112
|
+
- 0
|
83
113
|
version: 2.3.0
|
84
|
-
|
114
|
+
type: :development
|
115
|
+
version_requirements: *id007
|
85
116
|
description: " RdfContext parses RDF/XML, RDFa and N3-rdf into a Graph object. It also serializes RDF/XML and N-Triples from the Graph.\n\n * Fully compliant RDF/XML parser.\n * Fully compliant XHTML/RDFa 1.0 parser.\n * N3-rdf parser\n * N-Triples and RDF/XML serializer\n * Graph serializes into RDF/XML and N-Triples.\n * ConjunctiveGraph, named Graphs and contextual storage modules.\n \n Install with 'gem install rdf_context'\n"
|
86
117
|
email: gregg@kellogg-assoc.com
|
87
118
|
executables:
|
@@ -104,18 +135,20 @@ files:
|
|
104
135
|
- cmx.db
|
105
136
|
- ep.nt
|
106
137
|
- lib/rdf_context.rb
|
138
|
+
- lib/rdf_context/aggregate_graph.rb
|
139
|
+
- lib/rdf_context/array_hacks.rb
|
107
140
|
- lib/rdf_context/bnode.rb
|
108
141
|
- lib/rdf_context/conjunctive_graph.rb
|
109
142
|
- lib/rdf_context/duration.rb
|
110
143
|
- lib/rdf_context/exceptions.rb
|
111
144
|
- lib/rdf_context/graph.rb
|
112
145
|
- lib/rdf_context/literal.rb
|
113
|
-
- lib/rdf_context/n3_grammar.rb
|
114
146
|
- lib/rdf_context/n3_grammar.treetop
|
115
147
|
- lib/rdf_context/n3parser.rb
|
116
148
|
- lib/rdf_context/namespace.rb
|
117
149
|
- lib/rdf_context/nokogiri_hacks.rb
|
118
150
|
- lib/rdf_context/parser.rb
|
151
|
+
- lib/rdf_context/quoted_graph.rb
|
119
152
|
- lib/rdf_context/rdfaparser.rb
|
120
153
|
- lib/rdf_context/rdfxmlparser.rb
|
121
154
|
- lib/rdf_context/store/abstract_sql_store.rb
|
@@ -128,8 +161,10 @@ files:
|
|
128
161
|
- lib/rdf_context/triple.rb
|
129
162
|
- lib/rdf_context/uriref.rb
|
130
163
|
- script/console
|
164
|
+
- spec/aggregate_graph_spec.rb
|
131
165
|
- spec/bnode_spec.rb
|
132
166
|
- spec/conjunctive_graph_spec.rb
|
167
|
+
- spec/cwm_spec.rb
|
133
168
|
- spec/duration_spec.rb
|
134
169
|
- spec/graph_spec.rb
|
135
170
|
- spec/list_store_spec.rb
|
@@ -140,6 +175,8 @@ files:
|
|
140
175
|
- spec/namespaces_spec.rb
|
141
176
|
- spec/ntriples/test.nt
|
142
177
|
- spec/parser_spec.rb
|
178
|
+
- spec/quoted_graph_spec.rb
|
179
|
+
- spec/rdf_helper.rb
|
143
180
|
- spec/rdfa-triples/0001.nt
|
144
181
|
- spec/rdfa-triples/0006.nt
|
145
182
|
- spec/rdfa-triples/0007.nt
|
@@ -606,14 +643,209 @@ files:
|
|
606
643
|
- spec/rdfcore/xmlsch-02/test001.rdf
|
607
644
|
- spec/rdfcore/xmlsch-02/test002.rdf
|
608
645
|
- spec/rdfcore/xmlsch-02/test003.rdf
|
609
|
-
- spec/rdfxml_helper.rb
|
610
646
|
- spec/rdfxml_spec.rb
|
611
647
|
- spec/spec.opts
|
612
648
|
- spec/spec_helper.rb
|
613
649
|
- spec/sqlite3_store_spec.rb
|
614
650
|
- spec/store_helper.rb
|
615
651
|
- spec/string_hacks_spec.rb
|
652
|
+
- spec/swap_helper.rb
|
653
|
+
- spec/swap_spec.rb
|
654
|
+
- spec/swap_test/animal.rdf
|
655
|
+
- spec/swap_test/anon-prop.n3
|
656
|
+
- spec/swap_test/anonymous_loop.n3
|
657
|
+
- spec/swap_test/contexts.n3
|
658
|
+
- spec/swap_test/daml-pref.n3
|
659
|
+
- spec/swap_test/i18n/hiragana.n3
|
660
|
+
- spec/swap_test/i18n/n3string.n3
|
661
|
+
- spec/swap_test/list/itemType.rdf
|
662
|
+
- spec/swap_test/lists-simple.n3
|
663
|
+
- spec/swap_test/lists.n3
|
664
|
+
- spec/swap_test/n3/n3parser.tests_n3_10001.nt
|
665
|
+
- spec/swap_test/n3/n3parser.tests_n3_10002.nt
|
666
|
+
- spec/swap_test/n3/n3parser.tests_n3_10003.nt
|
667
|
+
- spec/swap_test/n3/n3parser.tests_n3_10004.nt
|
668
|
+
- spec/swap_test/n3/n3parser.tests_n3_10005.nt
|
669
|
+
- spec/swap_test/n3/n3parser.tests_n3_10006.nt
|
670
|
+
- spec/swap_test/n3/n3parser.tests_n3_10007.nt
|
671
|
+
- spec/swap_test/n3/n3parser.tests_n3_10008.nt
|
672
|
+
- spec/swap_test/n3/n3parser.tests_n3_10009.nt
|
673
|
+
- spec/swap_test/n3/n3parser.tests_n3_10010.nt
|
674
|
+
- spec/swap_test/n3/n3parser.tests_n3_10011.nt
|
675
|
+
- spec/swap_test/n3/n3parser.tests_n3_10012.nt
|
676
|
+
- spec/swap_test/n3/n3parser.tests_n3_10013.nt
|
677
|
+
- spec/swap_test/n3/n3parser.tests_n3_10014.nt
|
678
|
+
- spec/swap_test/n3/n3parser.tests_n3_10015.nt
|
679
|
+
- spec/swap_test/n3/n3parser.tests_n3_10016.nt
|
680
|
+
- spec/swap_test/n3/n3parser.tests_n3_10017.nt
|
681
|
+
- spec/swap_test/n3/n3parser.tests_n3_10018.nt
|
682
|
+
- spec/swap_test/n3/n3parser.tests_n3_10019.nt
|
683
|
+
- spec/swap_test/n3/n3parser.tests_n3_10020.nt
|
684
|
+
- spec/swap_test/n3parser.tests
|
685
|
+
- spec/swap_test/nodeID/classes.n3
|
686
|
+
- spec/swap_test/nodeID/classes.ref.rdf
|
687
|
+
- spec/swap_test/nodeID/ex1.rdf
|
688
|
+
- spec/swap_test/norm/fix.rdf
|
689
|
+
- spec/swap_test/owl-ex.rdf
|
690
|
+
- spec/swap_test/ref/animal.n3
|
691
|
+
- spec/swap_test/ref/anon-prop-1.n3
|
692
|
+
- spec/swap_test/ref/anonymous_loop.ref
|
693
|
+
- spec/swap_test/ref/bnode.n3
|
694
|
+
- spec/swap_test/ref/bnode.rdf
|
695
|
+
- spec/swap_test/ref/colon-in-uri.n3
|
696
|
+
- spec/swap_test/ref/daml-ex.n3
|
697
|
+
- spec/swap_test/ref/daml-ont.n3
|
698
|
+
- spec/swap_test/ref/djb1a-out.n3
|
699
|
+
- spec/swap_test/ref/dot-dash.n3
|
700
|
+
- spec/swap_test/ref/in-xml-t.n3
|
701
|
+
- spec/swap_test/ref/itemType.n3
|
702
|
+
- spec/swap_test/ref/keywords1.n3
|
703
|
+
- spec/swap_test/ref/keywords2.n3
|
704
|
+
- spec/swap_test/ref/lists-simple-1.rdf
|
705
|
+
- spec/swap_test/ref/lists.n3
|
706
|
+
- spec/swap_test/ref/lstring-out.n3
|
707
|
+
- spec/swap_test/ref/n3string.n3
|
708
|
+
- spec/swap_test/ref/no-last-nl.n3
|
709
|
+
- spec/swap_test/ref/numbers.n3
|
710
|
+
- spec/swap_test/ref/path1.n3
|
711
|
+
- spec/swap_test/ref/path2.n3
|
712
|
+
- spec/swap_test/ref/prefix1.rdf
|
713
|
+
- spec/swap_test/ref/prefix3.rdf
|
714
|
+
- spec/swap_test/ref/rdf-redefine.rdf
|
715
|
+
- spec/swap_test/ref/reluri-1.rdf
|
716
|
+
- spec/swap_test/ref/strquot.n3
|
717
|
+
- spec/swap_test/ref/strquot_a.n3
|
718
|
+
- spec/swap_test/ref/xml-base3.n3
|
719
|
+
- spec/swap_test/ref/xml-redefine.rdf
|
720
|
+
- spec/swap_test/ref/xml-redefine2.rdf
|
721
|
+
- spec/swap_test/ref/xml-syntax-basic-serialization.rdf
|
722
|
+
- spec/swap_test/ref/xmllit.nt
|
723
|
+
- spec/swap_test/regression.n3
|
724
|
+
- spec/swap_test/reluri-1.n3
|
725
|
+
- spec/swap_test/strquot.n3
|
726
|
+
- spec/swap_test/syntax/colon-in-uri.rdf
|
727
|
+
- spec/swap_test/syntax/djb1a.n3
|
728
|
+
- spec/swap_test/syntax/dot-dash.n3
|
729
|
+
- spec/swap_test/syntax/equals1.n3
|
730
|
+
- spec/swap_test/syntax/equals2.n3
|
731
|
+
- spec/swap_test/syntax/keywords1.n3
|
732
|
+
- spec/swap_test/syntax/keywords2.n3
|
733
|
+
- spec/swap_test/syntax/lstring.n3
|
734
|
+
- spec/swap_test/syntax/neg-formula-predicate.n3
|
735
|
+
- spec/swap_test/syntax/neg-keywords3.n3
|
736
|
+
- spec/swap_test/syntax/neg-literal-predicate.n3
|
737
|
+
- spec/swap_test/syntax/neg-single-quote.n3
|
738
|
+
- spec/swap_test/syntax/neg-thisadoc.n3
|
739
|
+
- spec/swap_test/syntax/no-last-nl.n3
|
740
|
+
- spec/swap_test/syntax/numbers.n3
|
741
|
+
- spec/swap_test/syntax/path1.n3
|
742
|
+
- spec/swap_test/syntax/path2.n3
|
743
|
+
- spec/swap_test/syntax/qvars1.n3
|
744
|
+
- spec/swap_test/syntax/qvars2.n3
|
745
|
+
- spec/swap_test/syntax/this-quantifiers.n3
|
746
|
+
- spec/swap_test/syntax/this-rules.n3
|
747
|
+
- spec/swap_test/syntax/too-nested.n3
|
748
|
+
- spec/swap_test/syntax/trailing-semicolon.n3
|
749
|
+
- spec/swap_test/syntax/zero-objects.n3
|
750
|
+
- spec/swap_test/syntax/zero-predicates.n3
|
751
|
+
- spec/swap_test/tests-work.txt
|
752
|
+
- spec/swap_test/xml-syntax/basic-serialization.n3
|
753
|
+
- spec/swap_test/xml-syntax/in-xml.xml
|
754
|
+
- spec/swap_test/xml-syntax/non-ascii-pred.rdf
|
755
|
+
- spec/swap_test/xml-syntax/rdf_prefix.n3
|
756
|
+
- spec/swap_test/xml-syntax/xml_prefix.n3
|
757
|
+
- spec/swap_test/xml-syntax/xml_prefix2.n3
|
758
|
+
- spec/swap_test/xml-syntax/xmlbase3.rdf
|
759
|
+
- spec/swap_test/xml-syntax/xmllit.rdf
|
616
760
|
- spec/triple_spec.rb
|
761
|
+
- spec/turtle/README.txt
|
762
|
+
- spec/turtle/bad-00.ttl
|
763
|
+
- spec/turtle/bad-01.ttl
|
764
|
+
- spec/turtle/bad-02.ttl
|
765
|
+
- spec/turtle/bad-03.ttl
|
766
|
+
- spec/turtle/bad-04.ttl
|
767
|
+
- spec/turtle/bad-05.ttl
|
768
|
+
- spec/turtle/bad-06.ttl
|
769
|
+
- spec/turtle/bad-07.ttl
|
770
|
+
- spec/turtle/bad-08.ttl
|
771
|
+
- spec/turtle/bad-09.ttl
|
772
|
+
- spec/turtle/bad-10.ttl
|
773
|
+
- spec/turtle/bad-11.ttl
|
774
|
+
- spec/turtle/bad-12.ttl
|
775
|
+
- spec/turtle/bad-13.ttl
|
776
|
+
- spec/turtle/bad-14.ttl
|
777
|
+
- spec/turtle/manifest-bad.ttl
|
778
|
+
- spec/turtle/manifest.ttl
|
779
|
+
- spec/turtle/rdf-schema.out
|
780
|
+
- spec/turtle/rdf-schema.ttl
|
781
|
+
- spec/turtle/rdfq-results.out
|
782
|
+
- spec/turtle/rdfq-results.ttl
|
783
|
+
- spec/turtle/rdfs-namespace.out
|
784
|
+
- spec/turtle/rdfs-namespace.ttl
|
785
|
+
- spec/turtle/test-00.out
|
786
|
+
- spec/turtle/test-00.ttl
|
787
|
+
- spec/turtle/test-01.out
|
788
|
+
- spec/turtle/test-01.ttl
|
789
|
+
- spec/turtle/test-02.out
|
790
|
+
- spec/turtle/test-02.ttl
|
791
|
+
- spec/turtle/test-03.out
|
792
|
+
- spec/turtle/test-03.ttl
|
793
|
+
- spec/turtle/test-04.out
|
794
|
+
- spec/turtle/test-04.ttl
|
795
|
+
- spec/turtle/test-05.out
|
796
|
+
- spec/turtle/test-05.ttl
|
797
|
+
- spec/turtle/test-06.out
|
798
|
+
- spec/turtle/test-06.ttl
|
799
|
+
- spec/turtle/test-07.out
|
800
|
+
- spec/turtle/test-07.ttl
|
801
|
+
- spec/turtle/test-08.out
|
802
|
+
- spec/turtle/test-08.ttl
|
803
|
+
- spec/turtle/test-09.out
|
804
|
+
- spec/turtle/test-09.ttl
|
805
|
+
- spec/turtle/test-10.out
|
806
|
+
- spec/turtle/test-10.ttl
|
807
|
+
- spec/turtle/test-11.out
|
808
|
+
- spec/turtle/test-11.ttl
|
809
|
+
- spec/turtle/test-12.out
|
810
|
+
- spec/turtle/test-12.ttl
|
811
|
+
- spec/turtle/test-13.out
|
812
|
+
- spec/turtle/test-13.ttl
|
813
|
+
- spec/turtle/test-14.out
|
814
|
+
- spec/turtle/test-14.ttl
|
815
|
+
- spec/turtle/test-15.out
|
816
|
+
- spec/turtle/test-15.ttl
|
817
|
+
- spec/turtle/test-16.out
|
818
|
+
- spec/turtle/test-16.ttl
|
819
|
+
- spec/turtle/test-17.out
|
820
|
+
- spec/turtle/test-17.ttl
|
821
|
+
- spec/turtle/test-18.out
|
822
|
+
- spec/turtle/test-18.ttl
|
823
|
+
- spec/turtle/test-19.out
|
824
|
+
- spec/turtle/test-19.ttl
|
825
|
+
- spec/turtle/test-20.out
|
826
|
+
- spec/turtle/test-20.ttl
|
827
|
+
- spec/turtle/test-21.out
|
828
|
+
- spec/turtle/test-21.ttl
|
829
|
+
- spec/turtle/test-22.out
|
830
|
+
- spec/turtle/test-22.ttl
|
831
|
+
- spec/turtle/test-23.out
|
832
|
+
- spec/turtle/test-23.ttl
|
833
|
+
- spec/turtle/test-24.out
|
834
|
+
- spec/turtle/test-24.ttl
|
835
|
+
- spec/turtle/test-25.out
|
836
|
+
- spec/turtle/test-25.ttl
|
837
|
+
- spec/turtle/test-26.out
|
838
|
+
- spec/turtle/test-26.ttl
|
839
|
+
- spec/turtle/test-27.out
|
840
|
+
- spec/turtle/test-27.ttl
|
841
|
+
- spec/turtle/test-28-out.ttl
|
842
|
+
- spec/turtle/test-28.out
|
843
|
+
- spec/turtle/test-28.ttl
|
844
|
+
- spec/turtle/test-29.out
|
845
|
+
- spec/turtle/test-29.ttl
|
846
|
+
- spec/turtle/test-30.out
|
847
|
+
- spec/turtle/test-30.ttl
|
848
|
+
- spec/turtle_spec.rb
|
617
849
|
- spec/uriref_spec.rb
|
618
850
|
- test/longtests_spec.rb
|
619
851
|
- test/n3_tests/lcsh/sh85062913.n3
|
@@ -638,8 +870,8 @@ files:
|
|
638
870
|
- test/n3_tests/n3p/simple-06.nt
|
639
871
|
- test/n3_tests/n3p/simple-07.n3
|
640
872
|
- test/n3_tests/n3p/simple-07.nt
|
641
|
-
- test/
|
642
|
-
- test/
|
873
|
+
- test/n3_tests/rdflib/n3-writer-teset-26.n3
|
874
|
+
- test/n3_tests/rdflib/n3-writer-teset-26.nt
|
643
875
|
- test/rdf_tests/cc197bad-dc9c-440d-a5b5-d52ba2e14234.nt
|
644
876
|
- test/rdf_tests/cc197bad-dc9c-440d-a5b5-d52ba2e14234.rdf
|
645
877
|
- test/rdf_tests/tm_001.nt
|
@@ -660,24 +892,28 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
660
892
|
requirements:
|
661
893
|
- - ">="
|
662
894
|
- !ruby/object:Gem::Version
|
895
|
+
segments:
|
896
|
+
- 0
|
663
897
|
version: "0"
|
664
|
-
version:
|
665
898
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
666
899
|
requirements:
|
667
900
|
- - ">="
|
668
901
|
- !ruby/object:Gem::Version
|
902
|
+
segments:
|
903
|
+
- 0
|
669
904
|
version: "0"
|
670
|
-
version:
|
671
905
|
requirements: []
|
672
906
|
|
673
907
|
rubyforge_project:
|
674
|
-
rubygems_version: 1.3.
|
908
|
+
rubygems_version: 1.3.6
|
675
909
|
signing_key:
|
676
910
|
specification_version: 3
|
677
911
|
summary: RdfContext is an RDF library for Ruby supporting contextual graphs, multiple datastores and compliant RDF/XML, RDFa and N3 parsers.
|
678
912
|
test_files:
|
913
|
+
- spec/aggregate_graph_spec.rb
|
679
914
|
- spec/bnode_spec.rb
|
680
915
|
- spec/conjunctive_graph_spec.rb
|
916
|
+
- spec/cwm_spec.rb
|
681
917
|
- spec/duration_spec.rb
|
682
918
|
- spec/graph_spec.rb
|
683
919
|
- spec/list_store_spec.rb
|
@@ -687,15 +923,18 @@ test_files:
|
|
687
923
|
- spec/n3parser_spec.rb
|
688
924
|
- spec/namespaces_spec.rb
|
689
925
|
- spec/parser_spec.rb
|
926
|
+
- spec/quoted_graph_spec.rb
|
927
|
+
- spec/rdf_helper.rb
|
690
928
|
- spec/rdfa_helper.rb
|
691
929
|
- spec/rdfa_parser_spec.rb
|
692
|
-
- spec/rdfxml_helper.rb
|
693
930
|
- spec/rdfxml_spec.rb
|
694
931
|
- spec/spec_helper.rb
|
695
932
|
- spec/sqlite3_store_spec.rb
|
696
933
|
- spec/store_helper.rb
|
697
934
|
- spec/string_hacks_spec.rb
|
935
|
+
- spec/swap_helper.rb
|
936
|
+
- spec/swap_spec.rb
|
698
937
|
- spec/triple_spec.rb
|
938
|
+
- spec/turtle_spec.rb
|
699
939
|
- spec/uriref_spec.rb
|
700
940
|
- test/longtests_spec.rb
|
701
|
-
- test/perf_test/test.rb
|