rdf-n3 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/.yardopts +10 -0
- data/AUTHORS +1 -0
- data/History.txt +2 -0
- data/README.rdoc +72 -0
- data/Rakefile +46 -0
- data/VERSION +1 -0
- data/example.rb +45 -0
- data/lib/rdf/n3.rb +30 -0
- data/lib/rdf/n3/format.rb +34 -0
- data/lib/rdf/n3/patches/array_hacks.rb +131 -0
- data/lib/rdf/n3/patches/rdf_escape.rb +131 -0
- data/lib/rdf/n3/reader.rb +447 -0
- data/lib/rdf/n3/reader/n3_grammar.rb +0 -0
- data/lib/rdf/n3/reader/n3_grammar.treetop +227 -0
- data/lib/rdf/n3/version.rb +21 -0
- data/lib/rdf/n3/vocabulary.rb +3 -0
- data/lib/rdf/n3/writer.rb +0 -0
- data/rdf-n3.gemspec +638 -0
- data/spec/cwm_spec.rb +32 -0
- data/spec/n3reader_spec.rb +928 -0
- data/spec/rdf_helper.rb +200 -0
- data/spec/rdfcore/Manifest.rdf +5395 -0
- data/spec/rdfcore/amp-in-url/test001.nt +16 -0
- data/spec/rdfcore/amp-in-url/test001.rdf +40 -0
- data/spec/rdfcore/datatypes-intensional/test001.nt +18 -0
- data/spec/rdfcore/datatypes-intensional/test002.nt +18 -0
- data/spec/rdfcore/datatypes/test001.nt +15 -0
- data/spec/rdfcore/datatypes/test001.rdf +29 -0
- data/spec/rdfcore/datatypes/test002.nt +14 -0
- data/spec/rdfcore/datatypes/test002.rdf +27 -0
- data/spec/rdfcore/datatypes/test002b.nt +17 -0
- data/spec/rdfcore/datatypes/test003a.nt +16 -0
- data/spec/rdfcore/datatypes/test003b.nt +16 -0
- data/spec/rdfcore/datatypes/test005a.nt +16 -0
- data/spec/rdfcore/datatypes/test005b.nt +16 -0
- data/spec/rdfcore/datatypes/test006.nt +17 -0
- data/spec/rdfcore/datatypes/test008a.nt +15 -0
- data/spec/rdfcore/datatypes/test008b.nt +15 -0
- data/spec/rdfcore/datatypes/test009a.nt +15 -0
- data/spec/rdfcore/datatypes/test009b.nt +15 -0
- data/spec/rdfcore/datatypes/test010.nt +17 -0
- data/spec/rdfcore/datatypes/test011a.nt +17 -0
- data/spec/rdfcore/datatypes/test011b.nt +17 -0
- data/spec/rdfcore/horst-01/test001.rdf +38 -0
- data/spec/rdfcore/horst-01/test002.rdf +39 -0
- data/spec/rdfcore/horst-01/test003.rdf +40 -0
- data/spec/rdfcore/horst-01/test004.rdf +42 -0
- data/spec/rdfcore/pfps-10/test001a.nt +14 -0
- data/spec/rdfcore/pfps-10/test001b.nt +15 -0
- data/spec/rdfcore/rdf-charmod-literals/test001.nt +15 -0
- data/spec/rdfcore/rdf-charmod-literals/test001.rdf +34 -0
- data/spec/rdfcore/rdf-charmod-uris/test001.nt +14 -0
- data/spec/rdfcore/rdf-charmod-uris/test001.rdf +34 -0
- data/spec/rdfcore/rdf-charmod-uris/test002.nt +15 -0
- data/spec/rdfcore/rdf-charmod-uris/test002.rdf +33 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/error001.rdf +27 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/error002.rdf +34 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test001.nt +17 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test001.rdf +27 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test002.nt +19 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test002.rdf +37 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test003.nt +18 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test003.rdf +29 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test004.nt +29 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test004.rdf +33 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test006.nt +40 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test006.rdf +28 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test007.nt +20 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test007.rdf +32 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test008.nt +15 -0
- data/spec/rdfcore/rdf-containers-syntax-vs-schema/test008.rdf +28 -0
- data/spec/rdfcore/rdf-element-not-mandatory/test001.nt +10 -0
- data/spec/rdfcore/rdf-element-not-mandatory/test001.rdf +14 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0001.nt +14 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0001.rdf +35 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0003.nt +14 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0003.rdf +35 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0004.nt +14 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0004.rdf +34 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0005.nt +15 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0005.rdf +40 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0006.nt +14 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0006.rdf +32 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0009.nt +14 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0009.rdf +32 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0010.nt +14 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0010.rdf +38 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0011.nt +15 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0011.rdf +40 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0012.nt +15 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0012.rdf +40 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0013.nt +15 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0013.rdf +40 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0014.nt +15 -0
- data/spec/rdfcore/rdf-ns-prefix-confusion/test0014.rdf +42 -0
- data/spec/rdfcore/rdfms-abouteach/error001.rdf +35 -0
- data/spec/rdfcore/rdfms-abouteach/error002.rdf +35 -0
- data/spec/rdfcore/rdfms-difference-between-ID-and-about/error1.rdf +25 -0
- data/spec/rdfcore/rdfms-difference-between-ID-and-about/test1.nt +14 -0
- data/spec/rdfcore/rdfms-difference-between-ID-and-about/test1.rdf +22 -0
- data/spec/rdfcore/rdfms-difference-between-ID-and-about/test2.nt +14 -0
- data/spec/rdfcore/rdfms-difference-between-ID-and-about/test2.rdf +22 -0
- data/spec/rdfcore/rdfms-difference-between-ID-and-about/test3.nt +14 -0
- data/spec/rdfcore/rdfms-difference-between-ID-and-about/test3.rdf +22 -0
- data/spec/rdfcore/rdfms-duplicate-member-props/test001.nt +17 -0
- data/spec/rdfcore/rdfms-duplicate-member-props/test001.rdf +30 -0
- data/spec/rdfcore/rdfms-empty-property-elements/error001.rdf +33 -0
- data/spec/rdfcore/rdfms-empty-property-elements/error002.rdf +33 -0
- data/spec/rdfcore/rdfms-empty-property-elements/error003.rdf +39 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test001.nt +14 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test001.rdf +33 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test002.nt +14 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test002.rdf +31 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test003.nt +14 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test003.rdf +32 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test004.nt +14 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test004.rdf +32 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test005.nt +18 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test005.rdf +32 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test006.nt +18 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test006.rdf +32 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test007.nt +14 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test007.rdf +32 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test008.nt +14 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test008.rdf +31 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test009.nt +14 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test009.rdf +32 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test010.nt +14 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test010.rdf +31 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test011.nt +18 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test011.rdf +30 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test012.nt +18 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test012.rdf +30 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test013.nt +15 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test013.rdf +35 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test014.nt +15 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test014.rdf +34 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test015.nt +15 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test015.rdf +38 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test016.nt +14 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test016.rdf +31 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test017.nt +14 -0
- data/spec/rdfcore/rdfms-empty-property-elements/test017.rdf +38 -0
- data/spec/rdfcore/rdfms-identity-anon-resources/test001.nt +14 -0
- data/spec/rdfcore/rdfms-identity-anon-resources/test001.rdf +33 -0
- data/spec/rdfcore/rdfms-identity-anon-resources/test002.nt +15 -0
- data/spec/rdfcore/rdfms-identity-anon-resources/test002.rdf +33 -0
- data/spec/rdfcore/rdfms-identity-anon-resources/test003.nt +14 -0
- data/spec/rdfcore/rdfms-identity-anon-resources/test003.rdf +31 -0
- data/spec/rdfcore/rdfms-identity-anon-resources/test004.nt +15 -0
- data/spec/rdfcore/rdfms-identity-anon-resources/test004.rdf +33 -0
- data/spec/rdfcore/rdfms-identity-anon-resources/test005.nt +14 -0
- data/spec/rdfcore/rdfms-identity-anon-resources/test005.rdf +31 -0
- data/spec/rdfcore/rdfms-not-id-and-resource-attr/test001.nt +19 -0
- data/spec/rdfcore/rdfms-not-id-and-resource-attr/test001.rdf +29 -0
- data/spec/rdfcore/rdfms-not-id-and-resource-attr/test002.nt +15 -0
- data/spec/rdfcore/rdfms-not-id-and-resource-attr/test002.rdf +29 -0
- data/spec/rdfcore/rdfms-not-id-and-resource-attr/test004.nt +18 -0
- data/spec/rdfcore/rdfms-not-id-and-resource-attr/test004.rdf +29 -0
- data/spec/rdfcore/rdfms-not-id-and-resource-attr/test005.nt +19 -0
- data/spec/rdfcore/rdfms-not-id-and-resource-attr/test005.rdf +29 -0
- data/spec/rdfcore/rdfms-para196/test001.nt +17 -0
- data/spec/rdfcore/rdfms-para196/test001.rdf +35 -0
- data/spec/rdfcore/rdfms-rdf-id/error001.rdf +26 -0
- data/spec/rdfcore/rdfms-rdf-id/error002.rdf +26 -0
- data/spec/rdfcore/rdfms-rdf-id/error003.rdf +29 -0
- data/spec/rdfcore/rdfms-rdf-id/error004.rdf +27 -0
- data/spec/rdfcore/rdfms-rdf-id/error005.rdf +31 -0
- data/spec/rdfcore/rdfms-rdf-id/error006.rdf +26 -0
- data/spec/rdfcore/rdfms-rdf-id/error007.rdf +29 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-001.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-002.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-003.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-004.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-005.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-006.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-007.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-008.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-009.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-010.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-011.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-012.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-013.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-014.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-015.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-016.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-017.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-018.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-019.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/error-020.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-001.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-001.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-002.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-002.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-003.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-003.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-004.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-004.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-005.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-005.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-006.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-006.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-007.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-007.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-008.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-008.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-009.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-009.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-010.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-010.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-011.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-011.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-012.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-012.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-013.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-013.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-014.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-014.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-015.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-015.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-016.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-016.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-017.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-017.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-018.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-018.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-019.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-019.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-020.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-020.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-021.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-021.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-022.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-022.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-023.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-023.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-024.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-024.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-025.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-025.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-026.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-026.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-027.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-027.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-028.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-028.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-029.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-029.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-030.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-030.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-031.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-031.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-032.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-032.rdf +24 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-033.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-033.rdf +24 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-034.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-034.rdf +24 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-035.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-035.rdf +24 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-036.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-036.rdf +24 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-037.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/test-037.rdf +24 -0
- data/spec/rdfcore/rdfms-rdf-names-use/warn-001.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/warn-001.rdf +23 -0
- data/spec/rdfcore/rdfms-rdf-names-use/warn-002.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/warn-002.rdf +25 -0
- data/spec/rdfcore/rdfms-rdf-names-use/warn-003.nt +1 -0
- data/spec/rdfcore/rdfms-rdf-names-use/warn-003.rdf +24 -0
- data/spec/rdfcore/rdfms-reification-required/test001.nt +15 -0
- data/spec/rdfcore/rdfms-reification-required/test001.rdf +29 -0
- data/spec/rdfcore/rdfms-seq-representation/empty.nt +13 -0
- data/spec/rdfcore/rdfms-seq-representation/test001.nt +19 -0
- data/spec/rdfcore/rdfms-seq-representation/test001.rdf +33 -0
- data/spec/rdfcore/rdfms-seq-representation/test002.nt +14 -0
- data/spec/rdfcore/rdfms-seq-representation/test003a.nt +14 -0
- data/spec/rdfcore/rdfms-seq-representation/test003b.nt +14 -0
- data/spec/rdfcore/rdfms-seq-representation/test004.nt +14 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/error001.rdf +26 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/error002.rdf +26 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/error003.rdf +29 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/error004.rdf +25 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/error005.rdf +25 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/error006.rdf +28 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/test001.nt +14 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/test001.rdf +28 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/test002.nt +19 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/test002.rdf +38 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/test003.nt +17 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/test003.rdf +28 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/test004.nt +21 -0
- data/spec/rdfcore/rdfms-syntax-incomplete/test004.rdf +36 -0
- data/spec/rdfcore/rdfms-uri-substructure/error001.nt +18 -0
- data/spec/rdfcore/rdfms-uri-substructure/test001.nt +17 -0
- data/spec/rdfcore/rdfms-uri-substructure/test001.rdf +29 -0
- data/spec/rdfcore/rdfms-xml-literal-namespaces/test001.nt +13 -0
- data/spec/rdfcore/rdfms-xml-literal-namespaces/test001.rdf +33 -0
- data/spec/rdfcore/rdfms-xml-literal-namespaces/test002.nt +14 -0
- data/spec/rdfcore/rdfms-xml-literal-namespaces/test002.rdf +47 -0
- data/spec/rdfcore/rdfms-xmllang/test001.nt +14 -0
- data/spec/rdfcore/rdfms-xmllang/test001.rdf +30 -0
- data/spec/rdfcore/rdfms-xmllang/test002.nt +14 -0
- data/spec/rdfcore/rdfms-xmllang/test002.rdf +29 -0
- data/spec/rdfcore/rdfms-xmllang/test003.nt +14 -0
- data/spec/rdfcore/rdfms-xmllang/test003.rdf +28 -0
- data/spec/rdfcore/rdfms-xmllang/test004.nt +14 -0
- data/spec/rdfcore/rdfms-xmllang/test004.rdf +28 -0
- data/spec/rdfcore/rdfms-xmllang/test005.nt +14 -0
- data/spec/rdfcore/rdfms-xmllang/test005.rdf +28 -0
- data/spec/rdfcore/rdfms-xmllang/test006.nt +14 -0
- data/spec/rdfcore/rdfms-xmllang/test006.rdf +29 -0
- data/spec/rdfcore/rdfms-xmllang/test007a.nt +14 -0
- data/spec/rdfcore/rdfms-xmllang/test007b.nt +14 -0
- data/spec/rdfcore/rdfms-xmllang/test007c.nt +14 -0
- data/spec/rdfcore/rdfs-container-membership-superProperty/not1C.rdf +13 -0
- data/spec/rdfcore/rdfs-container-membership-superProperty/not1P.rdf +14 -0
- data/spec/rdfcore/rdfs-domain-and-range/nonconclusions005.rdf +28 -0
- data/spec/rdfcore/rdfs-domain-and-range/nonconclusions006.rdf +28 -0
- data/spec/rdfcore/rdfs-domain-and-range/premises005.rdf +32 -0
- data/spec/rdfcore/rdfs-domain-and-range/premises006.rdf +32 -0
- data/spec/rdfcore/rdfs-domain-and-range/test001.nt +16 -0
- data/spec/rdfcore/rdfs-domain-and-range/test001.rdf +29 -0
- data/spec/rdfcore/rdfs-domain-and-range/test002.nt +16 -0
- data/spec/rdfcore/rdfs-domain-and-range/test002.rdf +29 -0
- data/spec/rdfcore/rdfs-entailment/test001.nt +16 -0
- data/spec/rdfcore/rdfs-entailment/test002.nt +15 -0
- data/spec/rdfcore/rdfs-no-cycles-in-subClassOf/test001.nt +18 -0
- data/spec/rdfcore/rdfs-no-cycles-in-subClassOf/test001.rdf +37 -0
- data/spec/rdfcore/rdfs-no-cycles-in-subPropertyOf/test001.nt +18 -0
- data/spec/rdfcore/rdfs-no-cycles-in-subPropertyOf/test001.rdf +40 -0
- data/spec/rdfcore/rdfs-subClassOf-a-Property/test001.nt +15 -0
- data/spec/rdfcore/rdfs-subPropertyOf-semantics/test001.nt +24 -0
- data/spec/rdfcore/rdfs-subPropertyOf-semantics/test002.nt +21 -0
- data/spec/rdfcore/statement-entailment/test001a.nt +12 -0
- data/spec/rdfcore/statement-entailment/test001b.nt +2 -0
- data/spec/rdfcore/statement-entailment/test002a.nt +2 -0
- data/spec/rdfcore/statement-entailment/test002b.nt +5 -0
- data/spec/rdfcore/tex-01/test001.rdf +34 -0
- data/spec/rdfcore/tex-01/test002.rdf +33 -0
- data/spec/rdfcore/unrecognised-xml-attributes/test001.nt +15 -0
- data/spec/rdfcore/unrecognised-xml-attributes/test001.rdf +31 -0
- data/spec/rdfcore/unrecognised-xml-attributes/test002.nt +14 -0
- data/spec/rdfcore/unrecognised-xml-attributes/test002.rdf +32 -0
- data/spec/rdfcore/xml-canon/test001.nt +16 -0
- data/spec/rdfcore/xml-canon/test001.rdf +28 -0
- data/spec/rdfcore/xmlbase/test001.nt +14 -0
- data/spec/rdfcore/xmlbase/test001.rdf +27 -0
- data/spec/rdfcore/xmlbase/test002.nt +14 -0
- data/spec/rdfcore/xmlbase/test002.rdf +28 -0
- data/spec/rdfcore/xmlbase/test003.nt +14 -0
- data/spec/rdfcore/xmlbase/test003.rdf +25 -0
- data/spec/rdfcore/xmlbase/test004.nt +18 -0
- data/spec/rdfcore/xmlbase/test004.rdf +27 -0
- data/spec/rdfcore/xmlbase/test006.nt +15 -0
- data/spec/rdfcore/xmlbase/test006.rdf +26 -0
- data/spec/rdfcore/xmlbase/test007.nt +14 -0
- data/spec/rdfcore/xmlbase/test007.rdf +25 -0
- data/spec/rdfcore/xmlbase/test008.nt +14 -0
- data/spec/rdfcore/xmlbase/test008.rdf +25 -0
- data/spec/rdfcore/xmlbase/test009.nt +14 -0
- data/spec/rdfcore/xmlbase/test009.rdf +26 -0
- data/spec/rdfcore/xmlbase/test010.nt +14 -0
- data/spec/rdfcore/xmlbase/test010.rdf +26 -0
- data/spec/rdfcore/xmlbase/test011.nt +14 -0
- data/spec/rdfcore/xmlbase/test011.rdf +27 -0
- data/spec/rdfcore/xmlbase/test013.nt +15 -0
- data/spec/rdfcore/xmlbase/test013.rdf +28 -0
- data/spec/rdfcore/xmlbase/test014.nt +15 -0
- data/spec/rdfcore/xmlbase/test014.rdf +28 -0
- data/spec/rdfcore/xmlsch-02/test001.rdf +34 -0
- data/spec/rdfcore/xmlsch-02/test002.rdf +34 -0
- data/spec/rdfcore/xmlsch-02/test003.rdf +37 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +11 -0
- data/spec/swap_helper.rb +136 -0
- data/spec/swap_spec.rb +77 -0
- data/spec/swap_test/.DS_Store +0 -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/.DS_Store +0 -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 +236 -0
- 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_serializer_spec.rb +226 -0
- data/spec/turtle_spec.rb +64 -0
- metadata +711 -0
@@ -0,0 +1,6 @@
|
|
1
|
+
|
2
|
+
<http://www.w3.org/TR/rdf-syntax-grammar> <http://example.org/stuff/1.0/editor> [
|
3
|
+
<http://example.org/stuff/1.0/fullName> "Dave Beckett";
|
4
|
+
<http://example.org/stuff/1.0/homePage> <http://purl.org/net/dajobe/> ];
|
5
|
+
<http://purl.org/dc/elements/1.1/title> "RDF/XML Syntax Specification (Revised)" .
|
6
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
<rdf:RDF xmlns="http://example.org/stuff/1.0/"
|
5
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
6
|
+
xmlns:ex="http://example.org/stuff/1.0/"
|
7
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
8
|
+
|
9
|
+
<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar">
|
10
|
+
<editor rdf:parseType="Resource">
|
11
|
+
<fullName>Dave Beckett</fullName>
|
12
|
+
<homePage rdf:resource="http://purl.org/net/dajobe/"/>
|
13
|
+
</editor>
|
14
|
+
<dc:title>RDF/XML Syntax Specification (Revised)</dc:title>
|
15
|
+
</rdf:Description>
|
16
|
+
</rdf:RDF>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@prefix : <http://www.w3.org/2000/01/rdf-schema#> .
|
2
|
+
@prefix CIM: <http://iec.ch/TC57/2003/CIM-schema-cim10#> .
|
3
|
+
@prefix cims: <http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#> .
|
4
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
5
|
+
|
6
|
+
<http://iec.ch/TC57/2003/CIM-schema-cim10#AirCompressor.DrivenBy_C%20ombustionTurbine> a rdf:Property;
|
7
|
+
cims:inverseRoleName <http://iec.ch/TC57/2003/CIM-schema-cim10#CombustionTurbine.Dri%20ves_AirCompressor>;
|
8
|
+
cims:multiplicity <http://iec.ch/TC57/1999/rdf-schema-extensions-19990926#M:1>;
|
9
|
+
cims:profile "Nerc";
|
10
|
+
:comment """A CAES air compressor is driven by combustion
|
11
|
+
turbine""";
|
12
|
+
:domain CIM:AirCompressor;
|
13
|
+
:label "DrivenBy_CombustionTurbine"@en;
|
14
|
+
:range CIM:CombustionTurbine .
|
15
|
+
|
@@ -0,0 +1,103 @@
|
|
1
|
+
@prefix : <http://www.w3.org/2002/07/owl#> .
|
2
|
+
@prefix ex: <#> .
|
3
|
+
|
4
|
+
<> a :Ontology;
|
5
|
+
:comment "An example ontology";
|
6
|
+
:imports <http://www.daml.org/2000/10/daml-ont>;
|
7
|
+
:versionInfo "" .
|
8
|
+
|
9
|
+
ex:Adam a :Person;
|
10
|
+
:comment "Adam is a person.";
|
11
|
+
:label "Adam" .
|
12
|
+
|
13
|
+
ex:Animal a :Class;
|
14
|
+
:comment """This class of animals is illustrative of a number of
|
15
|
+
ontological idioms.""";
|
16
|
+
:label "Animal" .
|
17
|
+
|
18
|
+
ex:Car a :Class;
|
19
|
+
:comment "no car is a person";
|
20
|
+
:subClassOf [
|
21
|
+
a :Class;
|
22
|
+
:complementOf ex:Person ] .
|
23
|
+
|
24
|
+
ex:Female a :Class;
|
25
|
+
:disjointFrom ex:Male;
|
26
|
+
:subClassOf ex:Animal .
|
27
|
+
|
28
|
+
ex:Height a :Class;
|
29
|
+
:oneOf (
|
30
|
+
ex:short
|
31
|
+
ex:medium
|
32
|
+
ex:tall ) .
|
33
|
+
|
34
|
+
ex:Male a :Class;
|
35
|
+
:subClassOf ex:Animal .
|
36
|
+
|
37
|
+
ex:Man a :Class;
|
38
|
+
:subClassOf ex:Male,
|
39
|
+
ex:Person .
|
40
|
+
|
41
|
+
ex:Person a :Class;
|
42
|
+
:comment "every person is a man or a woman";
|
43
|
+
:disjointUnionOf (
|
44
|
+
ex:Man
|
45
|
+
ex:Woman );
|
46
|
+
:restrictedBy [
|
47
|
+
a :Restriction;
|
48
|
+
:onProperty ex:parent;
|
49
|
+
:toClass ex:Person ];
|
50
|
+
:subClassOf ex:Animal .
|
51
|
+
|
52
|
+
ex:TallMan a :Class;
|
53
|
+
:intersectionOf (
|
54
|
+
ex:TallThing
|
55
|
+
ex:Man ) .
|
56
|
+
|
57
|
+
ex:TallThing a :Class;
|
58
|
+
:restrictedBy [
|
59
|
+
a :Restriction;
|
60
|
+
:onProperty ex:height;
|
61
|
+
:toValue ex:tall ] .
|
62
|
+
|
63
|
+
ex:Woman a :Class;
|
64
|
+
:subClassOf ex:Female,
|
65
|
+
ex:Person .
|
66
|
+
|
67
|
+
ex:ancestor a :TransitiveProperty;
|
68
|
+
:label "ancestor" .
|
69
|
+
|
70
|
+
ex:child a :Property;
|
71
|
+
:inverseOf ex:parent .
|
72
|
+
|
73
|
+
ex:descendant a :TransitiveProperty .
|
74
|
+
|
75
|
+
ex:father a :Property;
|
76
|
+
:cardinality "1";
|
77
|
+
:range ex:Man;
|
78
|
+
:subProperty ex:parent .
|
79
|
+
|
80
|
+
ex:height a :Property;
|
81
|
+
:domain ex:Person;
|
82
|
+
:range ex:Height .
|
83
|
+
|
84
|
+
ex:medium a :Height .
|
85
|
+
|
86
|
+
ex:mom a :Property;
|
87
|
+
= ex:mother .
|
88
|
+
|
89
|
+
ex:mother a :UniqueProperty;
|
90
|
+
:range ex:Woman;
|
91
|
+
:subProperty ex:parent .
|
92
|
+
|
93
|
+
ex:occupation a :Property;
|
94
|
+
:maxCardinality "1" .
|
95
|
+
|
96
|
+
ex:parent a :Property;
|
97
|
+
:cardinality "2";
|
98
|
+
:domain ex:Animal .
|
99
|
+
|
100
|
+
ex:short a :Height .
|
101
|
+
|
102
|
+
ex:tall a :Height .
|
103
|
+
|
@@ -0,0 +1,289 @@
|
|
1
|
+
@prefix : <http://www.daml.org/2001/03/daml-ont#> .
|
2
|
+
@prefix dam: <daml-ont.rdf#> .
|
3
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
4
|
+
@prefix s: <http://www.w3.org/2000/01/rdf-schema#> .
|
5
|
+
|
6
|
+
<daml-ont.rdf> a :Ontology;
|
7
|
+
:imports <http://www.w3.org/2000/01/rdf-schema>;
|
8
|
+
:versionInfo "" .
|
9
|
+
|
10
|
+
dam:Class a :Class;
|
11
|
+
:sameClassAs s:Class .
|
12
|
+
|
13
|
+
dam:Disjoint a :Class;
|
14
|
+
:comment """for type(L, Disjoint) read: the classes in L are
|
15
|
+
pairwise disjoint.
|
16
|
+
|
17
|
+
i.e. if type(L, Disjoint), and C1 in L and C2 in L, then disjointWith(C1, C2).
|
18
|
+
""";
|
19
|
+
:label "Disjoint";
|
20
|
+
:subClassOf dam:List .
|
21
|
+
|
22
|
+
dam:Empty a :Class;
|
23
|
+
:asClass dam:Nothing .
|
24
|
+
|
25
|
+
dam:List a :Class;
|
26
|
+
:subClassOf rdf:Seq .
|
27
|
+
|
28
|
+
dam:Literal a :Class;
|
29
|
+
:sameClassAs s:Literal .
|
30
|
+
|
31
|
+
dam:Nothing a :Class;
|
32
|
+
:comment "the class with no things in it.";
|
33
|
+
:complementOf dam:Thing .
|
34
|
+
|
35
|
+
dam:Ontology a :Class;
|
36
|
+
:comment """An Ontology is a document that describes
|
37
|
+
a vocabulary of terms for communication between
|
38
|
+
(human and) automated agents.
|
39
|
+
""";
|
40
|
+
:label "Ontology" .
|
41
|
+
|
42
|
+
dam:Property a :Class;
|
43
|
+
:sameClassAs rdf:Property .
|
44
|
+
|
45
|
+
dam:Qualification a :Class .
|
46
|
+
|
47
|
+
dam:Restriction a :Class .
|
48
|
+
|
49
|
+
dam:Thing a :Class;
|
50
|
+
:comment "The most general class in DAML.";
|
51
|
+
:label "Thing" .
|
52
|
+
|
53
|
+
dam:TransitiveProperty a :Class .
|
54
|
+
|
55
|
+
dam:UnambiguousProperty a :Class;
|
56
|
+
:comment """if P is an UnambiguousProperty, then
|
57
|
+
if P(x, y) and P(z, y) then x=z.
|
58
|
+
aka injective.
|
59
|
+
e.g. if nameOfMonth(m, "Feb")
|
60
|
+
and nameOfMonth(n, "Feb") then m and n are the same month.
|
61
|
+
""";
|
62
|
+
:label "UnambiguousProperty"@en;
|
63
|
+
:subClassOf dam:Property .
|
64
|
+
|
65
|
+
dam:UniqueProperty a :Class;
|
66
|
+
:comment """compare with maxCardinality=1; e.g. integer successor:
|
67
|
+
if P is a UniqueProperty, then
|
68
|
+
if P(x, y) and P(x, z) then y=z.
|
69
|
+
aka functional.
|
70
|
+
""";
|
71
|
+
:label "UniqueProperty";
|
72
|
+
:subClassOf dam:Property .
|
73
|
+
|
74
|
+
dam:cardinality a :Property;
|
75
|
+
:comment """for cardinality(P, N) read: P has cardinality N; i.e.
|
76
|
+
everything x in the domain of P has N things y such that P(x, y).
|
77
|
+
""";
|
78
|
+
:domain dam:Property;
|
79
|
+
:label "cardinality" .
|
80
|
+
|
81
|
+
dam:comment a :Property;
|
82
|
+
:samePropertyAs s:comment .
|
83
|
+
|
84
|
+
dam:complementOf a :Property;
|
85
|
+
:comment """
|
86
|
+
for complementOf(X, Y) read: X is the complement of Y; if something is in Y,
|
87
|
+
then it's not in X, and vice versa.
|
88
|
+
cf OIL NOT""";
|
89
|
+
:domain dam:Class;
|
90
|
+
:range dam:Class .
|
91
|
+
|
92
|
+
dam:default a :Property;
|
93
|
+
:comment """default(X, Y) suggests that Y be considered a/the default
|
94
|
+
value for the X property. This can be considered
|
95
|
+
documentation (ala label, comment) but we don't specify
|
96
|
+
any logical impact.
|
97
|
+
""";
|
98
|
+
:label "default" .
|
99
|
+
|
100
|
+
dam:disjointUnionOf a :Property;
|
101
|
+
:comment """
|
102
|
+
|
103
|
+
for disjointUnionOf(X, Y) read: X is the disjoint union of the classes in
|
104
|
+
the list Y: (a) for any c1 and c2 in Y, disjointWith(c1, c2),
|
105
|
+
and (b) i.e. if something is in any of the classes in Y, it's
|
106
|
+
in X, and vice versa.
|
107
|
+
|
108
|
+
cf OIL disjoint-covered
|
109
|
+
""";
|
110
|
+
:domain dam:Class;
|
111
|
+
:label "disjointUnionOf";
|
112
|
+
:range dam:List .
|
113
|
+
|
114
|
+
dam:disjointWith a :Property;
|
115
|
+
:comment """for disjointWith(X, Y) read: X and Y have no members
|
116
|
+
in common.
|
117
|
+
""";
|
118
|
+
:domain dam:Class;
|
119
|
+
:label "disjointWith";
|
120
|
+
:range dam:Class .
|
121
|
+
|
122
|
+
dam:domain a :Property;
|
123
|
+
:samePropertyAs s:domain .
|
124
|
+
|
125
|
+
dam:equivalentTo a :Property;
|
126
|
+
:comment """for equivalentTo(X, Y), read X is an equivalent term to Y.
|
127
|
+
""" .
|
128
|
+
|
129
|
+
dam:first a :Property;
|
130
|
+
:domain dam:List .
|
131
|
+
|
132
|
+
dam:hasValue a :Property;
|
133
|
+
:comment """for hasValue(Q, C), read: Q is a hasValue
|
134
|
+
qualification to C.""";
|
135
|
+
:domain dam:Qualification;
|
136
|
+
:label "hasValue";
|
137
|
+
:range dam:Class .
|
138
|
+
|
139
|
+
dam:imports a :Property;
|
140
|
+
:comment """for imports(X, Y) read: X imports Y;
|
141
|
+
i.e. X asserts the* contents of Y by reference;
|
142
|
+
i.e. if imports(X, Y) and you believe X and Y says something,
|
143
|
+
then you should believe it.
|
144
|
+
|
145
|
+
Note: "the contents" is, in the general case,
|
146
|
+
an il-formed definite description. Different
|
147
|
+
interactions with a resource may expose contents
|
148
|
+
that vary with time, data format, preferred language,
|
149
|
+
requestor credentials, etc. So for "the contents",
|
150
|
+
read "any contents".
|
151
|
+
""";
|
152
|
+
:label "imports" .
|
153
|
+
|
154
|
+
dam:intersectionOf a :Property;
|
155
|
+
:comment """
|
156
|
+
for intersectionOf(X, Y) read: X is the intersection of the classes in the list Y;
|
157
|
+
i.e. if something is in all the classes in Y, then it's in X, and vice versa.
|
158
|
+
cf OIL AND""";
|
159
|
+
:domain dam:Class;
|
160
|
+
:range dam:List .
|
161
|
+
|
162
|
+
dam:inverseOf a :Property;
|
163
|
+
:comment """for inverseOf(R, S) read: R is the inverse of S; i.e.
|
164
|
+
if R(x, y) then S(y, x) and vice versa.""";
|
165
|
+
:domain dam:Property;
|
166
|
+
:range dam:Property .
|
167
|
+
|
168
|
+
dam:isDefinedBy a :Property;
|
169
|
+
:samePropertyAs s:isDefinedBy;
|
170
|
+
:subPropertyOf dam:seeAlso .
|
171
|
+
|
172
|
+
dam:item a :Property;
|
173
|
+
:comment """for item(L, I) read: I is an item in L; either first(L, I)
|
174
|
+
or item(R, I) where rest(L, R).""";
|
175
|
+
:domain dam:List .
|
176
|
+
|
177
|
+
dam:label a :Property;
|
178
|
+
:samePropertyAs s:label .
|
179
|
+
|
180
|
+
dam:maxCardinality a :Property;
|
181
|
+
:comment """for maxCardinality(P, N) read: P has maximum cardinality N; i.e.
|
182
|
+
everything x in the domain of P has at most N things y such that P(x, y).
|
183
|
+
""";
|
184
|
+
:domain dam:Property;
|
185
|
+
:label "maxCardinality" .
|
186
|
+
|
187
|
+
dam:minCardinality a :Property;
|
188
|
+
:comment """for minCardinality(P, N) read: P has minimum cardinality N; i.e.
|
189
|
+
everything x in the domain of P has at least N things y such that P(x, y).
|
190
|
+
""";
|
191
|
+
:domain dam:Property .
|
192
|
+
|
193
|
+
dam:onProperty a :Property;
|
194
|
+
:comment """for onProperty(R, P), read:
|
195
|
+
R is a restriction/qualification on P.""";
|
196
|
+
:domain dam:Qualification,
|
197
|
+
dam:Restriction;
|
198
|
+
:range dam:Property .
|
199
|
+
|
200
|
+
dam:oneOf a :Property;
|
201
|
+
:comment """for oneOf(C, L) read everything in C is one of the
|
202
|
+
things in L;
|
203
|
+
This lets us define classes by enumerating the members.
|
204
|
+
""";
|
205
|
+
:domain dam:Class;
|
206
|
+
:range dam:List .
|
207
|
+
|
208
|
+
dam:qualifiedBy a :Property;
|
209
|
+
:comment """for qualifiedBy(C, Q), read: C is qualified by Q; i.e. the
|
210
|
+
qualification Q applies to C;
|
211
|
+
|
212
|
+
if onProperty(Q, P) and hasValue(Q, C2)
|
213
|
+
then for every i in C, there is some V
|
214
|
+
so that type(V, C2) and P(i, V).
|
215
|
+
""";
|
216
|
+
:domain dam:Class;
|
217
|
+
:label "qualifiedBy";
|
218
|
+
:range dam:Qualification .
|
219
|
+
|
220
|
+
dam:range a :Property;
|
221
|
+
:samePropertyAs s:range .
|
222
|
+
|
223
|
+
dam:rest a :Property;
|
224
|
+
:domain dam:List;
|
225
|
+
:range dam:List .
|
226
|
+
|
227
|
+
dam:restrictedBy a :Property;
|
228
|
+
:comment """for restrictedBy(C, R), read: C is restricted by R; i.e. the
|
229
|
+
restriction R applies to c;
|
230
|
+
|
231
|
+
if onProperty(R, P) and toValue(R, V)
|
232
|
+
then for every i in C, we have P(i, V).
|
233
|
+
|
234
|
+
if onProperty(R, P) and toClass(R, C2)
|
235
|
+
then for every i in C and for all j, if P(i, j) then type(j, C2).
|
236
|
+
""";
|
237
|
+
:domain dam:Class;
|
238
|
+
:label "restrictedBy";
|
239
|
+
:range dam:Restriction .
|
240
|
+
|
241
|
+
dam:sameClassAs a :Property;
|
242
|
+
:subPropertyOf dam:equivalentTo,
|
243
|
+
dam:subClassOf .
|
244
|
+
|
245
|
+
dam:samePropertyAs a :Property;
|
246
|
+
:subPropertyOf dam:equivalentTo,
|
247
|
+
dam:subPropertyOf .
|
248
|
+
|
249
|
+
dam:seeAlso a :Property;
|
250
|
+
:samePropertyAs s:seeAlso .
|
251
|
+
|
252
|
+
dam:subClassOf a :Property;
|
253
|
+
:samePropertyAs s:subClassOf .
|
254
|
+
|
255
|
+
dam:subPropertyOf a :Property;
|
256
|
+
:samePropertyAs s:subPropertyOf;
|
257
|
+
:subPropertyOf s:subPropertyOf .
|
258
|
+
|
259
|
+
dam:toClass a :Property;
|
260
|
+
:comment "for toClass(R, C), read: R is a restriction to C.";
|
261
|
+
:domain dam:Restriction;
|
262
|
+
:range dam:Class .
|
263
|
+
|
264
|
+
dam:toValue a :Property;
|
265
|
+
:comment "for toValue(R, V), read: R is a restriction to V.";
|
266
|
+
:domain dam:Restriction;
|
267
|
+
:range dam:Class .
|
268
|
+
|
269
|
+
dam:type a :Property;
|
270
|
+
:samePropertyAs rdf:type .
|
271
|
+
|
272
|
+
dam:unionOf a :Property;
|
273
|
+
:comment """
|
274
|
+
for unionOf(X, Y) read: X is the union of the classes in the list Y;
|
275
|
+
i.e. if something is in any of the classes in Y, it's in X, and vice versa.
|
276
|
+
cf OIL OR""";
|
277
|
+
:domain dam:Class;
|
278
|
+
:label "unionOf";
|
279
|
+
:range dam:List .
|
280
|
+
|
281
|
+
dam:value a :Property;
|
282
|
+
:samePropertyAs rdf:value .
|
283
|
+
|
284
|
+
dam:versionInfo a :Property;
|
285
|
+
:comment """generally, a string giving information about this
|
286
|
+
version; e.g. RCS/CVS keywords
|
287
|
+
""";
|
288
|
+
:label "versionInfo" .
|
289
|
+
|