├── .codeclimate.yml
├── .gitignore
├── .travis.yml
├── LICENSE
├── README.md
├── bower.json
├── browse.sh
├── dist
├── rdfstore.js
└── rdfstore_min.js
├── doc
├── files.html
├── index.html
└── symbols
│ ├── Store.Store.html
│ ├── Store.html
│ ├── _global_.html
│ └── src
│ ├── Projects_js_rdfstore-js_src_js-store_src_store.js.html
│ └── src_js-store_src_store.js.html
├── frontend
├── css
│ ├── demo.css
│ ├── images
│ │ ├── back_down.png
│ │ ├── back_up.png
│ │ ├── background.png
│ │ ├── download.png
│ │ ├── download_down.png
│ │ ├── download_orig.png
│ │ ├── download_up.png
│ │ ├── edit.png
│ │ ├── graph_selected_bg.png
│ │ ├── header_bg.png
│ │ ├── menu_background.png
│ │ ├── next.png
│ │ ├── next_down.png
│ │ ├── next_page.png
│ │ ├── next_page_down.png
│ │ ├── next_up.png
│ │ ├── not_edit.png
│ │ ├── play_up.png
│ │ ├── prev.png
│ │ ├── prev_page.png
│ │ ├── prev_page_down.png
│ │ ├── select_graph.png
│ │ ├── window.png
│ │ └── window_orig.png
│ ├── rdfstore_frontend.css
│ └── ui-lightness
│ │ ├── images
│ │ ├── ui-bg_diagonals-thick_18_b81900_40x40.png
│ │ ├── ui-bg_diagonals-thick_20_666666_40x40.png
│ │ ├── ui-bg_flat_10_000000_40x100.png
│ │ ├── ui-bg_glass_100_f6f6f6_1x400.png
│ │ ├── ui-bg_glass_100_fdf5ce_1x400.png
│ │ ├── ui-bg_glass_65_ffffff_1x400.png
│ │ ├── ui-bg_gloss-wave_35_f6a828_500x100.png
│ │ ├── ui-bg_highlight-soft_100_eeeeee_1x100.png
│ │ ├── ui-bg_highlight-soft_75_ffe45c_1x100.png
│ │ ├── ui-icons_222222_256x240.png
│ │ ├── ui-icons_228ef1_256x240.png
│ │ ├── ui-icons_ef8c08_256x240.png
│ │ ├── ui-icons_ffd27a_256x240.png
│ │ └── ui-icons_ffffff_256x240.png
│ │ └── jquery-ui-1.8.14.custom.css
├── icons
│ ├── rdfstore.icns
│ └── rdfstore.ico
├── index.html
├── js
│ ├── jquery-ui.min.js
│ ├── knockout-1.2.1.js
│ ├── rdf_store.js
│ ├── rdf_store_min.js
│ ├── rdfquery.js
│ └── rdfstore_frontend.js
├── main.js
├── package.json
└── rdfstore.js
├── gulpfile.js
├── lubm
└── browser
│ ├── converted_data.json
│ ├── data.json
│ ├── index.html
│ ├── nodeunit.css
│ ├── nodeunit.js
│ ├── nodeunit.min.js
│ ├── rdfstore.js
│ ├── rdfstore_min.js
│ ├── server.js
│ ├── store.js
│ └── updater.js
├── package.json
├── pegjs
└── sparql_query.grammar
├── spec
├── abstract_query_tree_spec.js
├── browser
│ ├── index.html
│ ├── index_bower.html
│ ├── nodeunit.css
│ ├── nodeunit.js
│ ├── nodeunit.min.js
│ ├── rdfstore.js
│ └── store.js
├── btree_spec.js
├── data
│ ├── sp2b_10k.n3
│ └── with_comments.n3
├── jsonld_parser_spec.js
├── lexicon_spec.js
├── persistent_lexicon_spec.js
├── persistent_quad_backend_spec.js
├── quad_backend_spec.js
├── quad_index_spec.js
├── query_engine_spec.js
├── query_filter_spec.js
├── query_plan_spec.js
├── rdf_model_spec.js
├── rvn3_parser_spec.js
├── store_spec.js
├── support
│ └── jasmine.json
├── utils_spec.js
├── w3c
│ ├── add
│ │ ├── add-01-post.ttl
│ │ ├── add-01-pre.ttl
│ │ ├── add-01.ru
│ │ ├── add-02-post.ttl
│ │ ├── add-02-pre.ttl
│ │ ├── add-03-post.ttl
│ │ ├── add-03-pre.ttl
│ │ ├── add-03.ru
│ │ ├── add-05.ru
│ │ ├── add-06.ru
│ │ ├── add-07.ru
│ │ ├── add-08.ru
│ │ ├── add-default.ttl
│ │ └── manifest.ttl
│ ├── aggregates
│ │ ├── agg-avg-01.rq
│ │ ├── agg-avg-01.srx
│ │ ├── agg-avg-02.rq
│ │ ├── agg-avg-02.srx
│ │ ├── agg-empty-group.rq
│ │ ├── agg-empty-group.srx
│ │ ├── agg-err-01.rq
│ │ ├── agg-err-01.srx
│ │ ├── agg-err-01.ttl
│ │ ├── agg-err-02.rq
│ │ ├── agg-err-02.srx
│ │ ├── agg-err-02.ttl
│ │ ├── agg-groupconcat-1.rq
│ │ ├── agg-groupconcat-1.srx
│ │ ├── agg-groupconcat-1.ttl
│ │ ├── agg-groupconcat-2.rq
│ │ ├── agg-groupconcat-2.srx
│ │ ├── agg-groupconcat-3.rq
│ │ ├── agg-groupconcat-3.srx
│ │ ├── agg-max-01.rq
│ │ ├── agg-max-01.srx
│ │ ├── agg-max-02.rq
│ │ ├── agg-max-02.srx
│ │ ├── agg-min-01.rq
│ │ ├── agg-min-01.srx
│ │ ├── agg-min-02.rq
│ │ ├── agg-min-02.srx
│ │ ├── agg-numeric.ttl
│ │ ├── agg-numeric2.ttl
│ │ ├── agg-sample-01.rq
│ │ ├── agg-sample-01.srx
│ │ ├── agg-sum-01.rq
│ │ ├── agg-sum-01.srx
│ │ ├── agg-sum-02.rq
│ │ ├── agg-sum-02.srx
│ │ ├── agg01.rq
│ │ ├── agg01.srx
│ │ ├── agg01.ttl
│ │ ├── agg02.rq
│ │ ├── agg02.srx
│ │ ├── agg03.rq
│ │ ├── agg03.srx
│ │ ├── agg04.rq
│ │ ├── agg04.srx
│ │ ├── agg05.rq
│ │ ├── agg05.srx
│ │ ├── agg06.rq
│ │ ├── agg06.srx
│ │ ├── agg07.rq
│ │ ├── agg07.srx
│ │ ├── agg08.rq
│ │ ├── agg08.ttl
│ │ ├── agg08b.rq
│ │ ├── agg08b.srx
│ │ ├── agg09.rq
│ │ ├── agg10.rq
│ │ ├── agg11.rq
│ │ ├── agg12.rq
│ │ ├── empty.ttl
│ │ └── manifest.ttl
│ ├── basic-update
│ │ ├── empty.ttl
│ │ ├── insert-01-post.ttl
│ │ ├── insert-01-pre.ttl
│ │ ├── insert-01.ru
│ │ ├── insert-02-g1-post.ttl
│ │ ├── insert-02-post.ttl
│ │ ├── insert-02-pre.ttl
│ │ ├── insert-02.ru
│ │ ├── insert-03-g1-post.ttl
│ │ ├── insert-03-g1-pre.ttl
│ │ ├── insert-03-post.ttl
│ │ ├── insert-03-pre.ttl
│ │ ├── insert-03.ru
│ │ ├── insert-04-g1-post.ttl
│ │ ├── insert-04-g1-pre.ttl
│ │ ├── insert-04-post.ttl
│ │ ├── insert-04-pre.ttl
│ │ ├── insert-04.ru
│ │ ├── insert-05-g1-pre.ttl
│ │ ├── insert-05.ru
│ │ ├── insert-05a-g1-pre.ttl
│ │ ├── insert-05a-g3-post.ttl
│ │ ├── insert-05a.ru
│ │ ├── insert-data-named1.ru
│ │ ├── insert-data-named2.ru
│ │ ├── insert-data-same-bnode.ru
│ │ ├── insert-data-spo1.ru
│ │ ├── insert-using-01-g1-post.ttl
│ │ ├── insert-using-01-g1-pre.ttl
│ │ ├── insert-using-01-g2-post.ttl
│ │ ├── insert-using-01-g2-pre.ttl
│ │ ├── insert-using-01-post.ttl
│ │ ├── insert-using-01-pre.ttl
│ │ ├── insert-using-01.ru
│ │ ├── insert-where-same-bnode-g3-post.ttl
│ │ ├── insert-where-same-bnode-pre.ttl
│ │ ├── insert-where-same-bnode.ru
│ │ ├── insert-where-same-bnode2.ru
│ │ ├── manifest.ttl
│ │ ├── spo.ttl
│ │ └── spo2.ttl
│ ├── bind
│ │ ├── bind01.rq
│ │ ├── bind01.srx
│ │ ├── bind02.rq
│ │ ├── bind02.srx
│ │ ├── bind03.rq
│ │ ├── bind03.srx
│ │ ├── bind04.rq
│ │ ├── bind04.srx
│ │ ├── bind05.rq
│ │ ├── bind05.srx
│ │ ├── bind06.rq
│ │ ├── bind06.srx
│ │ ├── bind07.rq
│ │ ├── bind07.srx
│ │ ├── bind08.rq
│ │ ├── bind08.srx
│ │ ├── bind10.rq
│ │ ├── bind10.srx
│ │ ├── bind11.rq
│ │ ├── bind11.srx
│ │ ├── data.ttl
│ │ └── manifest.ttl
│ ├── bindings
│ │ ├── bindings01.rq
│ │ ├── bindings01.srx
│ │ ├── bindings02.rq
│ │ ├── bindings02.srx
│ │ ├── bindings03.rq
│ │ ├── bindings03.srx
│ │ ├── bindings04.rq
│ │ ├── bindings04.srx
│ │ ├── bindings05.rq
│ │ ├── bindings05.srx
│ │ ├── bindings06.rq
│ │ ├── bindings06.srx
│ │ ├── bindings07.rq
│ │ ├── bindings07.srx
│ │ ├── bindings08.rq
│ │ ├── bindings08.srx
│ │ ├── data01.ttl
│ │ ├── data02.ttl
│ │ ├── data03.ttl
│ │ ├── data04.ttl
│ │ ├── data05.ttl
│ │ ├── data06.ttl
│ │ ├── data07.ttl
│ │ ├── data08.ttl
│ │ ├── inline01.rq
│ │ ├── inline01.srx
│ │ ├── inline02.rq
│ │ ├── inline02.srx
│ │ ├── manifest.ttl
│ │ ├── values01.rq
│ │ ├── values01.srx
│ │ ├── values02.rq
│ │ ├── values02.srx
│ │ ├── values03.rq
│ │ ├── values03.srx
│ │ ├── values04.rq
│ │ ├── values04.srx
│ │ ├── values05.rq
│ │ ├── values05.srx
│ │ ├── values06.rq
│ │ ├── values06.srx
│ │ ├── values07.rq
│ │ ├── values07.srx
│ │ ├── values08.rq
│ │ └── values08.srx
│ ├── clear
│ │ ├── clear-all-01.ru
│ │ ├── clear-default-01.ru
│ │ ├── clear-default.ttl
│ │ ├── clear-g1.ttl
│ │ ├── clear-g2.ttl
│ │ ├── clear-graph-01.ru
│ │ ├── clear-named-01.ru
│ │ ├── empty.ttl
│ │ └── manifest.ttl
│ ├── construct
│ │ ├── constructwhere01.rq
│ │ ├── constructwhere01result.ttl
│ │ ├── constructwhere02.rq
│ │ ├── constructwhere02result.ttl
│ │ ├── constructwhere03.rq
│ │ ├── constructwhere03result.ttl
│ │ ├── constructwhere04.rq
│ │ ├── constructwhere04result.ttl
│ │ ├── constructwhere05.rq
│ │ ├── constructwhere06.rq
│ │ ├── data.ttl
│ │ └── manifest.ttl
│ ├── copy
│ │ ├── copy-01.ru
│ │ ├── copy-01.ttl
│ │ ├── copy-02.ttl
│ │ ├── copy-03.ru
│ │ ├── copy-06.ru
│ │ ├── copy-07.ru
│ │ ├── copy-default.ttl
│ │ └── manifest.ttl
│ ├── csv-tsv-res
│ │ ├── csvtsv01.csv
│ │ ├── csvtsv01.rq
│ │ ├── csvtsv01.tsv
│ │ ├── csvtsv02.csv
│ │ ├── csvtsv02.rq
│ │ ├── csvtsv02.tsv
│ │ ├── csvtsv03.csv
│ │ ├── csvtsv03.tsv
│ │ ├── data.ttl
│ │ ├── data2.ttl
│ │ └── manifest.ttl
│ ├── delete-data
│ │ ├── delete-data-01.ru
│ │ ├── delete-data-02.ru
│ │ ├── delete-data-03.ru
│ │ ├── delete-data-04.ru
│ │ ├── delete-data-05.ru
│ │ ├── delete-data-06.ru
│ │ ├── delete-post-01f.ttl
│ │ ├── delete-post-01s.ttl
│ │ ├── delete-post-02f.ttl
│ │ ├── delete-post-02s.ttl
│ │ ├── delete-post-03f.ttl
│ │ ├── delete-pre-01.ttl
│ │ ├── delete-pre-02.ttl
│ │ ├── delete-pre-03.ttl
│ │ └── manifest.ttl
│ ├── delete-insert
│ │ ├── delete-insert-01.ru
│ │ ├── delete-insert-01b.ru
│ │ ├── delete-insert-01c.ru
│ │ ├── delete-insert-02.ru
│ │ ├── delete-insert-03.ru
│ │ ├── delete-insert-03b.ru
│ │ ├── delete-insert-04.ru
│ │ ├── delete-insert-04b.ru
│ │ ├── delete-insert-05.ru
│ │ ├── delete-insert-05b.ru
│ │ ├── delete-insert-07.ru
│ │ ├── delete-insert-07b.ru
│ │ ├── delete-insert-08.ru
│ │ ├── delete-insert-09.ru
│ │ ├── delete-insert-post-01.ttl
│ │ ├── delete-insert-post-01b.ttl
│ │ ├── delete-insert-post-02.ttl
│ │ ├── delete-insert-post-05.ttl
│ │ ├── delete-insert-post-07.ttl
│ │ ├── delete-insert-post-07b.ttl
│ │ ├── delete-insert-post-08.ttl
│ │ ├── delete-insert-post-09.ttl
│ │ ├── delete-insert-pre-01.ttl
│ │ ├── delete-insert-pre-06.ttl
│ │ ├── delete-insert-pre-08.ttl
│ │ ├── delete-insert-pre-09.ttl
│ │ └── manifest.ttl
│ ├── delete-where
│ │ ├── delete-post-01f.ttl
│ │ ├── delete-post-01s.ttl
│ │ ├── delete-post-02f.ttl
│ │ ├── delete-post-02s.ttl
│ │ ├── delete-post-03f.ttl
│ │ ├── delete-pre-01.ttl
│ │ ├── delete-pre-02.ttl
│ │ ├── delete-pre-03.ttl
│ │ ├── delete-where-01.ru
│ │ ├── delete-where-02.ru
│ │ ├── delete-where-03.ru
│ │ ├── delete-where-04.ru
│ │ ├── delete-where-05.ru
│ │ ├── delete-where-06.ru
│ │ └── manifest.ttl
│ ├── delete
│ │ ├── delete-01.ru
│ │ ├── delete-02.ru
│ │ ├── delete-03.ru
│ │ ├── delete-04.ru
│ │ ├── delete-05.ru
│ │ ├── delete-06.ru
│ │ ├── delete-07.ru
│ │ ├── delete-post-01f.ttl
│ │ ├── delete-post-01s.ttl
│ │ ├── delete-post-01s2.ttl
│ │ ├── delete-post-02f.ttl
│ │ ├── delete-post-02s.ttl
│ │ ├── delete-post-03f.ttl
│ │ ├── delete-pre-01.ttl
│ │ ├── delete-pre-02.ttl
│ │ ├── delete-pre-03.ttl
│ │ ├── delete-using-01.ru
│ │ ├── delete-using-02.ru
│ │ ├── delete-using-03.ru
│ │ ├── delete-using-04.ru
│ │ ├── delete-using-05.ru
│ │ ├── delete-using-06.ru
│ │ ├── delete-with-01.ru
│ │ ├── delete-with-02.ru
│ │ ├── delete-with-03.ru
│ │ ├── delete-with-04.ru
│ │ ├── delete-with-05.ru
│ │ ├── delete-with-06.ru
│ │ └── manifest.ttl
│ ├── drop
│ │ ├── drop-all-01.ru
│ │ ├── drop-default-01.ru
│ │ ├── drop-default.ttl
│ │ ├── drop-g1.ttl
│ │ ├── drop-g2.ttl
│ │ ├── drop-graph-01.ru
│ │ ├── drop-named-01.ru
│ │ └── manifest.ttl
│ ├── entailment
│ │ ├── bind-data.ttl
│ │ ├── bind01.rq
│ │ ├── bind01.srx
│ │ ├── bind02.rq
│ │ ├── bind02.srx
│ │ ├── bind03.rq
│ │ ├── bind03.srx
│ │ ├── bind04.rq
│ │ ├── bind04.srx
│ │ ├── bind05.rq
│ │ ├── bind05.srx
│ │ ├── bind06.rq
│ │ ├── bind06.srx
│ │ ├── bind07.rq
│ │ ├── bind07.srx
│ │ ├── bind08.rq
│ │ ├── bind08.srx
│ │ ├── d-ent-01.rq
│ │ ├── d-ent-01.srx
│ │ ├── d-ent-01.ttl
│ │ ├── data-01.ttl
│ │ ├── data-02.ttl
│ │ ├── data-03.ttl
│ │ ├── data-06.ttl
│ │ ├── data-07.ttl
│ │ ├── data-08.ttl
│ │ ├── data-11.ttl
│ │ ├── lang.rq
│ │ ├── lang.srx
│ │ ├── lang.ttl
│ │ ├── manifest.ttl
│ │ ├── owlds01.rq
│ │ ├── owlds01.srx
│ │ ├── owlds01.ttl
│ │ ├── owlds02.rq
│ │ ├── owlds02.srx
│ │ ├── owlds02.ttl
│ │ ├── paper-sparqldl-Q1-rdfs.srx
│ │ ├── paper-sparqldl-Q1.rq
│ │ ├── paper-sparqldl-Q1.srx
│ │ ├── paper-sparqldl-Q2.rq
│ │ ├── paper-sparqldl-Q2.srx
│ │ ├── paper-sparqldl-Q3.rq
│ │ ├── paper-sparqldl-Q3.srx
│ │ ├── paper-sparqldl-Q4.rq
│ │ ├── paper-sparqldl-Q4.srx
│ │ ├── paper-sparqldl-Q5.rq
│ │ ├── paper-sparqldl-Q5.srx
│ │ ├── paper-sparqldl-data.ttl
│ │ ├── parent.ttl
│ │ ├── parent10.rq
│ │ ├── parent10.srx
│ │ ├── parent2.rq
│ │ ├── parent2.srx
│ │ ├── parent3.rq
│ │ ├── parent3.srx
│ │ ├── parent4.rq
│ │ ├── parent4.srx
│ │ ├── parent5.rq
│ │ ├── parent5.srx
│ │ ├── parent6.rq
│ │ ├── parent6.srx
│ │ ├── parent7.rq
│ │ ├── parent7.srx
│ │ ├── parent8.rq
│ │ ├── parent8.srx
│ │ ├── parent9.rq
│ │ ├── parent9.srx
│ │ ├── plainLit.rq
│ │ ├── plainLit.srx
│ │ ├── plainLit.ttl
│ │ ├── rdf01.rq
│ │ ├── rdf01.srx
│ │ ├── rdf01.ttl
│ │ ├── rdf02.rq
│ │ ├── rdf02.srx
│ │ ├── rdf02.ttl
│ │ ├── rdf03.rq
│ │ ├── rdf03.srx
│ │ ├── rdf03.ttl
│ │ ├── rdf04.rq
│ │ ├── rdf04.srx
│ │ ├── rdf04.ttl
│ │ ├── rdfs01.rq
│ │ ├── rdfs01.srx
│ │ ├── rdfs01.ttl
│ │ ├── rdfs02.rq
│ │ ├── rdfs02.srx
│ │ ├── rdfs03.rq
│ │ ├── rdfs03.srx
│ │ ├── rdfs03.ttl
│ │ ├── rdfs04.rq
│ │ ├── rdfs04.srx
│ │ ├── rdfs04.ttl
│ │ ├── rdfs05.rq
│ │ ├── rdfs05.srx
│ │ ├── rdfs05.ttl
│ │ ├── rdfs06.rq
│ │ ├── rdfs06.srx
│ │ ├── rdfs06.ttl
│ │ ├── rdfs07.rq
│ │ ├── rdfs07.srx
│ │ ├── rdfs07.ttl
│ │ ├── rdfs08.rq
│ │ ├── rdfs08.srx
│ │ ├── rdfs08.ttl
│ │ ├── rdfs09.rq
│ │ ├── rdfs09.srx
│ │ ├── rdfs09.ttl
│ │ ├── rdfs10.rq
│ │ ├── rdfs10.srx
│ │ ├── rdfs10.ttl
│ │ ├── rdfs11.rq
│ │ ├── rdfs11.srx
│ │ ├── rdfs11.ttl
│ │ ├── rdfs12.rq
│ │ ├── rdfs12.srx
│ │ ├── rdfs12.ttl
│ │ ├── rdfs13.rq
│ │ ├── rdfs13.srx
│ │ ├── rdfs13.ttl
│ │ ├── simple.ttl
│ │ ├── simple1.rq
│ │ ├── simple1.srx
│ │ ├── simple2.rq
│ │ ├── simple2.srx
│ │ ├── simple3.rq
│ │ ├── simple3.srx
│ │ ├── simple4.rq
│ │ ├── simple4.srx
│ │ ├── simple5.rq
│ │ ├── simple5.srx
│ │ ├── simple6.rq
│ │ ├── simple6.srx
│ │ ├── simple7.rq
│ │ ├── simple7.srx
│ │ ├── simple8.rq
│ │ ├── simple8.srx
│ │ ├── sparqldl-01.rq
│ │ ├── sparqldl-01.srx
│ │ ├── sparqldl-02.rq
│ │ ├── sparqldl-02.srx
│ │ ├── sparqldl-03.rq
│ │ ├── sparqldl-03.srx
│ │ ├── sparqldl-04.rq
│ │ ├── sparqldl-04.srx
│ │ ├── sparqldl-05.rq
│ │ ├── sparqldl-05.srx
│ │ ├── sparqldl-06.rq
│ │ ├── sparqldl-06.srx
│ │ ├── sparqldl-07.rq
│ │ ├── sparqldl-07.srx
│ │ ├── sparqldl-08.rq
│ │ ├── sparqldl-08.srx
│ │ ├── sparqldl-09.rq
│ │ ├── sparqldl-09.srx
│ │ ├── sparqldl-10.rq
│ │ ├── sparqldl-10.srx
│ │ ├── sparqldl-11.rq
│ │ ├── sparqldl-11.srx
│ │ ├── sparqldl-12.rq
│ │ ├── sparqldl-12.srx
│ │ ├── sparqldl-13.rq
│ │ └── sparqldl-13.srx
│ ├── exists
│ │ ├── exists01.rq
│ │ ├── exists01.srx
│ │ ├── exists01.ttl
│ │ ├── exists02.rq
│ │ ├── exists02.srx
│ │ ├── exists02.ttl
│ │ ├── exists03.rq
│ │ ├── exists03.srx
│ │ ├── exists04.rq
│ │ ├── exists04.srx
│ │ ├── exists05.rq
│ │ ├── exists05.srx
│ │ └── manifest.ttl
│ ├── functions.ttl
│ ├── functions
│ │ ├── abs01.rq
│ │ ├── abs01.srx
│ │ ├── bnode01.rq
│ │ ├── bnode01.srx
│ │ ├── bnode02.rq
│ │ ├── bnode02.srx
│ │ ├── ceil01.rq
│ │ ├── ceil01.srx
│ │ ├── coalesce01.rq
│ │ ├── coalesce01.srx
│ │ ├── concat01.rq
│ │ ├── concat01.srx
│ │ ├── concat02.rq
│ │ ├── concat02.srx
│ │ ├── contains01.rq
│ │ ├── contains01.srx
│ │ ├── data-builtin-3.ttl
│ │ ├── data-coalesce.ttl
│ │ ├── data-empty.nt
│ │ ├── data.ttl
│ │ ├── data2.ttl
│ │ ├── data3.ttl
│ │ ├── data4.ttl
│ │ ├── day-01.rq
│ │ ├── day-01.srx
│ │ ├── encode01.rq
│ │ ├── encode01.srx
│ │ ├── ends01.rq
│ │ ├── ends01.srx
│ │ ├── floor01.rq
│ │ ├── floor01.srx
│ │ ├── hash-unicode.ttl
│ │ ├── hours-01.rq
│ │ ├── hours-01.srx
│ │ ├── if01.rq
│ │ ├── if01.srx
│ │ ├── if02.rq
│ │ ├── if02.srx
│ │ ├── in01.rq
│ │ ├── in01.srx
│ │ ├── in02.rq
│ │ ├── in02.srx
│ │ ├── iri01.rq
│ │ ├── iri01.srx
│ │ ├── isnumeric01.rq
│ │ ├── isnumeric01.srx
│ │ ├── lcase01.rq
│ │ ├── lcase01.srx
│ │ ├── length01.rq
│ │ ├── length01.srx
│ │ ├── manifest.ttl
│ │ ├── md5-01.rq
│ │ ├── md5-01.srx
│ │ ├── md5-02.rq
│ │ ├── md5-02.srx
│ │ ├── minutes-01.rq
│ │ ├── minutes-01.srx
│ │ ├── month-01.rq
│ │ ├── month-01.srx
│ │ ├── notin01.rq
│ │ ├── notin01.srx
│ │ ├── notin02.rq
│ │ ├── notin02.srx
│ │ ├── now01.rq
│ │ ├── now01.srx
│ │ ├── plus-1.rq
│ │ ├── plus-1.srx
│ │ ├── plus-2.rq
│ │ ├── plus-2.srx
│ │ ├── rand01.rq
│ │ ├── rand01.srx
│ │ ├── replace01.rq
│ │ ├── replace01.srx
│ │ ├── replace02.rq
│ │ ├── replace02.srx
│ │ ├── replace03.rq
│ │ ├── replace03.srx
│ │ ├── round01.rq
│ │ ├── round01.srx
│ │ ├── seconds-01.rq
│ │ ├── seconds-01.srx
│ │ ├── sha1-01.rq
│ │ ├── sha1-01.srx
│ │ ├── sha1-02.rq
│ │ ├── sha1-02.srx
│ │ ├── sha256-01.rq
│ │ ├── sha256-01.srx
│ │ ├── sha256-02.rq
│ │ ├── sha256-02.srx
│ │ ├── sha512-01.rq
│ │ ├── sha512-01.srx
│ │ ├── sha512-02.rq
│ │ ├── sha512-02.srx
│ │ ├── starts01.rq
│ │ ├── starts01.srx
│ │ ├── strafter01.rq
│ │ ├── strafter01.srx
│ │ ├── strafter01a.srx
│ │ ├── strafter02.rq
│ │ ├── strafter02.srx
│ │ ├── strbefore01.rq
│ │ ├── strbefore01.srx
│ │ ├── strbefore01a.srx
│ │ ├── strbefore02.rq
│ │ ├── strbefore02.srx
│ │ ├── strdt01.rq
│ │ ├── strdt01.srx
│ │ ├── strdt02.rq
│ │ ├── strdt02.srx
│ │ ├── strdt03.rq
│ │ ├── strdt03.srx
│ │ ├── strlang01.rq
│ │ ├── strlang01.srx
│ │ ├── strlang02.rq
│ │ ├── strlang02.srx
│ │ ├── strlang03.rq
│ │ ├── strlang03.srx
│ │ ├── struuid01.rq
│ │ ├── struuid01.srx
│ │ ├── substring01.rq
│ │ ├── substring01.srx
│ │ ├── substring02.rq
│ │ ├── substring02.srx
│ │ ├── timezone-01.rq
│ │ ├── timezone-01.srx
│ │ ├── tz-01.rq
│ │ ├── tz-01.srx
│ │ ├── ucase01.rq
│ │ ├── ucase01.srx
│ │ ├── uuid01.rq
│ │ ├── uuid01.srx
│ │ ├── year-01.rq
│ │ └── year-01.srx
│ ├── grouping
│ │ ├── group-data-1.ttl
│ │ ├── group-data-2.ttl
│ │ ├── group01.rq
│ │ ├── group01.srx
│ │ ├── group02.rq
│ │ ├── group02.srx
│ │ ├── group03.rq
│ │ ├── group03.srx
│ │ ├── group04.rq
│ │ ├── group04.srx
│ │ ├── group05.rq
│ │ ├── group05.srx
│ │ ├── group06.rq
│ │ ├── group07.rq
│ │ └── manifest.ttl
│ ├── http-rdf-update
│ │ ├── index.html
│ │ ├── tests.html
│ │ └── tests.txt
│ ├── json-res
│ │ ├── data.ttl
│ │ ├── jsonres01.rq
│ │ ├── jsonres01.srj
│ │ ├── jsonres02.rq
│ │ ├── jsonres02.srj
│ │ ├── jsonres03.rq
│ │ ├── jsonres03.srj
│ │ ├── jsonres04.rq
│ │ ├── jsonres04.srj
│ │ └── manifest.ttl
│ ├── manifest-all.ttl
│ ├── move
│ │ ├── manifest.ttl
│ │ ├── move-01.ru
│ │ ├── move-01.ttl
│ │ ├── move-02.ttl
│ │ ├── move-03.ru
│ │ ├── move-06.ru
│ │ ├── move-07.ru
│ │ └── move-default.ttl
│ ├── negation
│ │ ├── exists-01.rq
│ │ ├── exists-01.srx
│ │ ├── exists-02.rq
│ │ ├── exists-02.srx
│ │ ├── full-minuend.rq
│ │ ├── full-minuend.srx
│ │ ├── full-minuend.ttl
│ │ ├── manifest.ttl
│ │ ├── part-minuend.rq
│ │ ├── part-minuend.srx
│ │ ├── part-minuend.ttl
│ │ ├── set-data.ttl
│ │ ├── set-equals-1.rq
│ │ ├── set-equals-1.srx
│ │ ├── subset-01.rq
│ │ ├── subset-01.srx
│ │ ├── subset-02.rq
│ │ ├── subset-02.srx
│ │ ├── subset-03.rq
│ │ ├── subset-03.srx
│ │ ├── subsetByExcl.ttl
│ │ ├── subsetByExcl01.rq
│ │ ├── subsetByExcl01.srx
│ │ ├── subsetByExcl02.rq
│ │ ├── subsetByExcl02.srx
│ │ ├── temporalProximity01.rq
│ │ ├── temporalProximity01.srx
│ │ └── temporalProximity01.ttl
│ ├── project-expression
│ │ ├── manifest.ttl
│ │ ├── projexp01.rq
│ │ ├── projexp01.srx
│ │ ├── projexp01.ttl
│ │ ├── projexp02.rq
│ │ ├── projexp02.srx
│ │ ├── projexp02.ttl
│ │ ├── projexp03.rq
│ │ ├── projexp03.srx
│ │ ├── projexp03.ttl
│ │ ├── projexp04.rq
│ │ ├── projexp04.srx
│ │ ├── projexp04.ttl
│ │ ├── projexp05.rq
│ │ ├── projexp05.srx
│ │ ├── projexp05.ttl
│ │ ├── projexp06.rq
│ │ ├── projexp06.srx
│ │ ├── projexp06.ttl
│ │ ├── projexp07.rq
│ │ ├── projexp07.srx
│ │ └── projexp07.ttl
│ ├── property-path
│ │ ├── clique3.ttl
│ │ ├── data-diamond-loop.ttl
│ │ ├── data-diamond-tail.ttl
│ │ ├── data-diamond.ttl
│ │ ├── diamond-1.srx
│ │ ├── diamond-2.srx
│ │ ├── diamond-loop-1.srx
│ │ ├── diamond-loop-2.srx
│ │ ├── diamond-loop-3.srx
│ │ ├── diamond-loop-4.srx
│ │ ├── diamond-loop-5.srx
│ │ ├── diamond-loop-5a.srx
│ │ ├── diamond-loop-6.srx
│ │ ├── diamond-tail-1.srx
│ │ ├── diamond-tail-2.srx
│ │ ├── empty.ttl
│ │ ├── manifest.ttl
│ │ ├── ng-01.ttl
│ │ ├── ng-02.ttl
│ │ ├── ng-03.ttl
│ │ ├── path-2-1.rq
│ │ ├── path-2-2.rq
│ │ ├── path-2-3.rq
│ │ ├── path-3-1.rq
│ │ ├── path-3-2.rq
│ │ ├── path-3-3.rq
│ │ ├── path-3-4.rq
│ │ ├── path-ng-01.rq
│ │ ├── path-ng-01.srx
│ │ ├── path-ng-02.rq
│ │ ├── path-p1.rq
│ │ ├── path-p1.srx
│ │ ├── path-p1.ttl
│ │ ├── path-p2.rq
│ │ ├── path-p2.srx
│ │ ├── path-p3.rq
│ │ ├── path-p3.srx
│ │ ├── path-p3.ttl
│ │ ├── path-p4.rq
│ │ ├── path-p4.srx
│ │ ├── pp01.rq
│ │ ├── pp01.srx
│ │ ├── pp01.ttl
│ │ ├── pp02.rq
│ │ ├── pp02.srx
│ │ ├── pp03.rq
│ │ ├── pp03.srx
│ │ ├── pp03.ttl
│ │ ├── pp04.rq
│ │ ├── pp04.srx
│ │ ├── pp05.rq
│ │ ├── pp05.srx
│ │ ├── pp05.ttl
│ │ ├── pp06.rq
│ │ ├── pp06.srx
│ │ ├── pp061.ttl
│ │ ├── pp062.ttl
│ │ ├── pp07.srx
│ │ ├── pp07.ttl
│ │ ├── pp08.rq
│ │ ├── pp08.srx
│ │ ├── pp08.ttl
│ │ ├── pp09.rq
│ │ ├── pp09.srx
│ │ ├── pp09.ttl
│ │ ├── pp10.rq
│ │ ├── pp10.srx
│ │ ├── pp10.ttl
│ │ ├── pp11.rq
│ │ ├── pp11.srx
│ │ ├── pp11.ttl
│ │ ├── pp12.rq
│ │ ├── pp12.srx
│ │ ├── pp13.rq
│ │ ├── pp13.srx
│ │ ├── pp13.ttl
│ │ ├── pp14.rq
│ │ ├── pp14.srx
│ │ ├── pp14.ttl
│ │ ├── pp15.rq
│ │ ├── pp15.srx
│ │ ├── pp16.srx
│ │ ├── pp16.ttl
│ │ ├── pp36.rq
│ │ ├── pp36.srx
│ │ ├── pp37.rq
│ │ ├── pp37.srx
│ │ └── pp37.ttl
│ ├── protocol
│ │ └── manifest.ttl
│ ├── service-description
│ │ └── manifest.ttl
│ ├── service
│ │ ├── README
│ │ ├── data01.ttl
│ │ ├── data01endpoint.ttl
│ │ ├── data02endpoint1.ttl
│ │ ├── data02endpoint2.ttl
│ │ ├── data03endpoint1.ttl
│ │ ├── data03endpoint2.ttl
│ │ ├── data04.ttl
│ │ ├── data04endpoint.ttl
│ │ ├── data05.ttl
│ │ ├── data05endpoint1.ttl
│ │ ├── data05endpoint2.ttl
│ │ ├── data06endpoint1.ttl
│ │ ├── data07.ttl
│ │ ├── dataendpoint01.ttl
│ │ ├── manifest.ttl
│ │ ├── service01.rq
│ │ ├── service01.srx
│ │ ├── service02.rq
│ │ ├── service02.srx
│ │ ├── service03.rq
│ │ ├── service03.srx
│ │ ├── service04.rq
│ │ ├── service04.srx
│ │ ├── service04a.rq
│ │ ├── service05.rq
│ │ ├── service05.srx
│ │ ├── service06.rq
│ │ ├── service06.srx
│ │ ├── service07.rq
│ │ └── service07.srx
│ ├── subquery
│ │ ├── manifest.ttl
│ │ ├── sq01.rdf
│ │ ├── sq01.rq
│ │ ├── sq01.srx
│ │ ├── sq02.rq
│ │ ├── sq02.srx
│ │ ├── sq03.rq
│ │ ├── sq03.srx
│ │ ├── sq04.rdf
│ │ ├── sq04.rq
│ │ ├── sq04.srx
│ │ ├── sq05.rdf
│ │ ├── sq05.rq
│ │ ├── sq05.srx
│ │ ├── sq06.rq
│ │ ├── sq06.srx
│ │ ├── sq07.rq
│ │ ├── sq07.srx
│ │ ├── sq08.rdf
│ │ ├── sq08.rq
│ │ ├── sq08.srx
│ │ ├── sq09.rdf
│ │ ├── sq09.rq
│ │ ├── sq09.srx
│ │ ├── sq10.rdf
│ │ ├── sq10.rq
│ │ ├── sq10.srx
│ │ ├── sq11.rq
│ │ ├── sq11.srx
│ │ ├── sq11.ttl
│ │ ├── sq12.rq
│ │ ├── sq12.ttl
│ │ ├── sq12_out.ttl
│ │ ├── sq13.rq
│ │ ├── sq13.srx
│ │ ├── sq13.ttl
│ │ ├── sq14-out.ttl
│ │ ├── sq14.rq
│ │ └── sq14.ttl
│ ├── syntax-fed
│ │ ├── manifest.ttl
│ │ ├── syntax-service-01.rq
│ │ ├── syntax-service-02.rq
│ │ └── syntax-service-03.rq
│ ├── syntax-query
│ │ ├── manifest.ttl
│ │ ├── qname-escape-01.rq
│ │ ├── qname-escape-02.rq
│ │ ├── qname-escape-03.rq
│ │ ├── syn-bad-01.rq
│ │ ├── syn-bad-02.rq
│ │ ├── syn-bad-03.rq
│ │ ├── syn-bad-04.rq
│ │ ├── syn-bad-05.rq
│ │ ├── syn-bad-06.rq
│ │ ├── syn-bad-07.rq
│ │ ├── syn-bad-08.rq
│ │ ├── syn-bad-pname-01.rq
│ │ ├── syn-bad-pname-02.rq
│ │ ├── syn-bad-pname-03.rq
│ │ ├── syn-bad-pname-04.rq
│ │ ├── syn-bad-pname-05.rq
│ │ ├── syn-bad-pname-06.rq
│ │ ├── syn-bad-pname-07.rq
│ │ ├── syn-bad-pname-08.rq
│ │ ├── syn-bad-pname-09.rq
│ │ ├── syn-bad-pname-10.rq
│ │ ├── syn-bad-pname-11.rq
│ │ ├── syn-bad-pname-12.rq
│ │ ├── syn-bad-pname-13.rq
│ │ ├── syn-pname-01.rq
│ │ ├── syn-pname-02.rq
│ │ ├── syn-pname-03.rq
│ │ ├── syn-pname-04.rq
│ │ ├── syn-pname-05.rq
│ │ ├── syn-pname-06.rq
│ │ ├── syn-pname-07.rq
│ │ ├── syn-pname-08.rq
│ │ ├── syn-pname-09.rq
│ │ ├── syn-pp-in-collection.rq
│ │ ├── syntax-BINDscope1.rq
│ │ ├── syntax-BINDscope2.rq
│ │ ├── syntax-BINDscope3.rq
│ │ ├── syntax-BINDscope4.rq
│ │ ├── syntax-BINDscope5.rq
│ │ ├── syntax-BINDscope6.rq
│ │ ├── syntax-BINDscope7.rq
│ │ ├── syntax-BINDscope8.rq
│ │ ├── syntax-SELECTscope1.rq
│ │ ├── syntax-SELECTscope2.rq
│ │ ├── syntax-SELECTscope3.rq
│ │ ├── syntax-aggregate-01.rq
│ │ ├── syntax-aggregate-02.rq
│ │ ├── syntax-aggregate-03.rq
│ │ ├── syntax-aggregate-04.rq
│ │ ├── syntax-aggregate-05.rq
│ │ ├── syntax-aggregate-06.rq
│ │ ├── syntax-aggregate-07.rq
│ │ ├── syntax-aggregate-08.rq
│ │ ├── syntax-aggregate-09.rq
│ │ ├── syntax-aggregate-10.rq
│ │ ├── syntax-aggregate-11.rq
│ │ ├── syntax-aggregate-12.rq
│ │ ├── syntax-aggregate-13.rq
│ │ ├── syntax-aggregate-14.rq
│ │ ├── syntax-aggregate-15.rq
│ │ ├── syntax-bind-02.rq
│ │ ├── syntax-bindings-01.rq
│ │ ├── syntax-bindings-02.rq
│ │ ├── syntax-bindings-02a.rq
│ │ ├── syntax-bindings-03.rq
│ │ ├── syntax-bindings-03a.rq
│ │ ├── syntax-bindings-04.rq
│ │ ├── syntax-bindings-05.rq
│ │ ├── syntax-bindings-05a.rq
│ │ ├── syntax-bindings-09.rq
│ │ ├── syntax-construct-where-01.rq
│ │ ├── syntax-construct-where-02.rq
│ │ ├── syntax-exists-01.rq
│ │ ├── syntax-exists-02.rq
│ │ ├── syntax-exists-03.rq
│ │ ├── syntax-minus-01.rq
│ │ ├── syntax-not-exists-01.rq
│ │ ├── syntax-not-exists-02.rq
│ │ ├── syntax-not-exists-03.rq
│ │ ├── syntax-oneof-01.rq
│ │ ├── syntax-oneof-02.rq
│ │ ├── syntax-oneof-03.rq
│ │ ├── syntax-propertyPaths-01.rq
│ │ ├── syntax-select-expr-01.rq
│ │ ├── syntax-select-expr-02.rq
│ │ ├── syntax-select-expr-03.rq
│ │ ├── syntax-select-expr-04.rq
│ │ ├── syntax-select-expr-05.rq
│ │ ├── syntax-subquery-01.rq
│ │ ├── syntax-subquery-02.rq
│ │ └── syntax-subquery-03.rq
│ ├── syntax-update-1
│ │ ├── manifest.ttl
│ │ ├── syntax-update-01.ru
│ │ ├── syntax-update-02.ru
│ │ ├── syntax-update-03.ru
│ │ ├── syntax-update-04.ru
│ │ ├── syntax-update-05.ru
│ │ ├── syntax-update-06.ru
│ │ ├── syntax-update-07.ru
│ │ ├── syntax-update-08.ru
│ │ ├── syntax-update-09.ru
│ │ ├── syntax-update-10.ru
│ │ ├── syntax-update-11.ru
│ │ ├── syntax-update-12.ru
│ │ ├── syntax-update-13.ru
│ │ ├── syntax-update-14.ru
│ │ ├── syntax-update-15.ru
│ │ ├── syntax-update-16.ru
│ │ ├── syntax-update-17.ru
│ │ ├── syntax-update-18.ru
│ │ ├── syntax-update-19.ru
│ │ ├── syntax-update-20.ru
│ │ ├── syntax-update-21.ru
│ │ ├── syntax-update-22.ru
│ │ ├── syntax-update-23.ru
│ │ ├── syntax-update-24.ru
│ │ ├── syntax-update-25.ru
│ │ ├── syntax-update-26.ru
│ │ ├── syntax-update-27.ru
│ │ ├── syntax-update-28.ru
│ │ ├── syntax-update-29.ru
│ │ ├── syntax-update-30.ru
│ │ ├── syntax-update-31.ru
│ │ ├── syntax-update-32.ru
│ │ ├── syntax-update-33.ru
│ │ ├── syntax-update-34.ru
│ │ ├── syntax-update-35.ru
│ │ ├── syntax-update-36.ru
│ │ ├── syntax-update-37.ru
│ │ ├── syntax-update-38.ru
│ │ ├── syntax-update-39.ru
│ │ ├── syntax-update-40.ru
│ │ ├── syntax-update-53.ru
│ │ ├── syntax-update-54.ru
│ │ ├── syntax-update-bad-01.ru
│ │ ├── syntax-update-bad-02.ru
│ │ ├── syntax-update-bad-03.ru
│ │ ├── syntax-update-bad-04.ru
│ │ ├── syntax-update-bad-05.ru
│ │ ├── syntax-update-bad-06.ru
│ │ ├── syntax-update-bad-07.ru
│ │ ├── syntax-update-bad-08.ru
│ │ ├── syntax-update-bad-09.ru
│ │ ├── syntax-update-bad-10.ru
│ │ ├── syntax-update-bad-11.ru
│ │ └── syntax-update-bad-12.ru
│ ├── syntax-update-2
│ │ ├── large-request-01.ru
│ │ └── manifest.ttl
│ └── update-silent
│ │ ├── add-silent.ru
│ │ ├── add-to-default-silent.ru
│ │ ├── clear-default-silent.ru
│ │ ├── clear-silent.ru
│ │ ├── copy-silent.ru
│ │ ├── copy-to-default-silent.ru
│ │ ├── create-silent.ru
│ │ ├── drop-default-silent.ru
│ │ ├── drop-silent.ru
│ │ ├── load-silent-into.ru
│ │ ├── load-silent.ru
│ │ ├── manifest.ttl
│ │ ├── move-silent.ru
│ │ ├── move-to-default-silent.ru
│ │ └── spo.ttl
├── w3c_spec.js
└── w3c_suite_helper.js
└── src
├── abstract_query_tree.js
├── btree.js
├── graph_callbacks.js
├── jsonld_parser.js
├── lexicon.js
├── network_transport.js
├── parser.js
├── perftest
├── btree_hash.js
├── lexicon_hash.js
└── trees.js
├── persistent_lexicon.js
├── persistent_quad_backend.js
├── quad_backend.js
├── quad_index.js
├── query_engine.js
├── query_filters.js
├── query_plan.js
├── rdf_loader.js
├── rdf_model.js
├── rvn3_parser.js
├── store.js
└── utils.js
/.codeclimate.yml:
--------------------------------------------------------------------------------
1 | languages:
2 | JavaScript: true
3 | exclude_paths:
4 | - dist/*
5 | - spec/*
6 | - pegjs/*
7 | - frontend/*
8 | - src/perftest/*
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | build
2 | node_modules
3 | .idea
4 | .DS_Store
5 | release
6 | cache
7 | *~
8 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "6.0.0"
4 | env:
5 | - CXX=g++-4.8
6 | addons:
7 | apt:
8 | sources:
9 | - ubuntu-toolchain-r-test
10 | packages:
11 | - g++-4.8
12 | before_script:
13 | - npm install -g gulp
14 | - npm install
15 | script: gulp specs
16 | sudo: false
17 |
--------------------------------------------------------------------------------
/browse.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo "** CLEANING..."
4 | rm -f dist/*
5 |
6 | echo "** BUILDING..."
7 | gulp browserify
8 | gulp minimize
9 |
10 | echo "** COPYING..."
11 | mv dist/rdfstore.js spec/browser/rdf_store.js
12 | mv dist/rdfstore_min.js spec/browser/rdf_store_min.js
13 |
14 | open spec/browser/index.html
15 | echo "** DONE!"
16 |
--------------------------------------------------------------------------------
/frontend/css/images/back_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/back_down.png
--------------------------------------------------------------------------------
/frontend/css/images/back_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/back_up.png
--------------------------------------------------------------------------------
/frontend/css/images/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/background.png
--------------------------------------------------------------------------------
/frontend/css/images/download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/download.png
--------------------------------------------------------------------------------
/frontend/css/images/download_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/download_down.png
--------------------------------------------------------------------------------
/frontend/css/images/download_orig.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/download_orig.png
--------------------------------------------------------------------------------
/frontend/css/images/download_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/download_up.png
--------------------------------------------------------------------------------
/frontend/css/images/edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/edit.png
--------------------------------------------------------------------------------
/frontend/css/images/graph_selected_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/graph_selected_bg.png
--------------------------------------------------------------------------------
/frontend/css/images/header_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/header_bg.png
--------------------------------------------------------------------------------
/frontend/css/images/menu_background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/menu_background.png
--------------------------------------------------------------------------------
/frontend/css/images/next.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/next.png
--------------------------------------------------------------------------------
/frontend/css/images/next_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/next_down.png
--------------------------------------------------------------------------------
/frontend/css/images/next_page.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/next_page.png
--------------------------------------------------------------------------------
/frontend/css/images/next_page_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/next_page_down.png
--------------------------------------------------------------------------------
/frontend/css/images/next_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/next_up.png
--------------------------------------------------------------------------------
/frontend/css/images/not_edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/not_edit.png
--------------------------------------------------------------------------------
/frontend/css/images/play_up.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/play_up.png
--------------------------------------------------------------------------------
/frontend/css/images/prev.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/prev.png
--------------------------------------------------------------------------------
/frontend/css/images/prev_page.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/prev_page.png
--------------------------------------------------------------------------------
/frontend/css/images/prev_page_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/prev_page_down.png
--------------------------------------------------------------------------------
/frontend/css/images/select_graph.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/select_graph.png
--------------------------------------------------------------------------------
/frontend/css/images/window.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/window.png
--------------------------------------------------------------------------------
/frontend/css/images/window_orig.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/images/window_orig.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-icons_222222_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-icons_222222_256x240.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-icons_228ef1_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-icons_228ef1_256x240.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-icons_ef8c08_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-icons_ffd27a_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
--------------------------------------------------------------------------------
/frontend/css/ui-lightness/images/ui-icons_ffffff_256x240.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/css/ui-lightness/images/ui-icons_ffffff_256x240.png
--------------------------------------------------------------------------------
/frontend/icons/rdfstore.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/icons/rdfstore.icns
--------------------------------------------------------------------------------
/frontend/icons/rdfstore.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/frontend/icons/rdfstore.ico
--------------------------------------------------------------------------------
/frontend/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "electron-rdfstore-js",
3 | "version" : "0.1.0",
4 | "main" : "main.js"
5 | }
6 |
--------------------------------------------------------------------------------
/spec/support/jasmine.json:
--------------------------------------------------------------------------------
1 | {
2 | "spec_dir": "spec",
3 | "spec_files": [
4 | "**/*[sS]pec.js"
5 | ],
6 | "helpers": [
7 | "helpers/**/*.js"
8 | ],
9 | "stopSpecOnExpectationFailure": false,
10 | "random": false
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/add/add-01-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :john a foaf:Person .
5 | :john foaf:givenName "John" .
6 | :john foaf:mbox .
--------------------------------------------------------------------------------
/spec/w3c/add/add-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | ADD DEFAULT TO :g1
--------------------------------------------------------------------------------
/spec/w3c/add/add-02-post.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :john a foaf:Person .
5 | :john foaf:givenName "John" .
6 | :john foaf:mbox .
7 |
8 | :sue a foaf:Person .
9 | :sue foaf:givenName "Susan" .
10 | :sue foaf:mbox .
--------------------------------------------------------------------------------
/spec/w3c/add/add-02-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :sue a foaf:Person .
5 | :sue foaf:givenName "Susan" .
6 | :sue foaf:mbox .
--------------------------------------------------------------------------------
/spec/w3c/add/add-03-post.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :john a foaf:Person .
5 | :john foaf:givenName "John" .
6 | :john foaf:mbox .
7 | :john foaf:knows :sue .
--------------------------------------------------------------------------------
/spec/w3c/add/add-03-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :john foaf:givenName "John" .
5 | :john foaf:mbox .
6 | :john foaf:knows :sue .
--------------------------------------------------------------------------------
/spec/w3c/add/add-03.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | ADD :g1 TO :g2
--------------------------------------------------------------------------------
/spec/w3c/add/add-05.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | ADD :g1 TO :g3
--------------------------------------------------------------------------------
/spec/w3c/add/add-06.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | ADD SILENT :g4 TO :g1
--------------------------------------------------------------------------------
/spec/w3c/add/add-07.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | ADD :g1 TO DEFAULT
--------------------------------------------------------------------------------
/spec/w3c/add/add-08.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | ADD :g1 TO :g1
--------------------------------------------------------------------------------
/spec/w3c/add/add-default.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :william a foaf:Person .
5 | :william foaf:givenName "William" .
6 | :william foaf:mbox .
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-avg-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (AVG(?o) AS ?avg)
3 | WHERE {
4 | ?s :dec ?o
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-avg-02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (AVG(?o) AS ?avg)
3 | WHERE {
4 | ?s ?p ?o
5 | }
6 | GROUP BY ?s
7 | HAVING (AVG(?o) <= 2.0)
8 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-empty-group.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | SELECT ?x (MAX(?value) AS ?max)
3 | WHERE {
4 | ?x ex:p ?value
5 | } GROUP BY ?x
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-empty-group.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-err-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?g (AVG(?p) AS ?avg) ((MIN(?p) + MAX(?p)) / 2 AS ?c)
3 | WHERE {
4 | ?g :p ?p .
5 | }
6 | GROUP BY ?g
7 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-err-01.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :x :p 1, 2, 3, 4 .
4 | :y :p 1, _:b2, 3, 4 .
5 | :z :p 1.0, 2.0, 3.0, 4 .
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-err-02.rq:
--------------------------------------------------------------------------------
1 | PREFIX xsd:
2 | PREFIX :
3 | SELECT ?g
4 | (AVG(IF(isNumeric(?p), ?p, COALESCE(xsd:double(?p),0))) AS ?avg)
5 | WHERE {
6 | ?g :p ?p .
7 | }
8 | GROUP BY ?g
9 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-err-02.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :x :p 1, "2", 3, 4 .
4 | :y :p 1, _:b2, 3, 4 .
5 | :z :p 2.5E0, "not a double" , 3.5, 4 .
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-groupconcat-1.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | ASK {
3 | {SELECT (GROUP_CONCAT(?o) AS ?g) WHERE {
4 | [] :p1 ?o
5 | }}
6 | FILTER(?g = "1 22" || ?g = "22 1")
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-groupconcat-1.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-groupconcat-1.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s :p1 "1", "22" .
4 | :s :p2 "aaa", "bb", "c" .
5 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-groupconcat-3.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | ASK {
3 | {SELECT (GROUP_CONCAT(?o;SEPARATOR=":") AS ?g) WHERE {
4 | [] :p1 ?o
5 | }}
6 | FILTER(?g = "1:22" || ?g = "22:1")
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-groupconcat-3.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-max-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (MAX(?o) AS ?max)
3 | WHERE {
4 | ?s ?p ?o
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-max-02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (MAX(?o) AS ?max)
3 | WHERE {
4 | ?s ?p ?o
5 | }
6 | GROUP BY ?s
7 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-min-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (MIN(?o) AS ?min)
3 | WHERE {
4 | ?s :dec ?o
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-min-02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (MIN(?o) AS ?min)
3 | WHERE {
4 | ?s ?p ?o
5 | }
6 | GROUP BY ?s
7 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-numeric.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix xsd: .
3 |
4 | :ints :int 1, 2, 3 .
5 | :decimals :dec 1.0, 2.2, 3.5 .
6 | :doubles :double 1.0E2, 2.0E3, 3.0E4 .
7 | :mixed1 :int 1 ; :dec 2.2 .
8 | :mixed2 :double 2E-1 ; :dec 2.2 .
9 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-numeric2.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix xsd: .
3 |
4 | :ints :int 1, 2, 3 .
5 | :decimals :dec 1.0, 2.2, 3.5 .
6 | :doubles :double 1.0E2, 2.0E3, 3.0E4 .
7 | :mixed1 :int 1 ; :dec 2.2 .
8 | :mixed2 :double 2E-1 ; :dec 0.2 .
9 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-sample-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | ASK {
3 | {
4 | SELECT (SAMPLE(?o) AS ?sample)
5 | WHERE {
6 | ?s :dec ?o
7 | }
8 | }
9 | FILTER(?sample = 1.0 || ?sample = 2.2 || ?sample = 3.5)
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-sample-01.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-sum-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (SUM(?o) AS ?sum)
3 | WHERE {
4 | ?s :dec ?o
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg-sum-02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (SUM(?o) AS ?sum)
3 | WHERE {
4 | ?s ?p ?o
5 | }
6 | GROUP BY ?s
7 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT (COUNT(?O) AS ?C)
4 | WHERE { ?S ?P ?O }
5 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg01.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s :p1 :o1, :o2, :o3.
4 | :s :p2 :o1, :o2.
5 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?P (COUNT(?O) AS ?C)
4 | WHERE { ?S ?P ?O }
5 | GROUP BY ?P
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg03.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?P (COUNT(?O) AS ?C)
4 | WHERE { ?S ?P ?O }
5 | GROUP BY ?P
6 | HAVING (COUNT(?O) > 2 )
7 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg04.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT (COUNT(*) AS ?C)
4 | WHERE { ?S ?P ?O }
5 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg05.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?P (COUNT(*) AS ?C)
4 | WHERE { ?S ?P ?O }
5 | GROUP BY ?P
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg06.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT (COUNT(*) AS ?C)
4 | WHERE { ?S ?P ?O }
5 | HAVING (COUNT(*) > 0 )
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg07.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?P (COUNT(*) AS ?C)
4 | WHERE { ?S ?P ?O }
5 | GROUP BY ?P
6 | HAVING ( COUNT(*) > 2 )
7 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg08.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ((?O1 + ?O2) AS ?O12) (COUNT(?O1) AS ?C)
4 | WHERE { ?S :p ?O1; :q ?O2 } GROUP BY (?O1 + ?O2)
5 | ORDER BY ?O12
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg08.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s :p 0,1,2 .
4 | :s :q 0,1,2 .
5 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg08b.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?O12 (COUNT(?O1) AS ?C)
4 | WHERE { ?S :p ?O1; :q ?O2 } GROUP BY ((?O1 + ?O2) AS ?O12)
5 | ORDER BY ?O12
6 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg09.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?P (COUNT(?O) AS ?C)
4 | WHERE { ?S ?P ?O } GROUP BY ?S
5 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg10.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?P (COUNT(?O) AS ?C)
4 | WHERE { ?S ?P ?O }
5 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg11.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ((?O1 + ?O2) AS ?O12) (COUNT(?O1) AS ?C)
4 | WHERE { ?S :p ?O1; :q ?O2 } GROUP BY (?S)
5 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/agg12.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?O1 (COUNT(?O2) AS ?C)
4 | WHERE { ?S :p ?O1; :q ?O2 } GROUP BY (?O1 + ?O2)
5 |
--------------------------------------------------------------------------------
/spec/w3c/aggregates/empty.ttl:
--------------------------------------------------------------------------------
1 | @prefix ex: .
2 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/empty.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-01-post.ttl:
--------------------------------------------------------------------------------
1 | "o", "q" .
2 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-01-pre.ttl:
--------------------------------------------------------------------------------
1 | "o" .
2 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | INSERT {
4 | ?s ?p "q"
5 | } WHERE {
6 | ?s ?p ?o
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-02-g1-post.ttl:
--------------------------------------------------------------------------------
1 | "q" .
2 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-02-post.ttl:
--------------------------------------------------------------------------------
1 | "o" .
2 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-02-pre.ttl:
--------------------------------------------------------------------------------
1 | "o" .
2 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-02.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | INSERT {
4 | GRAPH :g1 {
5 | ?s ?p "q"
6 | }
7 | } WHERE {
8 | ?s ?p ?o
9 | }
10 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-03-g1-post.ttl:
--------------------------------------------------------------------------------
1 | "o", "z" .
2 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-03-g1-pre.ttl:
--------------------------------------------------------------------------------
1 | "o" .
2 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-03-post.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :a :b :c .
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-03-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :a :b :c .
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-03.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | WITH :g1
4 | INSERT {
5 | ?s ?p "z"
6 | } WHERE {
7 | ?s ?p ?o
8 | }
9 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-04-g1-post.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s :p "o" .
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-04-g1-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s :p "o" .
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-04-post.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :a :b :c .
4 | :s :p "q" .
5 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-04-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :a :b :c .
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-04.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | INSERT {
4 | ?s ?p "q"
5 | }
6 | USING :g1
7 | WHERE {
8 | ?s ?p ?o
9 | }
10 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-05-g1-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | [] :p :o .
4 |
5 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-05.ru:
--------------------------------------------------------------------------------
1 | prefix :
2 | INSERT { GRAPH :g2 { ?S ?P ?O } }
3 | WHERE { GRAPH :g1 { ?S ?P ?O } } ;
4 | INSERT { GRAPH :g2 { ?S ?P ?O } }
5 | WHERE { GRAPH :g1 { ?S ?P ?O } }
6 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-05a-g1-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | _:b :p :o .
4 |
5 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-05a-g3-post.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s :p 1 .
4 |
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-data-named1.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | INSERT DATA { GRAPH { :s :p :o } }
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-data-named2.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | INSERT DATA { GRAPH { :s :p :o2 } }
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-data-spo1.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | INSERT DATA { :s :p :o }
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-using-01-g1-post.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :g1 :p "y" .
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-using-01-g1-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :g1 :p "y" .
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-using-01-g2-post.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :g2 :p "z" .
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-using-01-g2-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :g2 :p "z" .
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-using-01-post.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :a :b :c .
4 | :g1 :p "q" .
5 | :g2 :p "q" .
6 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-using-01-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :a :b :c .
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-using-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | INSERT {
4 | ?s ?p "q"
5 | }
6 | USING :g1
7 | USING :g2
8 | WHERE {
9 | ?s ?p ?o
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-where-same-bnode-g3-post.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s :p 2 .
4 |
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/insert-where-same-bnode-pre.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | :s :p :o .
3 | :s :q :r .
4 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/spo.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s :p :o .
4 |
5 |
--------------------------------------------------------------------------------
/spec/w3c/basic-update/spo2.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s :p :o , :o2 .
4 |
5 |
--------------------------------------------------------------------------------
/spec/w3c/bind/bind01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?z
4 | {
5 | ?s ?p ?o .
6 | BIND(?o+10 AS ?z)
7 | }
--------------------------------------------------------------------------------
/spec/w3c/bind/bind02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?o ?z ?z2
4 | {
5 | ?s ?p ?o .
6 | BIND(?o+10 AS ?z)
7 | BIND(?o+100 AS ?z2)
8 | }
--------------------------------------------------------------------------------
/spec/w3c/bind/bind03.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?z ?s1
4 | {
5 | ?s ?p ?o .
6 | BIND(?o+1 AS ?z)
7 | ?s1 ?p1 ?z
8 | }
9 |
--------------------------------------------------------------------------------
/spec/w3c/bind/bind04.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT *
4 | {
5 | ?s ?p ?o .
6 | BIND(?nova AS ?z)
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/bind/bind05.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?s ?p ?o ?z
4 | {
5 | ?s ?p ?o .
6 | BIND(?o+1 AS ?z)
7 | FILTER(?z = 3 )
8 | }
9 |
--------------------------------------------------------------------------------
/spec/w3c/bind/bind06.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT *
4 | {
5 | ?s ?p ?o .
6 | BIND(?o+10 AS ?z)
7 | }
--------------------------------------------------------------------------------
/spec/w3c/bind/bind07.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?s ?p ?o ?z
4 | {
5 | ?s ?p ?o .
6 | { BIND(?o+1 AS ?z) } UNION { BIND(?o+2 AS ?z) }
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/bind/bind08.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?s ?p ?o ?z
4 | {
5 | ?s ?p ?o .
6 | FILTER(?z = 3 )
7 | BIND(?o+1 AS ?z)
8 | }
9 |
--------------------------------------------------------------------------------
/spec/w3c/bind/bind10.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?s ?v ?z
4 | {
5 | # See also bind11.rq
6 | BIND(4 AS ?z)
7 | {
8 | # ?z is not in-scope at the time of filter execution.
9 | ?s :p ?v . FILTER(?v = ?z)
10 | }
11 | }
--------------------------------------------------------------------------------
/spec/w3c/bind/bind10.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/spec/w3c/bind/bind11.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?s ?v ?z
4 | {
5 | # See also bind10.rq
6 | BIND(4 AS ?z)
7 | # ?z is in scope at the time of filter execution.
8 | ?s :p ?v .
9 | FILTER(?v = ?z)
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/bind/data.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s1 :p 1 .
4 | :s2 :p 2 .
5 | :s3 :p 3 .
6 | :s4 :p 4 .
7 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/bindings01.rq:
--------------------------------------------------------------------------------
1 | PREFIX dc:
2 | PREFIX :
3 | PREFIX ns:
4 |
5 | SELECT ?book ?title ?price
6 | {
7 | ?book dc:title ?title ;
8 | ns:price ?price .
9 | }
10 | BINDINGS ?book {
11 | (:book1)
12 | }
--------------------------------------------------------------------------------
/spec/w3c/bindings/bindings02.rq:
--------------------------------------------------------------------------------
1 | # bindings with one element and one value in the object variable
2 |
3 | PREFIX :
4 |
5 | SELECT ?s ?o
6 | {
7 | ?s ?p ?o .
8 | } BINDINGS ?o {
9 | (:b)
10 | }
--------------------------------------------------------------------------------
/spec/w3c/bindings/bindings03.rq:
--------------------------------------------------------------------------------
1 | # bindings with two variables and one set of values
2 |
3 | PREFIX :
4 |
5 | SELECT ?s ?o1 ?o2
6 | {
7 | ?s ?p1 ?o1 .
8 | ?s ?p2 ?o2 .
9 | } BINDINGS ?o1 ?o2 {
10 | ("Alan" "alan@example.org")
11 | }
--------------------------------------------------------------------------------
/spec/w3c/bindings/bindings04.rq:
--------------------------------------------------------------------------------
1 | # bindings with one element UNDEF
2 |
3 | PREFIX :
4 |
5 | SELECT ?s ?o1 ?o2
6 | {
7 | ?s ?p1 ?o1 .
8 | ?s ?p2 ?o2 .
9 | } BINDINGS ?o1 ?o2 {
10 | ("Alan" UNDEF)
11 | }
--------------------------------------------------------------------------------
/spec/w3c/bindings/bindings05.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?s ?o1 ?o2
4 | {
5 | ?s ?p1 ?o1 .
6 | ?s ?p2 ?o2 .
7 | } BINDINGS ?o1 ?o2 {
8 | (UNDEF "Alan")
9 | (:b UNDEF)
10 | }
--------------------------------------------------------------------------------
/spec/w3c/bindings/bindings06.rq:
--------------------------------------------------------------------------------
1 | # bindings with two variables and two sets of values
2 |
3 | PREFIX :
4 | PREFIX foaf:
5 | SELECT ?s ?p1 ?o1
6 | {
7 | ?s ?p1 ?o1 .
8 | } BINDINGS ?p1 {
9 | (foaf:knows)
10 | }
--------------------------------------------------------------------------------
/spec/w3c/bindings/bindings07.rq:
--------------------------------------------------------------------------------
1 | # bindings with two variables and two sets of values
2 |
3 | PREFIX :
4 | PREFIX foaf:
5 | SELECT ?s ?o1 ?o2
6 | {
7 | ?s ?p1 ?o1
8 | OPTIONAL { ?s foaf:knows ?o2 }
9 | } BINDINGS ?o2 {
10 | (:b)
11 | }
--------------------------------------------------------------------------------
/spec/w3c/bindings/data01.ttl:
--------------------------------------------------------------------------------
1 | @prefix dc: .
2 | @prefix : .
3 | @prefix ns: .
4 |
5 | :book1 dc:title "SPARQL Tutorial" .
6 | :book1 ns:price 42 .
7 | :book2 dc:title "The Semantic Web" .
8 | :book2 ns:price 23 .
--------------------------------------------------------------------------------
/spec/w3c/bindings/data02.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 | :a foaf:knows :b .
9 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/data03.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 | :a foaf:knows :b .
9 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/data04.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 | :a foaf:knows :b .
9 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/data05.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 | :a foaf:knows :b .
9 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/data06.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 | :a foaf:knows :b .
--------------------------------------------------------------------------------
/spec/w3c/bindings/data08.ttl:
--------------------------------------------------------------------------------
1 | @prefix dc: .
2 | @prefix : .
3 | @prefix ns: .
4 |
5 | :book1 dc:title "SPARQL Tutorial" .
6 | :book1 ns:price 42 .
7 | :book2 dc:title "The Semantic Web" .
8 | :book2 ns:price 23 .
--------------------------------------------------------------------------------
/spec/w3c/bindings/inline01.rq:
--------------------------------------------------------------------------------
1 | PREFIX dc:
2 | PREFIX :
3 | PREFIX ns:
4 |
5 | SELECT ?book ?title ?price
6 | {
7 | VALUES ?book { :book1 }
8 | ?book dc:title ?title ;
9 | ns:price ?price .
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/inline02.rq:
--------------------------------------------------------------------------------
1 | # bindings with one element and one value in the object variable
2 |
3 | PREFIX :
4 |
5 | SELECT ?s ?o {
6 | {
7 | SELECT * WHERE {
8 | ?s ?p ?o .
9 | }
10 | VALUES (?o) { (:b) }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/values01.rq:
--------------------------------------------------------------------------------
1 | PREFIX dc:
2 | PREFIX :
3 | PREFIX ns:
4 |
5 | SELECT ?book ?title ?price
6 | {
7 | ?book dc:title ?title ;
8 | ns:price ?price .
9 | }
10 | VALUES ?book {
11 | :book1
12 | }
13 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/values02.rq:
--------------------------------------------------------------------------------
1 | # bindings with one element and one value in the object variable
2 |
3 | PREFIX :
4 |
5 | SELECT ?s ?o
6 | {
7 | ?s ?p ?o .
8 | } VALUES ?o {
9 | :b
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/values03.rq:
--------------------------------------------------------------------------------
1 | # bindings with two variables and one set of values
2 |
3 | PREFIX :
4 |
5 | SELECT ?s ?o1 ?o2
6 | {
7 | ?s ?p1 ?o1 .
8 | ?s ?p2 ?o2 .
9 | } VALUES (?o1 ?o2) {
10 | ("Alan" "alan@example.org")
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/values04.rq:
--------------------------------------------------------------------------------
1 | # bindings with one element UNDEF
2 |
3 | PREFIX :
4 |
5 | SELECT ?s ?o1 ?o2
6 | {
7 | ?s ?p1 ?o1 .
8 | ?s ?p2 ?o2 .
9 | } VALUES (?o1 ?o2) {
10 | ("Alan" UNDEF)
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/values05.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?s ?o1 ?o2
4 | {
5 | ?s ?p1 ?o1 .
6 | ?s ?p2 ?o2 .
7 | } VALUES (?o1 ?o2) {
8 | (UNDEF "Alan")
9 | (:b UNDEF)
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/values06.rq:
--------------------------------------------------------------------------------
1 | # bindings with two variables and two sets of values
2 |
3 | PREFIX :
4 | PREFIX foaf:
5 | SELECT ?s ?p1 ?o1
6 | {
7 | ?s ?p1 ?o1 .
8 | } VALUES ?p1 {
9 | foaf:knows
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/bindings/values07.rq:
--------------------------------------------------------------------------------
1 | # bindings with two variables and two sets of values
2 |
3 | PREFIX :
4 | PREFIX foaf:
5 | SELECT ?s ?o1 ?o2
6 | {
7 | ?s ?p1 ?o1
8 | OPTIONAL { ?s foaf:knows ?o2 }
9 | } VALUES (?o2) {
10 | (:b)
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/clear/clear-all-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | CLEAR ALL
4 |
5 |
--------------------------------------------------------------------------------
/spec/w3c/clear/clear-default-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | CLEAR DEFAULT
4 |
5 |
--------------------------------------------------------------------------------
/spec/w3c/clear/clear-default.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | <> :name "Default Graph" .
4 |
--------------------------------------------------------------------------------
/spec/w3c/clear/clear-g1.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :g1 :name "G1" ;
4 | :description "Graph 1" ;
5 | .
6 |
--------------------------------------------------------------------------------
/spec/w3c/clear/clear-g2.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :g2 :name "G2" ;
4 | .
5 |
--------------------------------------------------------------------------------
/spec/w3c/clear/clear-graph-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | CLEAR GRAPH :g1
4 |
--------------------------------------------------------------------------------
/spec/w3c/clear/clear-named-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | CLEAR NAMED
4 |
--------------------------------------------------------------------------------
/spec/w3c/clear/empty.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 |
--------------------------------------------------------------------------------
/spec/w3c/construct/constructwhere01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | CONSTRUCT WHERE { ?s ?p ?o}
--------------------------------------------------------------------------------
/spec/w3c/construct/constructwhere01result.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s2 :p :o1 ;
4 | :p :o2 .
5 |
6 | :s1 :p :o1 .
7 |
8 | :s3 :p :o3 .
9 |
--------------------------------------------------------------------------------
/spec/w3c/construct/constructwhere02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | CONSTRUCT WHERE { :s1 :p ?o . ?s2 :p ?o }
--------------------------------------------------------------------------------
/spec/w3c/construct/constructwhere02result.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s2 :p :o1 .
4 |
5 | :s1 :p :o1 .
6 |
--------------------------------------------------------------------------------
/spec/w3c/construct/constructwhere03.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | CONSTRUCT WHERE { :s2 :p ?o1, ?o2 }
--------------------------------------------------------------------------------
/spec/w3c/construct/constructwhere03result.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s2 :p :o1 ;
4 | :p :o2 .
5 |
--------------------------------------------------------------------------------
/spec/w3c/construct/constructwhere04.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | CONSTRUCT
4 | FROM
5 | WHERE { ?s ?p ?o }
--------------------------------------------------------------------------------
/spec/w3c/construct/constructwhere04result.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s2 :p :o1 ;
4 | :p :o2 .
5 |
6 | :s1 :p :o1 .
7 |
8 | :s3 :p :o3 .
9 |
--------------------------------------------------------------------------------
/spec/w3c/construct/constructwhere05.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | CONSTRUCT
4 | WHERE { ?s ?p ?o FILTER ( ?o = :o1) }
--------------------------------------------------------------------------------
/spec/w3c/construct/constructwhere06.rq:
--------------------------------------------------------------------------------
1 | CONSTRUCT
2 | WHERE { GRAPH { ?s ?p ?o } }
--------------------------------------------------------------------------------
/spec/w3c/construct/data.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s1 :p :o1 .
4 | :s2 :p :o1 .
5 | :s2 :p :o2 .
6 | :s3 :p :o3 .
7 |
--------------------------------------------------------------------------------
/spec/w3c/copy/copy-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | COPY DEFAULT TO :g1
--------------------------------------------------------------------------------
/spec/w3c/copy/copy-01.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :jerry a foaf:Person .
5 | :jerry foaf:givenName "Jerry" .
6 | :jerry foaf:mbox .
--------------------------------------------------------------------------------
/spec/w3c/copy/copy-02.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :mickey a foaf:Person .
5 | :mickey foaf:givenName "Mickey" .
6 | :mickey foaf:mbox .
--------------------------------------------------------------------------------
/spec/w3c/copy/copy-03.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | COPY :g1 TO :g2
--------------------------------------------------------------------------------
/spec/w3c/copy/copy-06.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | COPY :g1 TO DEFAULT
--------------------------------------------------------------------------------
/spec/w3c/copy/copy-07.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | COPY :g1 TO :g1
--------------------------------------------------------------------------------
/spec/w3c/copy/copy-default.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :ron a foaf:Person .
5 | :ron foaf:givenName "Ronnie" .
6 | :ron foaf:mbox .
--------------------------------------------------------------------------------
/spec/w3c/csv-tsv-res/csvtsv01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT * WHERE { ?s ?p ?o} ORDER BY ?s ?p ?o
--------------------------------------------------------------------------------
/spec/w3c/csv-tsv-res/csvtsv02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT * WHERE { ?s ?p ?o OPTIONAL {?o ?p2 ?o2 } } ORDER BY ?s ?p ?o ?p2 ?o2
--------------------------------------------------------------------------------
/spec/w3c/csv-tsv-res/data.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix xsd: .
3 |
4 | :s1 :p1 :s2 .
5 | :s2 :p2 "foo" .
6 | :s3 :p3 "bar"^^xsd:string .
7 | :s4 :p4 4 .
8 | :s5 :p5 5.5 .
9 | :s6 :p6 _:o6 .
10 |
11 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-data-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE DATA
5 | {
6 | :a foaf:knows :b .
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-data-02.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE DATA
5 | {
6 | GRAPH { :a foaf:knows :b }
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-data-03.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE DATA
5 | {
6 | :a foaf:knows :c .
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-data-04.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE DATA
5 | {
6 | GRAPH { :a foaf:knows :c }
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-data-05.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE DATA
5 | {
6 | :a foaf:knows :b .
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-data-06.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE DATA
5 | {
6 | GRAPH { :c foaf:name "Chris" }
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-post-01f.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 | :a foaf:knows :b .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-post-01s.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-post-02f.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:knows :b .
5 | :b foaf:name "Bob" .
6 | :b foaf:mbox "bob@example.org" .
7 | :c foaf:name "Chris" .
8 | :c foaf:mbox "chris@example.org" .
9 | :b foaf:knows :c .
10 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-post-02s.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:knows :b .
5 | :b foaf:name "Bob" .
6 | :b foaf:mbox "bob@example.org" .
7 | :c foaf:mbox "chris@example.org" .
8 | :b foaf:knows :c .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-post-03f.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :c foaf:name "Chris" .
5 | :c foaf:mbox "chris@example.org" .
6 | :d foaf:name "Dan" .
7 | :d foaf:mbox "dan@example.org" .
8 | :c foaf:knows :d .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-pre-01.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 | :a foaf:knows :b .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-pre-02.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:knows :b .
5 | :b foaf:name "Bob" .
6 | :b foaf:mbox "bob@example.org" .
7 | :c foaf:name "Chris" .
8 | :c foaf:mbox "chris@example.org" .
9 | :b foaf:knows :c .
10 |
--------------------------------------------------------------------------------
/spec/w3c/delete-data/delete-pre-03.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :c foaf:name "Chris" .
5 | :c foaf:mbox "chris@example.org" .
6 | :d foaf:name "Dan" .
7 | :d foaf:mbox "dan@example.org" .
8 | :c foaf:knows :d .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?a foaf:knows ?b .
7 | }
8 | INSERT
9 | {
10 | ?b foaf:knows ?a .
11 | }
12 | WHERE
13 | {
14 | ?a foaf:knows ?b .
15 | }
16 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-01b.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?a foaf:knows ?b .
7 | }
8 | WHERE
9 | {
10 | ?a foaf:knows ?b .
11 | }
12 | ;
13 | INSERT
14 | {
15 | ?b foaf:knows ?a .
16 | }
17 | WHERE
18 | {
19 | ?a foaf:knows ?b .
20 | }
21 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-01c.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | INSERT
5 | {
6 | ?b foaf:knows ?a .
7 | }
8 | WHERE
9 | {
10 | ?a foaf:knows ?b .
11 | }
12 | ;
13 | DELETE
14 | {
15 | ?a foaf:knows ?b .
16 | }
17 | WHERE
18 | {
19 | ?a foaf:knows ?b .
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-02.ru:
--------------------------------------------------------------------------------
1 | PREFIX foaf:
2 |
3 | DELETE
4 | {
5 | ?a foaf:knows ?b .
6 | }
7 | WHERE
8 | {
9 | ?a foaf:name "Alan" . ?a foaf:knows ?b
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-03.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?a foaf:knows [] .
7 | }
8 | WHERE
9 | {
10 | ?a foaf:name "Alan" .
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-03b.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?a foaf:knows _:b .
7 | }
8 | WHERE
9 | {
10 | ?a foaf:name "Alan" .
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-04b.ru:
--------------------------------------------------------------------------------
1 | PREFIX foaf:
2 |
3 | DELETE
4 | {
5 | ?a foaf:knows ?Var_B .
6 | }
7 | WHERE
8 | {
9 | { ?a foaf:name "Alan" }
10 | { ?a foaf:knows ?Var_B . }
11 |
12 | }
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-05.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?a foaf:knows [] .
7 | }
8 | INSERT
9 | {
10 | ?a foaf:knows ?a .
11 | }
12 | WHERE
13 | {
14 | ?a foaf:name "Alan" .
15 | }
16 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-05b.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?a foaf:knows ?Var_B .
7 | }
8 | INSERT
9 | {
10 | ?a foaf:knows ?a .
11 | }
12 | WHERE
13 | {
14 | { ?a foaf:name "Alan" . }
15 | { ?a foaf:knows ?Var_B . }
16 | }
17 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-07.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?a foaf:knows [] .
7 | }
8 | INSERT
9 | {
10 | ?a foaf:knows [] .
11 | }
12 | WHERE
13 | {
14 | ?a foaf:name "Alan" .
15 | }
16 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-07b.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?a foaf:knows [] .
7 | }
8 | INSERT
9 | {
10 | ?a foaf:knows [] .
11 | }
12 | WHERE
13 | {
14 | ?a foaf:name "Alan" . ?a foaf:knows [] .
15 | }
16 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-08.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | DELETE
4 | { _:a :p 12 .
5 | _:a :q ?o .
6 | }
7 | WHERE {?s :r ?q OPTIONAL { ?q :s ?o } }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-09.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | DELETE
4 | { _:a :p 12 .
5 | _:a :q _:b .
6 | }
7 | WHERE {}
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-post-08.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :x :r :z .
4 | :x :q 10 .
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-post-09.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :x :r :z .
4 | :x :q 10 .
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-pre-08.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :x :p 12 .
4 | :x :r :z .
5 | :x :q 10 .
6 |
--------------------------------------------------------------------------------
/spec/w3c/delete-insert/delete-insert-pre-09.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :x :p 12 .
4 | :x :r :z .
5 | :x :q 10 .
6 | :y :q 8 .
7 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-post-01f.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 | :a foaf:knows :b .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-post-01s.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-post-02f.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:knows :b .
5 | :b foaf:name "Bob" .
6 | :b foaf:mbox "bob@example.org" .
7 | :c foaf:name "Chris" .
8 | :c foaf:mbox "chris@example.org" .
9 | :b foaf:knows :c .
10 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-post-02s.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:knows :b .
5 | :b foaf:name "Bob" .
6 | :b foaf:mbox "bob@example.org" .
7 | :c foaf:mbox "chris@example.org" .
8 | :b foaf:knows :c .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-post-03f.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :c foaf:name "Chris" .
5 | :c foaf:mbox "chris@example.org" .
6 | :d foaf:name "Dan" .
7 | :d foaf:mbox "dan@example.org" .
8 | :c foaf:knows :d .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-pre-01.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 | :a foaf:knows :b .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-pre-02.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:knows :b .
5 | :b foaf:name "Bob" .
6 | :b foaf:mbox "bob@example.org" .
7 | :c foaf:name "Chris" .
8 | :c foaf:mbox "chris@example.org" .
9 | :b foaf:knows :c .
10 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-pre-03.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :c foaf:name "Chris" .
5 | :c foaf:mbox "chris@example.org" .
6 | :d foaf:name "Dan" .
7 | :d foaf:mbox "dan@example.org" .
8 | :c foaf:knows :d .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-where-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE WHERE
5 | {
6 | :a foaf:knows ?b .
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-where-02.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE WHERE
5 | {
6 | GRAPH { :a foaf:knows ?b }
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-where-03.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE WHERE
5 | {
6 | ?a foaf:knows :c .
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-where-04.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE WHERE
5 | {
6 | GRAPH { ?a foaf:knows :c }
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-where-05.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE WHERE
5 | {
6 | ?a foaf:knows :b .
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete-where/delete-where-06.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE WHERE
5 | {
6 | GRAPH { ?c foaf:name "Chris" }
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?s ?p ?o .
7 | }
8 | WHERE
9 | {
10 | :a foaf:knows ?s .
11 | ?s ?p ?o
12 | }
13 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-02.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | GRAPH { ?s ?p ?o }
7 | }
8 | WHERE
9 | {
10 | GRAPH { :a foaf:knows ?s .
11 | ?s ?p ?o }
12 | }
13 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-03.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?s ?p ?o .
7 | }
8 | WHERE
9 | {
10 | ?s foaf:knows :c .
11 | ?s ?p ?o
12 | }
13 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-04.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | GRAPH { ?s ?p ?o }
7 | }
8 | WHERE
9 | {
10 | GRAPH { ?s foaf:knows :c .
11 | ?s ?p ?o }
12 | }
13 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-05.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?s ?p ?o .
7 | }
8 | WHERE
9 | {
10 | :a foaf:knows ?s .
11 | ?s ?p ?o
12 | }
13 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-06.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | GRAPH { ?s ?p ?o }
7 | }
8 | WHERE
9 | {
10 | GRAPH { ?s foaf:name "Chris" .
11 | ?s ?p ?o }
12 | }
13 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-07.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?s ?p ?o .
7 | }
8 | WHERE
9 | {
10 | :a foaf:knows ?s .
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-post-01f.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 | :a foaf:knows :b .
9 |
10 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-post-01s.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :a foaf:knows :b .
7 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-post-01s2.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :b foaf:name "Bob" .
5 | :b foaf:mbox "bob@example.org" .
6 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-post-02f.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:knows :b .
5 | :b foaf:name "Bob" .
6 | :b foaf:mbox "bob@example.org" .
7 | :c foaf:name "Chris" .
8 | :c foaf:mbox "chris@example.org" .
9 | :b foaf:knows :c .
10 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-post-02s.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:knows :b .
5 | :b foaf:name "Bob" .
6 | :b foaf:mbox "bob@example.org" .
7 | :b foaf:knows :c .
8 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-post-03f.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :c foaf:name "Chris" .
5 | :c foaf:mbox "chris@example.org" .
6 | :d foaf:name "Dan" .
7 | :d foaf:mbox "dan@example.org" .
8 | :c foaf:knows :d .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-pre-01.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:name "Alan" .
5 | :a foaf:mbox "alan@example.org" .
6 | :b foaf:name "Bob" .
7 | :b foaf:mbox "bob@example.org" .
8 | :a foaf:knows :b .
9 |
10 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-pre-02.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :a foaf:knows :b .
5 | :b foaf:name "Bob" .
6 | :b foaf:mbox "bob@example.org" .
7 | :c foaf:name "Chris" .
8 | :c foaf:mbox "chris@example.org" .
9 | :b foaf:knows :c .
10 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-pre-03.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix foaf: .
3 |
4 | :c foaf:name "Chris" .
5 | :c foaf:mbox "chris@example.org" .
6 | :d foaf:name "Dan" .
7 | :d foaf:mbox "dan@example.org" .
8 | :c foaf:knows :d .
9 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-using-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?s ?p ?o .
7 | }
8 | USING
9 | WHERE
10 | {
11 | :a foaf:knows ?s .
12 | ?s ?p ?o
13 | }
14 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-using-02.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?s ?p ?o .
7 | }
8 | USING
9 | WHERE
10 | {
11 | GRAPH { :a foaf:knows ?s .
12 | ?s ?p ?o }
13 | }
14 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-using-03.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?s ?p ?o .
7 | }
8 | USING
9 | WHERE
10 | {
11 | ?s foaf:knows :d .
12 | ?s ?p ?o
13 | }
14 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-using-04.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | ?s ?p ?o .
7 | }
8 | USING
9 | WHERE
10 | {
11 | GRAPH { ?s foaf:knows :d .
12 | ?s ?p ?o }
13 | }
14 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-using-05.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | DELETE
5 | {
6 | GRAPH { ?s ?p ?o }
7 | }
8 | USING
9 | WHERE
10 | {
11 | ?s foaf:knows :b .
12 | ?s ?p ?o
13 | }
14 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-with-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | WITH
5 | DELETE
6 | {
7 | ?s ?p ?o .
8 | }
9 | WHERE
10 | {
11 | :a foaf:knows ?s .
12 | ?s ?p ?o
13 | }
14 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-with-03.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | WITH
5 | DELETE
6 | {
7 | ?s ?p ?o .
8 | }
9 | WHERE
10 | {
11 | ?s foaf:knows :c .
12 | ?s ?p ?o
13 | }
14 |
--------------------------------------------------------------------------------
/spec/w3c/delete/delete-with-05.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX foaf:
3 |
4 | WITH
5 | DELETE
6 | {
7 | ?s ?p ?o .
8 | }
9 | WHERE
10 | {
11 | ?s foaf:knows :b .
12 | ?s ?p ?o
13 | }
14 |
--------------------------------------------------------------------------------
/spec/w3c/drop/drop-all-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | DROP ALL
4 |
5 |
--------------------------------------------------------------------------------
/spec/w3c/drop/drop-default-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | DROP DEFAULT
4 |
5 |
--------------------------------------------------------------------------------
/spec/w3c/drop/drop-default.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | <> :name "Default Graph" .
4 |
--------------------------------------------------------------------------------
/spec/w3c/drop/drop-g1.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :g1 :name "G1" ;
4 | :description "Graph 1" ;
5 | .
6 |
--------------------------------------------------------------------------------
/spec/w3c/drop/drop-g2.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :g2 :name "G2" ;
4 | .
5 |
--------------------------------------------------------------------------------
/spec/w3c/drop/drop-graph-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | DROP GRAPH :g1
4 |
--------------------------------------------------------------------------------
/spec/w3c/drop/drop-named-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | DROP NAMED
4 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/bind-data.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix rdf: .
3 | @prefix owl: .
4 |
5 | _:1 a owl:Ontology .
6 | :p a owl:DatatypeProperty .
7 | :s1 :p 1 .
8 | :s2 :p 2 .
9 | :s3 :p 3 .
10 | :s4 :p 4 .
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/bind01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX owl:
4 |
5 | SELECT ?z
6 | {
7 | ?s ?p ?o .
8 | ?p a owl:DatatypeProperty .
9 | BIND(?o+10 AS ?z)
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/bind02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX owl:
4 |
5 | SELECT ?o ?z ?z2
6 | {
7 | ?s ?p ?o .
8 | ?p a owl:DatatypeProperty .
9 | BIND(?o+10 AS ?z)
10 | BIND(?o+100 AS ?z2)
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/bind03.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX owl:
4 |
5 | SELECT ?z ?s1
6 | {
7 | ?s ?p ?o .
8 | ?p a owl:DatatypeProperty .
9 | BIND(?o+1 AS ?z)
10 | ?s1 ?p1 ?z .
11 | ?p1 a owl:DatatypeProperty .
12 | }
13 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/bind04.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX owl:
4 |
5 | SELECT *
6 | {
7 | ?s ?p ?o .
8 | ?p a owl:DatatypeProperty .
9 | BIND(?nova AS ?z)
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/bind05.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX owl:
4 |
5 | SELECT ?s ?p ?o ?z
6 | {
7 | ?s ?p ?o .
8 | ?p a owl:DatatypeProperty .
9 | BIND(?o+1 AS ?z)
10 | FILTER(?z = 3 )
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/bind06.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX owl:
4 |
5 | SELECT *
6 | {
7 | ?s ?p ?o .
8 | ?p a owl:DatatypeProperty .
9 | BIND(?o+10 AS ?z)
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/bind07.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX owl:
4 |
5 | SELECT ?s ?p ?o ?z
6 | {
7 | ?s ?p ?o .
8 | ?p a owl:DatatypeProperty .
9 | { BIND(?o+1 AS ?z) } UNION { BIND(?o+2 AS ?z) }
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/bind08.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX owl:
4 |
5 | SELECT ?s ?p ?o ?z
6 | {
7 | ?s ?p ?o .
8 | ?p a owl:DatatypeProperty .
9 | FILTER(?z = 3 )
10 | BIND(?o+1 AS ?z)
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/d-ent-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX xsd:
2 | SELECT ?L
3 | WHERE {
4 | ?L a xsd:integer
5 | }
6 |
7 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/d-ent-01.srx:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/d-ent-01.ttl:
--------------------------------------------------------------------------------
1 | @prefix ex: .
2 | @prefix rdf: .
3 | @prefix owl: .
4 |
5 | ex:p a owl:DatatypeProperty .
6 | ex:s ex:p 1 .
7 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/data-01.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix rdf: .
3 | @prefix owl: .
4 |
5 | _:ont a owl:Ontology .
6 |
7 | :p a owl:ObjectProperty .
8 | :c a owl:Class .
9 |
10 | :x :p :y.
11 | :x rdf:type :c.
12 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/lang.rq:
--------------------------------------------------------------------------------
1 | PREFIX rdf:
2 | PREFIX foaf:
3 |
4 | SELECT ?x
5 | WHERE { ?x foaf:name "name"@en .
6 | }
--------------------------------------------------------------------------------
/spec/w3c/entailment/owlds02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX rdfs:
4 |
5 | SELECT ?x ?y
6 | WHERE {
7 | ?x :p ?y .
8 | ?y rdf:type :c .
9 | }
10 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/paper-sparqldl-Q1.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdfs:
3 |
4 | SELECT ?c
5 | WHERE {
6 | ?c rdfs:subClassOf ex:Student .
7 | }
--------------------------------------------------------------------------------
/spec/w3c/entailment/paper-sparqldl-Q4.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdf:
3 | PREFIX rdfs:
4 |
5 | SELECT ?x ?c
6 | WHERE {
7 | ?x rdf:type ex:Student .
8 | ?x rdf:type ?c .
9 | ?c rdfs:subClassOf ex:Employee .
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/parent2.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?parent
4 | WHERE { ?parent :hasChild ?child }
--------------------------------------------------------------------------------
/spec/w3c/entailment/parent3.rq:
--------------------------------------------------------------------------------
1 | PREFIX owl:
2 | PREFIX :
3 |
4 | SELECT *
5 | WHERE { ?parent a [
6 | a owl:Restriction ;
7 | owl:onProperty :hasChild ;
8 | owl:someValuesFrom owl:Thing ] . }
9 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/parent5.rq:
--------------------------------------------------------------------------------
1 | PREFIX owl:
2 | PREFIX :
3 |
4 | SELECT *
5 | WHERE { ?parent a [
6 | a owl:Restriction ;
7 | owl:onProperty :hasChild ;
8 | owl:someValuesFrom :Female ] . }
--------------------------------------------------------------------------------
/spec/w3c/entailment/parent9.rq:
--------------------------------------------------------------------------------
1 | PREFIX rdfs:
2 | PREFIX owl:
3 | PREFIX :
4 |
5 | SELECT *
6 | WHERE { ?C rdfs:subClassOf [
7 | a owl:Restriction ;
8 | owl:onProperty :hasChild ;
9 | owl:someValuesFrom owl:Thing ] .
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/plainLit.rq:
--------------------------------------------------------------------------------
1 | PREFIX rdf:
2 | PREFIX foaf:
3 |
4 | SELECT ?x
5 | WHERE { ?x foaf:name "name"@en .
6 | }
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdf01.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdf:
3 |
4 | SELECT ?x
5 | WHERE {
6 | ex:b ?x rdf:Property .
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdf01.ttl:
--------------------------------------------------------------------------------
1 | @prefix ex: .
2 | @prefix rdf: .
3 | @prefix owl: .
4 |
5 | _:ont a owl:Ontology .
6 | ex:b a owl:ObjectProperty .
7 |
8 | ex:a ex:b ex:c .
9 |
10 |
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdf02.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdf:
3 |
4 | SELECT ?x
5 | WHERE {
6 | ?x rdf:type ex:banana .
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdf02.ttl:
--------------------------------------------------------------------------------
1 | @prefix ex: .
2 | @prefix rdf: .
3 |
4 | ex:myBanana a ex:banana .
5 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdf03.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | SELECT ?x
3 | WHERE {
4 | ?x ex:b1 _:c .
5 | }
6 |
7 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdf03.ttl:
--------------------------------------------------------------------------------
1 | @prefix ex: .
2 | @prefix rdf: .
3 |
4 | ex:a1 ex:b1 _:c1 .
5 | ex:a1 ex:b1 _:c2 .
6 | ex:a1 ex:b2 _:c3 .
7 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdf04.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 |
4 | SELECT ?x
5 | WHERE { ?x rdf:type :c . }
6 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs01.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | SELECT ?x
3 | WHERE {
4 | ex:a ?x ex:c .
5 | }
6 |
7 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs02.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | SELECT ?x
3 | WHERE {
4 | ?x ex:b2 ex:c .
5 | }
6 |
7 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs03.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdf:
3 | SELECT ?x
4 | WHERE {
5 | ?x rdf:type ex:c2 .
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs03.ttl:
--------------------------------------------------------------------------------
1 | @prefix ex: .
2 | @prefix rdfs: .
3 |
4 | ex:a ex:b1 ex:c1 .
5 | ex:b1 rdfs:subPropertyOf ex:b2 .
6 | ex:b2 rdfs:domain ex:c2 .
7 |
8 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs04.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdf:
3 | SELECT ?x
4 | WHERE {
5 | ?x rdf:type ex:c2 .
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs05.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX rdfs:
4 |
5 | SELECT ?x ?c
6 | WHERE { ?x rdf:type ?c . ?c rdfs:subClassOf :d }
7 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs06.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdf:
3 | SELECT ?x
4 | WHERE {
5 | ?x rdf:type ex:aType .
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs07.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdf:
3 | SELECT ?x
4 | WHERE {
5 | ?x rdf:type ex:cType .
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs08.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdfs:
3 | SELECT ?x
4 | WHERE {
5 | ex:d rdfs:range ?x .
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs09.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdf:
3 | SELECT ?x
4 | WHERE {
5 | ?x rdf:type ex:f .
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs10.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdfs:
3 | SELECT ?x ?y
4 | WHERE {
5 | ?x ex:f ?y .
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs11.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdf:
3 | PREFIX rdfs:
4 | SELECT ?x
5 | WHERE {
6 | ex:a ?x ex:c . ?x rdfs:subPropertyOf ex:p .
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs12.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | PREFIX rdfs:
3 | PREFIX rdf:
4 | SELECT ?f
5 | WHERE {
6 | ex:favourite-fruit rdf:_2 ?f .
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs12.ttl:
--------------------------------------------------------------------------------
1 | @prefix ex: .
2 | @prefix rdf: .
3 | @prefix rdfs: .
4 |
5 | ex:favourite-fruit a rdf:Seq .
6 | ex:favourite-fruit rdf:_1 ex:banana .
7 | ex:favourite-fruit rdf:_2 ex:apple .
8 | ex:favourite-fruit rdf:_3 ex:pear .
9 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs13.rq:
--------------------------------------------------------------------------------
1 | PREFIX rdfs:
2 | SELECT ?L
3 | WHERE {
4 | ?L a rdfs:Literal
5 | }
6 |
7 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs13.srx:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/rdfs13.ttl:
--------------------------------------------------------------------------------
1 | @prefix ex: .
2 | @prefix rdf: .
3 | @prefix owl: .
4 |
5 | _:ont a owl:Ontology .
6 | ex:p a owl:DatatypeProperty .
7 |
8 | ex:s ex:p "foo" .
9 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/simple1.rq:
--------------------------------------------------------------------------------
1 | PREFIX rdfs:
2 | PREFIX owl:
3 | PREFIX :
4 |
5 | SELECT ?x
6 | WHERE {
7 | ?x a [
8 | owl:intersectionOf ( :A :B )
9 | ] .
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/simple4.rq:
--------------------------------------------------------------------------------
1 | PREFIX rdfs:
2 | PREFIX owl:
3 | PREFIX :
4 |
5 | SELECT ?x
6 | WHERE {
7 | ?x a [
8 | a owl:Class ;
9 | owl:unionOf ( :B :C )
10 | ] .
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/sparqldl-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 |
4 | SELECT ?x
5 | WHERE { ?x rdf:type :c . }
6 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/sparqldl-02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX rdfs:
4 |
5 | SELECT ?x ?c
6 | WHERE { ?x rdf:type ?c . ?c rdfs:subClassOf :c }
7 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/sparqldl-03.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | PREFIX rdfs:
4 |
5 | SELECT ?x ?c
6 | WHERE {
7 | ?x rdf:type ?c .
8 | ?c rdfs:subClassOf :c .
9 | ?x :p _:y .
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/sparqldl-04.rq:
--------------------------------------------------------------------------------
1 | # Query4
2 |
3 | PREFIX rdf:
4 | PREFIX :
5 |
6 | SELECT ?X ?Y1 ?Y2
7 | WHERE
8 | {?X rdf:type :Person .
9 | ?X :name ?Y1 .
10 | ?X :nick ?Y2 .}
11 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/sparqldl-05.rq:
--------------------------------------------------------------------------------
1 | # Query5
2 |
3 | PREFIX rdf:
4 | PREFIX :
5 |
6 | ASK
7 | WHERE
8 | {_:a rdf:type :Person .}
9 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/sparqldl-06.rq:
--------------------------------------------------------------------------------
1 | # Query6 - cycle with undistinguished variables
2 |
3 | PREFIX rdf:
4 | PREFIX :
5 |
6 | ASK
7 | WHERE
8 | {
9 | :a :p _:aa.
10 | _:aa :r _:dd.
11 | _:dd :t _:bb.
12 | _:bb :s :a.
13 | }
14 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/sparqldl-07.rq:
--------------------------------------------------------------------------------
1 | # Query6 - cycle with undistinguished variables
2 |
3 | PREFIX rdf:
4 | PREFIX :
5 |
6 | SELECT *
7 | WHERE
8 | {:a :p _:aa.
9 | ?X :t ?Y.
10 | ?Y :s _:aa.
11 | _:aa :r ?Z.}
--------------------------------------------------------------------------------
/spec/w3c/entailment/sparqldl-08.rq:
--------------------------------------------------------------------------------
1 | # Query6 - articulation simplification test
2 |
3 | PREFIX rdf:
4 | PREFIX :
5 |
6 | SELECT *
7 | WHERE
8 | {?X :p _:a.
9 | _:a :r ?Y.}
--------------------------------------------------------------------------------
/spec/w3c/entailment/sparqldl-11.rq:
--------------------------------------------------------------------------------
1 | prefix rdfs:
2 | prefix owl:
3 | prefix :
4 | select ?C
5 | where {:parent rdfs:range ?C}
6 |
7 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/sparqldl-12.rq:
--------------------------------------------------------------------------------
1 | prefix rdfs:
2 | prefix owl:
3 | prefix :
4 | select ?C
5 | where {:child rdfs:domain ?C}
6 |
7 |
--------------------------------------------------------------------------------
/spec/w3c/entailment/sparqldl-13.rq:
--------------------------------------------------------------------------------
1 | # Query13 - sameAs test
2 |
3 | PREFIX rdf:
4 | PREFIX owl:
5 | PREFIX :
6 |
7 | SELECT ?a ?b ?x
8 | WHERE
9 | {
10 | ?a :p ?b.
11 | ?b owl:sameAs ?x.
12 | ?x :q ?x.
13 | }
14 |
--------------------------------------------------------------------------------
/spec/w3c/exists/exists01.rq:
--------------------------------------------------------------------------------
1 | prefix ex:
2 |
3 | select * where {
4 | ?s ?p ?o
5 | filter exists {?s ?p ex:o}
6 | }
7 |
--------------------------------------------------------------------------------
/spec/w3c/exists/exists01.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s :p :o, :o1, :o2.
4 | :t :p :o1, :o2.
5 |
--------------------------------------------------------------------------------
/spec/w3c/exists/exists02.rq:
--------------------------------------------------------------------------------
1 | prefix ex:
2 |
3 | select * where {
4 | ?s ?p ex:o2
5 | filter exists {ex:s ex:p ex:o}
6 | }
7 |
--------------------------------------------------------------------------------
/spec/w3c/exists/exists02.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :a :p :o1.
4 | :b :p :o1, :o2.
5 |
--------------------------------------------------------------------------------
/spec/w3c/exists/exists03.rq:
--------------------------------------------------------------------------------
1 | prefix ex:
2 |
3 | select * where {
4 | graph {
5 | ?s ?p ex:o1
6 | filter exists { ?s ?p ex:o2 }
7 | }
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/spec/w3c/exists/exists04.rq:
--------------------------------------------------------------------------------
1 | prefix ex:
2 |
3 | select * where {
4 | ?s ?p ex:o
5 | filter exists { ?s ?p ex:o1 filter exists { ?s ?p ex:o2 } }
6 | }
7 |
--------------------------------------------------------------------------------
/spec/w3c/exists/exists05.rq:
--------------------------------------------------------------------------------
1 | prefix ex:
2 |
3 | select * where {
4 | ?s ?p ex:o
5 | filter exists { ?s ?p ex:o1 filter not exists { ?s ?p ex:o2 } }
6 | }
7 |
--------------------------------------------------------------------------------
/spec/w3c/exists/exists05.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/spec/w3c/functions/abs01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT * WHERE {
3 | ?s :num ?num
4 | FILTER(ABS(?num) >= 2)
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/bnode01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s1 ?s2
4 | (BNODE(?s1) AS ?b1) (BNODE(?s2) AS ?b2)
5 | WHERE {
6 | ?a :str ?s1 .
7 | ?b :str ?s2 .
8 | FILTER (?a = :s1 || ?a = :s3)
9 | FILTER (?b = :s1 || ?b = :s3)
10 | }
11 |
--------------------------------------------------------------------------------
/spec/w3c/functions/bnode02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT (BNODE() AS ?b1) (BNODE() AS ?b2)
4 | WHERE {}
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/ceil01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s ?num (CEIL(?num) AS ?ceil) WHERE {
4 | ?s :num ?num
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/concat01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (CONCAT(?str1,?str2) AS ?str) WHERE {
3 | :s6 :str ?str1 .
4 | :s7 :str ?str2 .
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/concat02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (CONCAT(?str1,?str2) AS ?str) WHERE {
3 | ?s1 :str ?str1 .
4 | ?s2 :str ?str2 .
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/contains01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s ?str WHERE {
4 | ?s :str ?str
5 | FILTER CONTAINS(?str, "a")
6 | }
7 |
--------------------------------------------------------------------------------
/spec/w3c/functions/data-coalesce.ttl:
--------------------------------------------------------------------------------
1 | @prefix xsd: .
2 | @prefix : .
3 |
4 | # numeric data
5 | :n0 :p 1 .
6 | :n1 :p 0 ; :q 0 .
7 | :n2 :p 0 ; :q 2 .
8 | :n3 :p 4 ; :q 2 .
9 |
--------------------------------------------------------------------------------
/spec/w3c/functions/data-empty.nt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/antoniogarrote/rdfstore-js/1b19a61ede04ba19605ca3b7dc331c990ab7336f/spec/w3c/functions/data-empty.nt
--------------------------------------------------------------------------------
/spec/w3c/functions/data2.ttl:
--------------------------------------------------------------------------------
1 | @prefix xsd: .
2 | @prefix : .
3 |
4 | :s1 :str "123" .
5 |
6 | :s2 :str "日本語"@ja .
7 | :s3 :str "english"@en .
8 | :s4 :str "français"@fr .
9 |
10 | :s5 :str "abc"^^xsd:string .
11 | :s6 :str "def"^^xsd:string .
12 |
13 | :s7 :str 7 .
14 |
--------------------------------------------------------------------------------
/spec/w3c/functions/data4.ttl:
--------------------------------------------------------------------------------
1 | @prefix xsd: .
2 | @prefix : .
3 |
4 | :s1 :str "abc" .
5 | :s2 :str "abc"@en .
6 | :s3 :str "abc"^^xsd:string .
7 |
--------------------------------------------------------------------------------
/spec/w3c/functions/day-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (DAY(?date) AS ?x) WHERE {
3 | ?s :date ?date
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/encode01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s ?str (ENCODE_FOR_URI(?str) AS ?encoded) WHERE {
4 | ?s :str ?str
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/ends01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s ?str WHERE {
4 | ?s ?p ?str
5 | FILTER STRENDS(?str, "bc")
6 | }
7 |
--------------------------------------------------------------------------------
/spec/w3c/functions/floor01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s ?num (FLOOR(?num) AS ?floor) WHERE {
4 | ?s :num ?num
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/hash-unicode.ttl:
--------------------------------------------------------------------------------
1 | @prefix xsd: .
2 | @prefix : .
3 |
4 | # string data
5 | :s8 :str "\u98DF" .
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/hours-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (HOURS(?date) AS ?x) WHERE {
3 | ?s :date ?date
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/if01.rq:
--------------------------------------------------------------------------------
1 | BASE
2 | PREFIX xsd:
3 | SELECT ?o (IF(lang(?o) = "ja", true, false) AS ?integer)
4 | WHERE {
5 | ?s ?p ?o
6 | }
7 |
--------------------------------------------------------------------------------
/spec/w3c/functions/if02.rq:
--------------------------------------------------------------------------------
1 | SELECT (IF(1/0, false, true) AS ?error) WHERE {}
2 |
--------------------------------------------------------------------------------
/spec/w3c/functions/if02.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/spec/w3c/functions/in01.rq:
--------------------------------------------------------------------------------
1 | ASK {
2 | FILTER(2 IN (1, 2, 3))
3 | }
4 |
--------------------------------------------------------------------------------
/spec/w3c/functions/in01.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/in02.rq:
--------------------------------------------------------------------------------
1 | ASK {
2 | FILTER(2 IN (1, 3))
3 | }
4 |
--------------------------------------------------------------------------------
/spec/w3c/functions/in02.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | false
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/iri01.rq:
--------------------------------------------------------------------------------
1 | BASE
2 | SELECT (URI("uri") AS ?uri) (IRI("iri") AS ?iri)
3 | WHERE {}
4 |
--------------------------------------------------------------------------------
/spec/w3c/functions/isnumeric01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s ?num WHERE {
3 | ?s ?p ?num
4 | FILTER isNumeric(?num)
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/lcase01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (LCASE(?str) AS ?lstr) WHERE {
3 | ?s :str ?str
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/length01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?str (STRLEN(?str) AS ?len) WHERE {
3 | ?s :str ?str
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/md5-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (MD5(?l) AS ?hash) WHERE {
3 | :s1 :str ?l
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/md5-01.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | acbd18db4cc2f85cedef654fccc4a4d8
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/spec/w3c/functions/md5-02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (MD5(?l) AS ?hash) WHERE {
3 | :s4 :str ?l
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/minutes-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (MINUTES(?date) AS ?x) WHERE {
3 | ?s :date ?date
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/month-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (MONTH(?date) AS ?x) WHERE {
3 | ?s :date ?date
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/notin01.rq:
--------------------------------------------------------------------------------
1 | ASK {
2 | FILTER(2 NOT IN ())
3 | }
4 |
--------------------------------------------------------------------------------
/spec/w3c/functions/notin01.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/notin02.rq:
--------------------------------------------------------------------------------
1 | ASK {
2 | FILTER(2 NOT IN (1/0, 2))
3 | }
4 |
--------------------------------------------------------------------------------
/spec/w3c/functions/notin02.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | false
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/now01.rq:
--------------------------------------------------------------------------------
1 | PREFIX xsd:
2 | ASK {
3 | BIND(NOW() AS ?n)
4 | FILTER(DATATYPE(?n) = xsd:dateTime)
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/now01.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/plus-1.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?x ?y ( ?x + ?y AS ?sum)
3 | WHERE
4 | { ?s :p ?x ; :q ?y .
5 | }
6 | ORDER BY ?x ?y ?sum
7 |
--------------------------------------------------------------------------------
/spec/w3c/functions/plus-2.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?x ?y ( str(?x) + str(?y) AS ?sum)
4 | WHERE
5 | { ?s :p ?x ; :q ?y .
6 | }
7 | ORDER BY ?x ?y ?sum
8 |
--------------------------------------------------------------------------------
/spec/w3c/functions/rand01.rq:
--------------------------------------------------------------------------------
1 | PREFIX xsd:
2 | ASK {
3 | BIND(RAND() AS ?r)
4 | FILTER(DATATYPE(?r) = xsd:double && ?r >= 0.0 && ?r < 1.0)
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/rand01.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | true
5 |
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/replace01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s (REPLACE(?str,"[^a-z0-9]", "-") AS ?new) WHERE {
4 | ?s :str ?str
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/replace02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT (REPLACE(?str,"ana", "*") AS ?new) WHERE {
4 | :s8 :str ?str
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/replace02.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | b*na
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/spec/w3c/functions/replace03.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT (REPLACE(?str,"(ab)|(a)", "[1=$1][2=$2]") AS ?new) WHERE {
4 | :s9 :str ?str
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/replace03.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | [1=ab][2=]cd
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/spec/w3c/functions/round01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s ?num (ROUND(?num) AS ?round) WHERE {
4 | ?s :num ?num
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/seconds-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (SECONDS(?date) AS ?x) WHERE {
3 | ?s :date ?date
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/sha1-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (SHA1(?l) AS ?hash) WHERE {
3 | :s1 :str ?l
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/sha1-02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (SHA1(?l) AS ?hash) WHERE {
3 | :s8 :str ?l
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/sha256-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (SHA256(?l) AS ?hash) WHERE {
3 | :s1 :str ?l
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/sha256-02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (SHA256(?l) AS ?hash) WHERE {
3 | :s8 :str ?l
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/sha512-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (SHA512(?l) AS ?hash) WHERE {
3 | :s1 :str ?l
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/sha512-02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT (SHA512(?l) AS ?hash) WHERE {
3 | :s8 :str ?l
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/starts01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s ?str WHERE {
4 | ?s ?p ?str
5 | FILTER STRSTARTS(STR(?str), "1")
6 | }
7 |
--------------------------------------------------------------------------------
/spec/w3c/functions/strafter01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s (STRAFTER(?str,"e") AS ?suffix) WHERE {
4 | ?s :str ?str
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/strbefore01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s (STRBEFORE(?str,"s") AS ?prefix) WHERE {
4 | ?s :str ?str
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/strdt01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s (STRDT(?str,xsd:string) AS ?str1) WHERE {
4 | ?s :str ?str
5 | FILTER(LANGMATCHES(LANG(?str), "en"))
6 | }
7 |
--------------------------------------------------------------------------------
/spec/w3c/functions/strdt02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s (STRDT(STR(?str),xsd:string) AS ?str1) WHERE {
4 | ?s :str ?str
5 | FILTER(LANGMATCHES(LANG(?str), "en"))
6 | }
7 |
--------------------------------------------------------------------------------
/spec/w3c/functions/strdt03.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT ?s (STRDT(?o,xsd:string) AS ?str1) WHERE {
4 | ?s ?p ?o
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/strlang01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (STRLANG(?str,"en-US") AS ?s2) WHERE {
3 | ?s :str ?str
4 | FILTER(LANGMATCHES(LANG(?str), "en"))
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/strlang02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (STRLANG(STR(?str),"en-US") AS ?s2) WHERE {
3 | ?s :str ?str
4 | FILTER(LANGMATCHES(LANG(?str), "en"))
5 | }
6 |
--------------------------------------------------------------------------------
/spec/w3c/functions/strlang03.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (STRLANG(?o,"en-US") AS ?str1) WHERE {
3 | ?s ?p ?o
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/struuid01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT (STRLEN(?uuid) AS ?length)
4 | WHERE {
5 | BIND(STRUUID() AS ?uuid)
6 | FILTER(ISLITERAL(?uuid) && REGEX(?uuid, "^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$", "i"))
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/functions/substring01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s ?str (SUBSTR(?str,1,1) AS ?substr) WHERE {
3 | ?s :str ?str
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/substring02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s ?str (SUBSTR(?str,2) AS ?substr) WHERE {
3 | ?s :str ?str
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/timezone-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (TIMEZONE(?date) AS ?x) WHERE {
3 | ?s :date ?date
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/tz-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (TZ(?date) AS ?x) WHERE {
3 | ?s :date ?date
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/ucase01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (UCASE(?str) AS ?ustr) WHERE {
3 | ?s :str ?str
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/functions/uuid01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 | SELECT (STRLEN(STR(?uuid)) AS ?length)
4 | WHERE {
5 | BIND(UUID() AS ?uuid)
6 | FILTER(ISIRI(?uuid) && REGEX(STR(?uuid), "^urn:uuid:[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$", "i"))
7 | }
8 |
--------------------------------------------------------------------------------
/spec/w3c/functions/year-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | SELECT ?s (YEAR(?date) AS ?x) WHERE {
3 | ?s :date ?date
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/grouping/group-data-1.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s1 :p 1 .
4 | :s1 :q 9 .
5 | :s2 :p 2 .
6 |
--------------------------------------------------------------------------------
/spec/w3c/grouping/group-data-2.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 |
3 | :s1 :p 1 .
4 | :s3 :p 1 .
5 | :s1 :q 9 .
6 | :s2 :p 2 .
7 |
--------------------------------------------------------------------------------
/spec/w3c/grouping/group01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?s
4 | {
5 | ?s :p ?v .
6 | }
7 | GROUP BY ?s
8 |
--------------------------------------------------------------------------------
/spec/w3c/grouping/group02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?s
4 | {
5 | ?s :p ?v .
6 | }
7 | GROUP BY ?s
8 |
--------------------------------------------------------------------------------
/spec/w3c/grouping/group03.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?w (SAMPLE(?v) AS ?S)
4 | {
5 | ?s :p ?v .
6 | OPTIONAL { ?s :q ?w }
7 | }
8 | GROUP BY ?w
9 |
--------------------------------------------------------------------------------
/spec/w3c/grouping/group04.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX xsd:
3 |
4 | SELECT ?X (SAMPLE(?v) AS ?S)
5 | {
6 | ?s :p ?v .
7 | OPTIONAL { ?s :q ?w }
8 | }
9 | GROUP BY (COALESCE(?w, "1605-11-05"^^xsd:date) AS ?X)
10 |
--------------------------------------------------------------------------------
/spec/w3c/grouping/group05.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?s ?w
4 | {
5 | ?s :p ?v .
6 | OPTIONAL { ?s :q ?w }
7 | }
8 | GROUP BY ?s ?w
9 |
--------------------------------------------------------------------------------
/spec/w3c/grouping/group06.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT ?s ?v
4 | {
5 | ?s :p ?v .
6 | }
7 | GROUP BY ?s
8 |
--------------------------------------------------------------------------------
/spec/w3c/json-res/data.ttl:
--------------------------------------------------------------------------------
1 | @prefix : .
2 | @prefix xsd: .
3 |
4 | :s1 :p1 :s2 .
5 | :s2 :p2 "foo" .
6 | :s3 :p2 "bar"^^xsd:string .
7 | :s4 :p4 4 .
8 | :s5 :p5 "5"^^xsd:decimal.
9 | :s6 :p6 _:o6.
10 |
--------------------------------------------------------------------------------
/spec/w3c/json-res/jsonres01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT * WHERE { ?s ?p ?o} ORDER BY ?s ?p ?o
--------------------------------------------------------------------------------
/spec/w3c/json-res/jsonres02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | SELECT * WHERE { ?s ?p ?o OPTIONAL {?o ?p2 ?o2 } } ORDER BY ?s ?p ?o ?p2 ?o2
--------------------------------------------------------------------------------
/spec/w3c/json-res/jsonres03.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | ASK WHERE { :s1 :p1 :s2 }
--------------------------------------------------------------------------------
/spec/w3c/json-res/jsonres03.srj:
--------------------------------------------------------------------------------
1 | {
2 | "head" : { } ,
3 | "boolean" : true
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/json-res/jsonres04.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 |
3 | ASK WHERE { :s1 :p1 :o1 }
--------------------------------------------------------------------------------
/spec/w3c/json-res/jsonres04.srj:
--------------------------------------------------------------------------------
1 | {
2 | "head" : { } ,
3 | "boolean" : false
4 | }
5 |
--------------------------------------------------------------------------------
/spec/w3c/move/move-01.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | MOVE DEFAULT TO :g1
--------------------------------------------------------------------------------
/spec/w3c/move/move-01.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :jerry a foaf:Person .
5 | :jerry foaf:givenName "Jerry" .
6 | :jerry foaf:mbox .
--------------------------------------------------------------------------------
/spec/w3c/move/move-02.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :mickey a foaf:Person .
5 | :mickey foaf:givenName "Mickey" .
6 | :mickey foaf:mbox .
--------------------------------------------------------------------------------
/spec/w3c/move/move-03.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | MOVE :g1 TO :g2
--------------------------------------------------------------------------------
/spec/w3c/move/move-06.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | MOVE :g1 TO DEFAULT
--------------------------------------------------------------------------------
/spec/w3c/move/move-07.ru:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | MOVE :g1 TO :g1
--------------------------------------------------------------------------------
/spec/w3c/move/move-default.ttl:
--------------------------------------------------------------------------------
1 | @prefix foaf: .
2 | @prefix : .
3 |
4 | :tom a foaf:Person .
5 | :tom foaf:givenName "Tom" .
6 | :tom foaf:mbox .
--------------------------------------------------------------------------------
/spec/w3c/negation/exists-01.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | # SPARQL 1.1
4 | SELECT *
5 | WHERE
6 | {
7 | ?set a :Set .
8 | FILTER EXISTS {
9 | ?set :member 9
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/negation/exists-02.rq:
--------------------------------------------------------------------------------
1 | PREFIX :
2 | PREFIX rdf:
3 | # SPARQL 1.1
4 | SELECT *
5 | WHERE
6 | {
7 | ?set a :Set .
8 | FILTER EXISTS {
9 | ?set :member 7
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/spec/w3c/negation/exists-02.srx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/spec/w3c/negation/full-minuend.rq:
--------------------------------------------------------------------------------
1 | prefix :
2 |
3 | select ?a ?b ?c {
4 | ?a :p1 ?b; :p2 ?c
5 | MINUS {
6 | ?d a :Sub
7 | OPTIONAL { ?d :q1 ?b }
8 | OPTIONAL { ?d :q2 ?c }
9 | }
10 | }
11 | order by ?a
12 |
--------------------------------------------------------------------------------
/spec/w3c/negation/part-minuend.rq:
--------------------------------------------------------------------------------
1 | prefix :
2 |
3 | select ?a ?b ?c {
4 | ?a a :Min
5 | OPTIONAL { ?a :p1 ?b }
6 | OPTIONAL { ?a :p2 ?c }
7 | MINUS {
8 | ?d a :Sub
9 | OPTIONAL { ?d :q1 ?b }
10 | OPTIONAL { ?d :q2 ?c }
11 | }
12 | }
13 | order by ?a
14 |
--------------------------------------------------------------------------------
/spec/w3c/negation/subsetByExcl.ttl:
--------------------------------------------------------------------------------
1 | @prefix ex: .
2 |
3 | ex:lifeForm1 a ex:Mammal, ex:Animal .
4 | ex:lifeForm2 a ex:Reptile, ex:Animal .
5 | ex:lifeForm3 a ex:Insect, ex:Animal .
--------------------------------------------------------------------------------
/spec/w3c/negation/subsetByExcl01.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | SELECT ?animal {
3 | ?animal a ex:Animal
4 | FILTER NOT EXISTS { ?animal a ex:Insect }
5 | }
--------------------------------------------------------------------------------
/spec/w3c/negation/subsetByExcl02.rq:
--------------------------------------------------------------------------------
1 | PREFIX ex:
2 | SELECT ?animal {
3 | ?animal a ex:Animal MINUS {
4 | ?animal a ?type
5 | FILTER(?type = ex:Reptile || ?type = ex:Insect)
6 | }
7 | }
--------------------------------------------------------------------------------
/spec/w3c/project-expression/projexp01.rq:
--------------------------------------------------------------------------------
1 | prefix ex:
2 | prefix in:
3 |
4 | select ?x ?y ?z ((?y = ?z) as ?eq) where {
5 | ?x ex:p ?y .
6 | ?x ex:q ?z
7 | }
--------------------------------------------------------------------------------
/spec/w3c/project-expression/projexp01.ttl:
--------------------------------------------------------------------------------
1 | @prefix rdf: .
2 | @prefix rdfs: .
3 | @prefix ex: .
4 | @prefix in: .
5 |
6 | in:a ex:p 1 .
7 | in:a ex:q 1 .
8 | in:a ex:q 2 .
9 |
10 |
11 |
--------------------------------------------------------------------------------
/spec/w3c/project-expression/projexp02.rq:
--------------------------------------------------------------------------------
1 | prefix ex:
2 | prefix in:
3 |
4 | select ?x ?y ?z ((?y + ?z) as ?sum) where {
5 | ?x ex:p ?y .
6 | ?x ex:q ?z
7 | }
--------------------------------------------------------------------------------
/spec/w3c/project-expression/projexp02.ttl:
--------------------------------------------------------------------------------
1 | @prefix rdf: .
2 | @prefix rdfs: .
3 | @prefix ex: .
4 | @prefix in: .
5 |
6 | in:a ex:p 1 .
7 | in:a ex:q 1 .
8 | in:a ex:q "foobar" .
9 |
10 |
11 |
--------------------------------------------------------------------------------
/spec/w3c/project-expression/projexp03.rq:
--------------------------------------------------------------------------------
1 | prefix ex:
2 | prefix in:
3 |
4 | select ?x ?y ?z
5 | ((?y + ?z) as ?sum)
6 | ((2 * ?sum) as ?twice)
7 | where {
8 | ?x ex:p ?y .
9 | ?x ex:q ?z
10 | }
--------------------------------------------------------------------------------
/spec/w3c/project-expression/projexp03.ttl:
--------------------------------------------------------------------------------
1 | @prefix rdf: .
2 | @prefix rdfs: .
3 | @prefix ex: .
4 | @prefix in: .
5 |
6 | in:a ex:p 1 .
7 | in:a ex:q 2 .
8 |
9 |
10 |
--------------------------------------------------------------------------------
/spec/w3c/project-expression/projexp04.rq:
--------------------------------------------------------------------------------
1 | prefix ex:
2 | prefix in:
3 |
4 | select ?x ?y
5 | ((?y + ?y) as ?sum)
6 | where {
7 | ?x ex:p ?y
8 | }
9 | order by ?sum
--------------------------------------------------------------------------------
/spec/w3c/project-expression/projexp04.ttl:
--------------------------------------------------------------------------------
1 | @prefix rdf: .
2 | @prefix rdfs: .
3 | @prefix ex: .
4 | @prefix in: .
5 |
6 | in:a ex:p 1 .
7 | in:a ex:p 2 .
8 |
9 |
10 |
--------------------------------------------------------------------------------
/spec/w3c/project-expression/projexp05.rq:
--------------------------------------------------------------------------------
1 | prefix ex:
2 | prefix in: