Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- testbed/RDFLib__rdflib/.coveragerc +36 -0
- testbed/RDFLib__rdflib/.gitignore +19 -0
- testbed/RDFLib__rdflib/.pep8 +4 -0
- testbed/RDFLib__rdflib/.travis.fuseki_install_optional.sh +19 -0
- testbed/RDFLib__rdflib/.travis.yml +44 -0
- testbed/RDFLib__rdflib/CHANGELOG.md +1724 -0
- testbed/RDFLib__rdflib/CONTRIBUTORS +30 -0
- testbed/RDFLib__rdflib/LICENSE +33 -0
- testbed/RDFLib__rdflib/MANIFEST.in +13 -0
- testbed/RDFLib__rdflib/README.md +103 -0
- testbed/RDFLib__rdflib/requirements.txt +7 -0
- testbed/RDFLib__rdflib/run_tests.py +99 -0
- testbed/RDFLib__rdflib/setup.cfg +8 -0
- testbed/RDFLib__rdflib/setup.py +91 -0
- testbed/RDFLib__rdflib/skiptests.list +59 -0
- testbed/RDFLib__rdflib/test/test_parser.py +44 -0
- testbed/RDFLib__rdflib/test/test_parser_structure.py +13 -0
- testbed/RDFLib__rdflib/test/test_prefixTypes.py +34 -0
- testbed/RDFLib__rdflib/test/test_prettyxml.py +172 -0
- testbed/RDFLib__rdflib/test/test_rdfxml.py +266 -0
- testbed/RDFLib__rdflib/test/test_roundtrip.py +101 -0
- testbed/RDFLib__rdflib/test/test_serializexml.py +158 -0
- testbed/RDFLib__rdflib/test/test_slice.py +81 -0
- testbed/RDFLib__rdflib/test/test_sparql.py +113 -0
- testbed/RDFLib__rdflib/test/test_sparql_agg_distinct.py +108 -0
- testbed/RDFLib__rdflib/test/test_sparqlstore.py +71 -0
- testbed/RDFLib__rdflib/test/test_sparqlupdatestore.py +340 -0
- testbed/RDFLib__rdflib/test/test_swap_n3.py +154 -0
- testbed/RDFLib__rdflib/test/test_term.py +140 -0
- testbed/RDFLib__rdflib/test/test_trig_w3c.py +85 -0
- testbed/RDFLib__rdflib/test/test_trix_parse.py +49 -0
- testbed/RDFLib__rdflib/test/test_trix_serialize.py +98 -0
- testbed/RDFLib__rdflib/test/test_tsvresults.py +20 -0
- testbed/RDFLib__rdflib/test/test_turtle_serialize.py +76 -0
- testbed/RDFLib__rdflib/test/test_turtle_sort_issue613.py +40 -0
- testbed/RDFLib__rdflib/test/test_turtle_w3c.py +76 -0
- testbed/RDFLib__rdflib/test/test_util.py +350 -0
- testbed/RDFLib__rdflib/test/test_wide_python.py +14 -0
- testbed/RDFLib__rdflib/test/test_xmlliterals.py +84 -0
- testbed/RDFLib__rdflib/test/testutils.py +103 -0
- testbed/RDFLib__rdflib/test/triple_store.py +35 -0
- testbed/RDFLib__rdflib/test/type_check.py +34 -0
- testbed/RDFLib__rdflib/test_reports/rdflib_nquads-2013-12-22T19:22:34.ttl +697 -0
- testbed/RDFLib__rdflib/test_reports/rdflib_nt-2013-12-22T19:12:25.ttl +401 -0
- testbed/RDFLib__rdflib/test_reports/rdflib_sparql-2013-12-22T19:36:48.ttl +0 -0
- testbed/RDFLib__rdflib/test_reports/rdflib_trig-2013-12-22T19:31:52.ttl +1609 -0
- testbed/RDFLib__rdflib/test_reports/rdflib_trig-2013-12-30T15:56:57.ttl +0 -0
- testbed/RDFLib__rdflib/test_reports/rdflib_turtle-2013-12-22T19:13:51.ttl +0 -0
- testbed/RDFLib__rdflib/tox.ini +36 -0
- testbed/Textualize__rich/.github/FUNDING.yml +4 -0
testbed/RDFLib__rdflib/.coveragerc
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# .coveragerc to control coverage.py
|
| 2 |
+
[run]
|
| 3 |
+
branch = True
|
| 4 |
+
#source = rdflib,build/src/rdflib # specified in .travis.yml for different envs
|
| 5 |
+
omit = */site-packages/*
|
| 6 |
+
|
| 7 |
+
[report]
|
| 8 |
+
# Regexes for lines to exclude from consideration
|
| 9 |
+
exclude_lines =
|
| 10 |
+
# Have to re-enable the standard pragma
|
| 11 |
+
pragma: no cover
|
| 12 |
+
|
| 13 |
+
# Don't complain about missing debug-only code:
|
| 14 |
+
#def __repr__
|
| 15 |
+
#if self\.debug
|
| 16 |
+
|
| 17 |
+
# Don't complain if tests don't hit defensive assertion code:
|
| 18 |
+
#raise AssertionError
|
| 19 |
+
#raise NotImplementedError
|
| 20 |
+
|
| 21 |
+
# Don't complain if non-runnable code isn't run:
|
| 22 |
+
if 0:
|
| 23 |
+
if __name__ == .__main__.:
|
| 24 |
+
if __name__==.__main__.:
|
| 25 |
+
|
| 26 |
+
# path mappings for the py3 environments (doesn't seem to work on coveralls yet)
|
| 27 |
+
[paths]
|
| 28 |
+
source =
|
| 29 |
+
rdflib/
|
| 30 |
+
build/src/rdflib/
|
| 31 |
+
tests =
|
| 32 |
+
test/
|
| 33 |
+
build/src/test/
|
| 34 |
+
examples =
|
| 35 |
+
examples/
|
| 36 |
+
build/src/examples/
|
testbed/RDFLib__rdflib/.gitignore
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
RDFLib.sublime-project
|
| 2 |
+
/docs/_build/
|
| 3 |
+
nosetests.xml
|
| 4 |
+
RDFLib.sublime-workspace
|
| 5 |
+
*.egg-info/
|
| 6 |
+
coverage/
|
| 7 |
+
dist/
|
| 8 |
+
__pycache__/
|
| 9 |
+
*.pyc
|
| 10 |
+
/.hgtags
|
| 11 |
+
/.hgignore
|
| 12 |
+
build/
|
| 13 |
+
/.coverage
|
| 14 |
+
/.tox/
|
| 15 |
+
/docs/draft/
|
| 16 |
+
*~
|
| 17 |
+
test_reports/*latest.ttl
|
| 18 |
+
# PyCharm
|
| 19 |
+
.idea/
|
testbed/RDFLib__rdflib/.pep8
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[pep8]
|
| 2 |
+
ignore = W806
|
| 3 |
+
max-line-length = 85
|
| 4 |
+
exclude = host,extras,transform,rdfs
|
testbed/RDFLib__rdflib/.travis.fuseki_install_optional.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
set -v
|
| 4 |
+
|
| 5 |
+
uri="http://archive.apache.org/dist/jena/binaries/apache-jena-fuseki-2.4.0.tar.gz"
|
| 6 |
+
|
| 7 |
+
if wget "$uri" &&
|
| 8 |
+
tar -zxf *jena*fuseki*.tar.gz &&
|
| 9 |
+
mv *jena*fuseki*/ fuseki &&
|
| 10 |
+
cd fuseki ; then
|
| 11 |
+
# normal SPARQLStore & Dataset tests:
|
| 12 |
+
bash fuseki-server --port 3030 --debug --update --mem /db &>fuseki.log &
|
| 13 |
+
# SPARQLUpdateStore tests & ConjunctiveGraph endpoint behavior:
|
| 14 |
+
bash fuseki-server --port 3031 --debug --update --memTDB --set tdb:unionDefaultGraph=true /db &>fuseki.log &
|
| 15 |
+
sleep 2
|
| 16 |
+
cd ..
|
| 17 |
+
else
|
| 18 |
+
echo "fuseki install failed, skipping... please check URI" >&2
|
| 19 |
+
fi
|
testbed/RDFLib__rdflib/.travis.yml
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# http://travis-ci.org/#!/RDFLib/rdflib
|
| 2 |
+
sudo: false
|
| 3 |
+
language: python
|
| 4 |
+
branches:
|
| 5 |
+
only:
|
| 6 |
+
# only build master and release branches (merge request are built anyhow)
|
| 7 |
+
- master
|
| 8 |
+
- /^\d+\.\d+\.\d+(-.*)?$/
|
| 9 |
+
git:
|
| 10 |
+
depth: 3
|
| 11 |
+
|
| 12 |
+
python:
|
| 13 |
+
- 2.7
|
| 14 |
+
- 3.4
|
| 15 |
+
- 3.5
|
| 16 |
+
- 3.6
|
| 17 |
+
|
| 18 |
+
matrix:
|
| 19 |
+
include:
|
| 20 |
+
- python: 3.7
|
| 21 |
+
dist: xenial
|
| 22 |
+
sudo: true
|
| 23 |
+
|
| 24 |
+
before_install:
|
| 25 |
+
- pip install -U setuptools pip # seems travis comes with a too old setuptools for html5lib
|
| 26 |
+
- bash .travis.fuseki_install_optional.sh
|
| 27 |
+
|
| 28 |
+
install:
|
| 29 |
+
- pip install --default-timeout 60 -r requirements.txt
|
| 30 |
+
- pip install --default-timeout 60 coverage coveralls nose-timer && export HAS_COVERALLS=1
|
| 31 |
+
- python setup.py install
|
| 32 |
+
|
| 33 |
+
before_script:
|
| 34 |
+
- flake8 --exclude=pyRdfa,extras,host,transform,rdfs,sparql,results,pyMicrodata --exit-zero rdflib
|
| 35 |
+
|
| 36 |
+
script:
|
| 37 |
+
- PYTHONWARNINGS=default nosetests --with-timer --timer-top-n 42 --with-coverage --cover-tests --cover-package=rdflib
|
| 38 |
+
|
| 39 |
+
after_success:
|
| 40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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
2017/01/29 RELEASE 4.2.2
|
| 2 |
+
========================
|
| 3 |
+
|
| 4 |
+
This is a bug-fix release, and the last release in the 4.X.X series.
|
| 5 |
+
|
| 6 |
+
Bug fixes:
|
| 7 |
+
----------
|
| 8 |
+
* SPARQL bugs fixed:
|
| 9 |
+
* Fix for filters in sub-queries
|
| 10 |
+
[#693](https://github.com/RDFLib/rdflib/pull/693)
|
| 11 |
+
* Fixed bind, initBindings and filter problems
|
| 12 |
+
[#294](https://github.com/RDFLib/rdflib/issues/294)
|
| 13 |
+
[#555](https://github.com/RDFLib/rdflib/pull/555)
|
| 14 |
+
[#580](https://github.com/RDFLib/rdflib/issues/580)
|
| 15 |
+
[#586](https://github.com/RDFLib/rdflib/issues/586)
|
| 16 |
+
[#601](https://github.com/RDFLib/rdflib/pull/601)
|
| 17 |
+
[#615](https://github.com/RDFLib/rdflib/issues/615)
|
| 18 |
+
[#617](https://github.com/RDFLib/rdflib/issues/617)
|
| 19 |
+
[#619](https://github.com/RDFLib/rdflib/issues/619)
|
| 20 |
+
[#630](https://github.com/RDFLib/rdflib/issues/630)
|
| 21 |
+
[#653](https://github.com/RDFLib/rdflib/issues/653)
|
| 22 |
+
[#686](https://github.com/RDFLib/rdflib/issues/686)
|
| 23 |
+
[#688](https://github.com/RDFLib/rdflib/pull/688)
|
| 24 |
+
[#692](https://github.com/RDFLib/rdflib/pull/692)
|
| 25 |
+
* Fixed unexpected None value in SPARQL-update
|
| 26 |
+
[#633](https://github.com/RDFLib/rdflib/issues/633)
|
| 27 |
+
[#634](https://github.com/RDFLib/rdflib/pull/634)
|
| 28 |
+
* Fix sparql, group by and count of null values with `optional`
|
| 29 |
+
[#631](https://github.com/RDFLib/rdflib/issues/631)
|
| 30 |
+
* Fixed sparql sub-query and aggregation bugs
|
| 31 |
+
[#607](https://github.com/RDFLib/rdflib/issues/607)
|
| 32 |
+
[#610](https://github.com/RDFLib/rdflib/pull/610)
|
| 33 |
+
[#628](https://github.com/RDFLib/rdflib/issues/628)
|
| 34 |
+
[#694](https://github.com/RDFLib/rdflib/pull/694)
|
| 35 |
+
* Fixed parsing Complex BGPs as triples
|
| 36 |
+
[#622](https://github.com/RDFLib/rdflib/pull/622)
|
| 37 |
+
[#623](https://github.com/RDFLib/rdflib/issues/623)
|
| 38 |
+
* Fixed DISTINCT being ignored inside aggregate functions
|
| 39 |
+
[#404](https://github.com/RDFLib/rdflib/issues/404)
|
| 40 |
+
[#611](https://github.com/RDFLib/rdflib/pull/611)
|
| 41 |
+
[#678](https://github.com/RDFLib/rdflib/pull/678)
|
| 42 |
+
* Fix unicode encoding errors in sparql processor
|
| 43 |
+
[#446](https://github.com/RDFLib/rdflib/issues/446)
|
| 44 |
+
[#599](https://github.com/RDFLib/rdflib/pull/599)
|
| 45 |
+
* Fixed SPARQL select nothing no longer returning a `None` row
|
| 46 |
+
[#554](https://github.com/RDFLib/rdflib/issues/554)
|
| 47 |
+
[#592](https://github.com/RDFLib/rdflib/pull/592)
|
| 48 |
+
* Fixed aggregate operators COUNT and SAMPLE to ignore unbound / NULL values
|
| 49 |
+
[#564](https://github.com/RDFLib/rdflib/pull/564)
|
| 50 |
+
[#563](https://github.com/RDFLib/rdflib/issues/563)
|
| 51 |
+
[#567](https://github.com/RDFLib/rdflib/pull/567)
|
| 52 |
+
[#568](https://github.com/RDFLib/rdflib/pull/568)
|
| 53 |
+
* Fix sparql relative uris
|
| 54 |
+
[#523](https://github.com/RDFLib/rdflib/issues/523)
|
| 55 |
+
[#524](https://github.com/RDFLib/rdflib/pull/524)
|
| 56 |
+
* SPARQL can now compare xsd:date type as well, fixes #532
|
| 57 |
+
[#532](https://github.com/RDFLib/rdflib/issues/532)
|
| 58 |
+
[#533](https://github.com/RDFLib/rdflib/pull/533)
|
| 59 |
+
* fix sparql path order on python3: "TypeError: unorderable types: SequencePath() < SequencePath()""
|
| 60 |
+
[#492](https://github.com/RDFLib/rdflib/issues/492)
|
| 61 |
+
[#525](https://github.com/RDFLib/rdflib/pull/525)
|
| 62 |
+
* SPARQL parser now robust to spurious semicolon
|
| 63 |
+
[#381](https://github.com/RDFLib/rdflib/issues/381)
|
| 64 |
+
[#528](https://github.com/RDFLib/rdflib/pull/528)
|
| 65 |
+
* Let paths be comparable against all nodes even in py3 (preparedQuery error)
|
| 66 |
+
[#545](https://github.com/RDFLib/rdflib/issues/545)
|
| 67 |
+
[#552](https://github.com/RDFLib/rdflib/pull/552)
|
| 68 |
+
* Made behavior of `initN` in `update` and `query` more consistent
|
| 69 |
+
[#579](https://github.com/RDFLib/rdflib/issues/579)
|
| 70 |
+
[#600](https://github.com/RDFLib/rdflib/pull/600)
|
| 71 |
+
* SparqlStore:
|
| 72 |
+
* SparqlStore now closes underlying urllib response body
|
| 73 |
+
[#638](https://github.com/RDFLib/rdflib/pull/638)
|
| 74 |
+
[#683](https://github.com/RDFLib/rdflib/pull/683)
|
| 75 |
+
* SparqlStore injectPrefixes only modifies query if prefixes present and if adds a newline in between
|
| 76 |
+
[#521](https://github.com/RDFLib/rdflib/issues/521)
|
| 77 |
+
[#522](https://github.com/RDFLib/rdflib/pull/522)
|
| 78 |
+
* Fixes and tests for AuditableStore
|
| 79 |
+
[#537](https://github.com/RDFLib/rdflib/pull/537)
|
| 80 |
+
[#557](https://github.com/RDFLib/rdflib/pull/557)
|
| 81 |
+
* Trig bugs fixed:
|
| 82 |
+
* trig export of multiple graphs assigns wrong prefixes to prefixedNames
|
| 83 |
+
[#679](https://github.com/RDFLib/rdflib/issues/679)
|
| 84 |
+
* Trig serialiser writing empty named graph name for default graph
|
| 85 |
+
[#433](https://github.com/RDFLib/rdflib/issues/433)
|
| 86 |
+
* Trig parser can creating multiple contexts for the default graph
|
| 87 |
+
[#432](https://github.com/RDFLib/rdflib/issues/432)
|
| 88 |
+
* Trig serialisation handling prefixes incorrectly
|
| 89 |
+
[#428](https://github.com/RDFLib/rdflib/issues/428)
|
| 90 |
+
[#699](https://github.com/RDFLib/rdflib/pull/699)
|
| 91 |
+
* Fixed Nquads parser handling of triples in default graph
|
| 92 |
+
[#535](https://github.com/RDFLib/rdflib/issues/535)
|
| 93 |
+
[#536](https://github.com/RDFLib/rdflib/pull/536)
|
| 94 |
+
* Fixed TypeError in Turtle serializer (unorderable types: DocumentFragment() > DocumentFragment())
|
| 95 |
+
[#613](https://github.com/RDFLib/rdflib/issues/613)
|
| 96 |
+
[#648](https://github.com/RDFLib/rdflib/issues/648)
|
| 97 |
+
[#666](https://github.com/RDFLib/rdflib/pull/666)
|
| 98 |
+
[#676](https://github.com/RDFLib/rdflib/issues/676)
|
| 99 |
+
* Fixed serialization and parsing of inf/nan
|
| 100 |
+
[#655](https://github.com/RDFLib/rdflib/pull/655)
|
| 101 |
+
[#658](https://github.com/RDFLib/rdflib/pull/658)
|
| 102 |
+
* Fixed RDFa parser from failing on time elements with child nodes
|
| 103 |
+
[#576](https://github.com/RDFLib/rdflib/issues/576)
|
| 104 |
+
[#577](https://github.com/RDFLib/rdflib/pull/577)
|
| 105 |
+
* Fix double reduction of \\ escapes in from_n3
|
| 106 |
+
[#546](https://github.com/RDFLib/rdflib/issues/546)
|
| 107 |
+
[#548](https://github.com/RDFLib/rdflib/pull/548)
|
| 108 |
+
* Fixed handling of xsd:base64Binary
|
| 109 |
+
[#646](https://github.com/RDFLib/rdflib/issues/646)
|
| 110 |
+
[#674](https://github.com/RDFLib/rdflib/pull/674)
|
| 111 |
+
* Fixed Collection.__setitem__ broken
|
| 112 |
+
[#604](https://github.com/RDFLib/rdflib/issues/604)
|
| 113 |
+
[#605](https://github.com/RDFLib/rdflib/pull/605)
|
| 114 |
+
* Fix ImportError when __main__ already loaded
|
| 115 |
+
[#616](https://github.com/RDFLib/rdflib/pull/616)
|
| 116 |
+
* Fixed broken top_level.txt file in distribution
|
| 117 |
+
[#571](https://github.com/RDFLib/rdflib/issues/571)
|
| 118 |
+
[#572](https://github.com/RDFLib/rdflib/pull/572)
|
| 119 |
+
[#573](https://github.com/RDFLib/rdflib/pull/573)
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
Enhancements:
|
| 123 |
+
-------------
|
| 124 |
+
* Added support for Python 3.5+
|
| 125 |
+
[#526](https://github.com/RDFLib/rdflib/pull/526)
|
| 126 |
+
* More aliases for common formats (nt, turtle)
|
| 127 |
+
[#701](https://github.com/RDFLib/rdflib/pull/701)
|
| 128 |
+
* Improved RDF1.1 ntriples support
|
| 129 |
+
[#695](https://github.com/RDFLib/rdflib/issues/695)
|
| 130 |
+
[#700](https://github.com/RDFLib/rdflib/pull/700)
|
| 131 |
+
* Dependencies updated and improved compatibility with pyparsing, html5lib, SPARQLWrapper and elementtree
|
| 132 |
+
[#550](https://github.com/RDFLib/rdflib/pull/550)
|
| 133 |
+
[#589](https://github.com/RDFLib/rdflib/issues/589)
|
| 134 |
+
[#606](https://github.com/RDFLib/rdflib/issues/606)
|
| 135 |
+
[#641](https://github.com/RDFLib/rdflib/pull/641)
|
| 136 |
+
[#642](https://github.com/RDFLib/rdflib/issues/642)
|
| 137 |
+
[#650](https://github.com/RDFLib/rdflib/pull/650)
|
| 138 |
+
[#671](https://github.com/RDFLib/rdflib/issues/671)
|
| 139 |
+
[#675](https://github.com/RDFLib/rdflib/pull/675)
|
| 140 |
+
[#684](https://github.com/RDFLib/rdflib/pull/684)
|
| 141 |
+
[#696](https://github.com/RDFLib/rdflib/pull/696)
|
| 142 |
+
* Improved prefix for SPARQL namespace in XML serialization
|
| 143 |
+
[#493](https://github.com/RDFLib/rdflib/issues/493)
|
| 144 |
+
[#588](https://github.com/RDFLib/rdflib/pull/588)
|
| 145 |
+
* Performance improvements:
|
| 146 |
+
* SPARQL Aggregation functions don't build up memory for each row
|
| 147 |
+
[#678](https://github.com/RDFLib/rdflib/pull/678)
|
| 148 |
+
* Collections now support += (__iadd__), fixes slow creation of large lists
|
| 149 |
+
[#609](https://github.com/RDFLib/rdflib/issues/609)
|
| 150 |
+
[#612](https://github.com/RDFLib/rdflib/pull/612)
|
| 151 |
+
[#691](https://github.com/RDFLib/rdflib/pull/691)
|
| 152 |
+
* SPARQL Optimisation to expand BGPs in a smarter way
|
| 153 |
+
[#547](https://github.com/RDFLib/rdflib/pull/547)
|
| 154 |
+
* SPARQLStore improvements
|
| 155 |
+
* improved SPARQLStore BNode customizability
|
| 156 |
+
[#511](https://github.com/RDFLib/rdflib/issues/511)
|
| 157 |
+
[#512](https://github.com/RDFLib/rdflib/pull/512)
|
| 158 |
+
[#513](https://github.com/RDFLib/rdflib/pull/513)
|
| 159 |
+
[#603](https://github.com/RDFLib/rdflib/pull/603)
|
| 160 |
+
* Adding the option of using POST for long queries in SPARQLStore
|
| 161 |
+
[#672](https://github.com/RDFLib/rdflib/issues/672)
|
| 162 |
+
[#673](https://github.com/RDFLib/rdflib/pull/673)
|
| 163 |
+
* Exposed the timeout of SPARQLWrapper
|
| 164 |
+
[#531](https://github.com/RDFLib/rdflib/pull/531)
|
| 165 |
+
* SPARQL prepared query now carries the original (unparsed) parameters
|
| 166 |
+
[#565](https://github.com/RDFLib/rdflib/pull/565)
|
| 167 |
+
* added .n3 methods for path objects
|
| 168 |
+
[#553](https://github.com/RDFLib/rdflib/pull/553)
|
| 169 |
+
* Added support for xsd:gYear and xsd:gYearMonth
|
| 170 |
+
[#635](https://github.com/RDFLib/rdflib/issues/635)
|
| 171 |
+
[#636](https://github.com/RDFLib/rdflib/pull/636)
|
| 172 |
+
* Allow duplicates in rdf:List
|
| 173 |
+
[#223](https://github.com/RDFLib/rdflib/issues/223)
|
| 174 |
+
[#690](https://github.com/RDFLib/rdflib/pull/690)
|
| 175 |
+
* Improved slicing of Resource objects
|
| 176 |
+
[#529](https://github.com/RDFLib/rdflib/pull/529)
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
Cleanups:
|
| 180 |
+
---------
|
| 181 |
+
* cleanup: SPARQL Prologue and Query new style classes
|
| 182 |
+
[#566](https://github.com/RDFLib/rdflib/pull/566)
|
| 183 |
+
* Reduce amount of warnings, especially closing opened file pointers
|
| 184 |
+
[#518](https://github.com/RDFLib/rdflib/pull/518)
|
| 185 |
+
[#651](https://github.com/RDFLib/rdflib/issues/651)
|
| 186 |
+
* Improved ntriples parsing exceptions to actually tell you what's wrong
|
| 187 |
+
[#640](https://github.com/RDFLib/rdflib/pull/640)
|
| 188 |
+
[#643](https://github.com/RDFLib/rdflib/pull/643)
|
| 189 |
+
* remove ancient and broken 2.3 support code.
|
| 190 |
+
[#680](https://github.com/RDFLib/rdflib/issues/680)
|
| 191 |
+
[#681](https://github.com/RDFLib/rdflib/pull/681)
|
| 192 |
+
* Logger output improved
|
| 193 |
+
[#662](https://github.com/RDFLib/rdflib/pull/662)
|
| 194 |
+
* properly cite RGDA1
|
| 195 |
+
[#624](https://github.com/RDFLib/rdflib/pull/624)
|
| 196 |
+
* Avoid class reference to imported function
|
| 197 |
+
[#574](https://github.com/RDFLib/rdflib/issues/574)
|
| 198 |
+
[#578](https://github.com/RDFLib/rdflib/pull/578)
|
| 199 |
+
* Use find_packages for package discovery.
|
| 200 |
+
[#590](https://github.com/RDFLib/rdflib/pull/590)
|
| 201 |
+
* Prepared ClosedNamespace (and _RDFNamespace) to inherit from Namespace (5.0.0)
|
| 202 |
+
[#551](https://github.com/RDFLib/rdflib/pull/551)
|
| 203 |
+
[#595](https://github.com/RDFLib/rdflib/pull/595)
|
| 204 |
+
* Avoid verbose build logging
|
| 205 |
+
[#534](https://github.com/RDFLib/rdflib/pull/534)
|
| 206 |
+
* (ultra petty) Remove an unused import
|
| 207 |
+
[#593](https://github.com/RDFLib/rdflib/pull/593)
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
Testing improvements:
|
| 211 |
+
---------------------
|
| 212 |
+
* updating deprecated testing syntax
|
| 213 |
+
[#697](https://github.com/RDFLib/rdflib/pull/697)
|
| 214 |
+
* make test 375 more portable (use sys.executable rather than python)
|
| 215 |
+
[#664](https://github.com/RDFLib/rdflib/issues/664)
|
| 216 |
+
[#668](https://github.com/RDFLib/rdflib/pull/668)
|
| 217 |
+
* Removed outdated, skipped test for #130 that depended on content from the internet
|
| 218 |
+
[#256](https://github.com/RDFLib/rdflib/issues/256)
|
| 219 |
+
* enable all warnings during travis nosetests
|
| 220 |
+
[#517](https://github.com/RDFLib/rdflib/pull/517)
|
| 221 |
+
* travis updates
|
| 222 |
+
[#659](https://github.com/RDFLib/rdflib/issues/659)
|
| 223 |
+
* travis also builds release branches
|
| 224 |
+
[#598](https://github.com/RDFLib/rdflib/pull/598)
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
Doc improvements:
|
| 228 |
+
-----------------
|
| 229 |
+
* Update list of builtin serialisers in docstring
|
| 230 |
+
[#621](https://github.com/RDFLib/rdflib/pull/621)
|
| 231 |
+
* Update reference to "Emulating container types"
|
| 232 |
+
[#575](https://github.com/RDFLib/rdflib/issues/575)
|
| 233 |
+
[#581](https://github.com/RDFLib/rdflib/pull/581)
|
| 234 |
+
[#583](https://github.com/RDFLib/rdflib/pull/583)
|
| 235 |
+
[#584](https://github.com/RDFLib/rdflib/pull/584)
|
| 236 |
+
* docs: clarify the use of an identifier when persisting a triplestore
|
| 237 |
+
[#654](https://github.com/RDFLib/rdflib/pull/654)
|
| 238 |
+
* DOC: unamed -> unnamed, typos
|
| 239 |
+
[#562](https://github.com/RDFLib/rdflib/pull/562)
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
2015/08/12 RELEASE 4.2.1
|
| 244 |
+
========================
|
| 245 |
+
|
| 246 |
+
This is a bug-fix release.
|
| 247 |
+
|
| 248 |
+
Minor enhancements:
|
| 249 |
+
-------------------
|
| 250 |
+
* Added a Networkx connector
|
| 251 |
+
[#471](https://github.com/RDFLib/rdflib/pull/471),
|
| 252 |
+
[#507](https://github.com/RDFLib/rdflib/pull/507)
|
| 253 |
+
* Added a graph_tool connector
|
| 254 |
+
[#473](https://github.com/RDFLib/rdflib/pull/473)
|
| 255 |
+
* Added a `graphs` method to the Dataset object
|
| 256 |
+
[#504](https://github.com/RDFLib/rdflib/pull/504),
|
| 257 |
+
[#495](https://github.com/RDFLib/rdflib/issues/495)
|
| 258 |
+
* Batch commits for `SPARQLUpdateStore`
|
| 259 |
+
[#486](https://github.com/RDFLib/rdflib/pull/486)
|
| 260 |
+
|
| 261 |
+
Bug fixes:
|
| 262 |
+
----------
|
| 263 |
+
* Fixed bnode collision bug
|
| 264 |
+
[#506](https://github.com/RDFLib/rdflib/pull/506),
|
| 265 |
+
[#496](https://github.com/RDFLib/rdflib/pull/496),
|
| 266 |
+
[#494](https://github.com/RDFLib/rdflib/issues/494)
|
| 267 |
+
* fix `util.from_n3()` parsing Literals with datatypes and Namespace support
|
| 268 |
+
[#503](https://github.com/RDFLib/rdflib/pull/503),
|
| 269 |
+
[#502](https://github.com/RDFLib/rdflib/issues/502)
|
| 270 |
+
* make `Identifier.__hash__` stable wrt. multi processes
|
| 271 |
+
[#501](https://github.com/RDFLib/rdflib/pull/501),
|
| 272 |
+
[#500](https://github.com/RDFLib/rdflib/issues/500)
|
| 273 |
+
* fix handling `URLInputSource` without content-type
|
| 274 |
+
[#499](https://github.com/RDFLib/rdflib/pull/499),
|
| 275 |
+
[#498](https://github.com/RDFLib/rdflib/pull/498)
|
| 276 |
+
* no relative import in `algebra` when run as a script
|
| 277 |
+
[#497](https://github.com/RDFLib/rdflib/pull/497)
|
| 278 |
+
* Duplicate option in armstrong `theme.conf` removed
|
| 279 |
+
[#491](https://github.com/RDFLib/rdflib/issues/491)
|
| 280 |
+
* `Variable.__repr__` returns a python representation string, not n3
|
| 281 |
+
[#488](https://github.com/RDFLib/rdflib/pull/488)
|
| 282 |
+
* fixed broken example
|
| 283 |
+
[#482](https://github.com/RDFLib/rdflib/pull/482)
|
| 284 |
+
* trig output fixes
|
| 285 |
+
[#480](https://github.com/RDFLib/rdflib/pull/480)
|
| 286 |
+
* set PYTHONPATH to make rdfpipe tests use the right rdflib version
|
| 287 |
+
[#477](https://github.com/RDFLib/rdflib/pull/477)
|
| 288 |
+
* fix RDF/XML problem with unqualified use of `rdf:about`
|
| 289 |
+
[#470](https://github.com/RDFLib/rdflib/pull/470),
|
| 290 |
+
[#468](https://github.com/RDFLib/rdflib/issues/468)
|
| 291 |
+
* `AuditableStore` improvements
|
| 292 |
+
[#469](https://github.com/RDFLib/rdflib/pull/469),
|
| 293 |
+
[#463](https://github.com/RDFLib/rdflib/pull/463)
|
| 294 |
+
* added asserts for `graph.set([s,p,o])` so `s` and `p` aren't `None`
|
| 295 |
+
[#467](https://github.com/RDFLib/rdflib/pull/467)
|
| 296 |
+
* `threading.RLock` instances are context managers
|
| 297 |
+
[#465](https://github.com/RDFLib/rdflib/pull/465)
|
| 298 |
+
* SPARQLStore does not transform Literal('') into Literal('None') anymore
|
| 299 |
+
[#459](https://github.com/RDFLib/rdflib/pull/459),
|
| 300 |
+
[#457](https://github.com/RDFLib/rdflib/issues/457)
|
| 301 |
+
* slight performance increase for graph.all_nodes()
|
| 302 |
+
[#458](https://github.com/RDFLib/rdflib/pull/458)
|
| 303 |
+
|
| 304 |
+
Testing improvements:
|
| 305 |
+
---------------------
|
| 306 |
+
* travis: migrate to docker container infrastructure
|
| 307 |
+
[#508](https://github.com/RDFLib/rdflib/pull/508)
|
| 308 |
+
* test for narrow python builds (chars > 0xFFFF) (related to
|
| 309 |
+
[#453](https://github.com/RDFLib/rdflib/pull/453),
|
| 310 |
+
[#454](https://github.com/RDFLib/rdflib/pull/454)
|
| 311 |
+
)
|
| 312 |
+
[#456](https://github.com/RDFLib/rdflib/issues/456),
|
| 313 |
+
[#509](https://github.com/RDFLib/rdflib/pull/509)
|
| 314 |
+
* dropped testing py3.2
|
| 315 |
+
[#448](https://github.com/RDFLib/rdflib/issues/448)
|
| 316 |
+
* Running a local fuseki server on travis and making it failsafe
|
| 317 |
+
[#476](https://github.com/RDFLib/rdflib/pull/476),
|
| 318 |
+
[#475](https://github.com/RDFLib/rdflib/issues/475),
|
| 319 |
+
[#474](https://github.com/RDFLib/rdflib/pull/474),
|
| 320 |
+
[#466](https://github.com/RDFLib/rdflib/pull/466),
|
| 321 |
+
[#460](https://github.com/RDFLib/rdflib/issues/460)
|
| 322 |
+
* exclude `def main():` functions from test coverage analysis
|
| 323 |
+
[#472](https://github.com/RDFLib/rdflib/pull/472)
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
2015/02/19 RELEASE 4.2.0
|
| 327 |
+
========================
|
| 328 |
+
|
| 329 |
+
This is a new minor version of RDFLib including a handful of new features:
|
| 330 |
+
|
| 331 |
+
* Supporting N-Triples 1.1 syntax using UTF-8 encoding
|
| 332 |
+
[#447](https://github.com/RDFLib/rdflib/pull/447),
|
| 333 |
+
[#449](https://github.com/RDFLib/rdflib/pull/449),
|
| 334 |
+
[#400](https://github.com/RDFLib/rdflib/issues/400)
|
| 335 |
+
* Graph comparison now really works using RGDA1 (RDF Graph Digest Algorithm 1)
|
| 336 |
+
[#441](https://github.com/RDFLib/rdflib/pull/441)
|
| 337 |
+
[#385](https://github.com/RDFLib/rdflib/issues/385)
|
| 338 |
+
* More graceful degradation than simple crashing for unicode chars > 0xFFFF on
|
| 339 |
+
narrow python builds. Parsing such characters will now work, but issue a
|
| 340 |
+
UnicodeWarning. If you run `python -W all` you will already see a warning on
|
| 341 |
+
`import rdflib` will show a warning (ImportWarning).
|
| 342 |
+
[#453](https://github.com/RDFLib/rdflib/pull/453),
|
| 343 |
+
[#454](https://github.com/RDFLib/rdflib/pull/454)
|
| 344 |
+
* URLInputSource now supports json-ld
|
| 345 |
+
[#425](https://github.com/RDFLib/rdflib/pull/425)
|
| 346 |
+
* SPARQLStore is now graph aware
|
| 347 |
+
[#401](https://github.com/RDFLib/rdflib/pull/401),
|
| 348 |
+
[#402](https://github.com/RDFLib/rdflib/pull/402)
|
| 349 |
+
* SPARQLStore now uses SPARQLWrapper for updates
|
| 350 |
+
[#397](https://github.com/RDFLib/rdflib/pull/397)
|
| 351 |
+
* Certain logging output is immediately shown in interactive mode
|
| 352 |
+
[#414](https://github.com/RDFLib/rdflib/pull/414)
|
| 353 |
+
* Python 3.4 fully supported
|
| 354 |
+
[#418](https://github.com/RDFLib/rdflib/pull/418)
|
| 355 |
+
|
| 356 |
+
Minor enhancements & bugs fixed:
|
| 357 |
+
--------------------------------
|
| 358 |
+
|
| 359 |
+
* Fixed double invocation of 2to3
|
| 360 |
+
[#437](https://github.com/RDFLib/rdflib/pull/437)
|
| 361 |
+
* PyRDFa parser missing brackets
|
| 362 |
+
[#434](https://github.com/RDFLib/rdflib/pull/434)
|
| 363 |
+
* Correctly handle \uXXXX and \UXXXXXXXX escapes in n3 files
|
| 364 |
+
[#426](https://github.com/RDFLib/rdflib/pull/426)
|
| 365 |
+
* Logging cleanups and keeping it on stderr
|
| 366 |
+
[#420](https://github.com/RDFLib/rdflib/pull/420)
|
| 367 |
+
[#414](https://github.com/RDFLib/rdflib/pull/414)
|
| 368 |
+
[#413](https://github.com/RDFLib/rdflib/issues/413)
|
| 369 |
+
* n3: allow @base URI to have a trailing '#'
|
| 370 |
+
[#407](https://github.com/RDFLib/rdflib/pull/407)
|
| 371 |
+
[#379](https://github.com/RDFLib/rdflib/issues/379)
|
| 372 |
+
* microdata: add file:// to base if it's a filename so rdflib can parse its own
|
| 373 |
+
output
|
| 374 |
+
[#406](https://github.com/RDFLib/rdflib/pull/406)
|
| 375 |
+
[#403](https://github.com/RDFLib/rdflib/issues/403)
|
| 376 |
+
* TSV Results parse skips empty bindings in result
|
| 377 |
+
[#390](https://github.com/RDFLib/rdflib/pull/390)
|
| 378 |
+
* fixed accidental test run due to name
|
| 379 |
+
[#389](https://github.com/RDFLib/rdflib/pull/389)
|
| 380 |
+
* Bad boolean list serialization to Turtle & fixed ambiguity between
|
| 381 |
+
Literal(False) and None
|
| 382 |
+
[#387](https://github.com/RDFLib/rdflib/pull/387)
|
| 383 |
+
[#382](https://github.com/RDFLib/rdflib/pull/382)
|
| 384 |
+
* Current version number & PyPI link in README.md
|
| 385 |
+
[#383](https://github.com/RDFLib/rdflib/pull/383)
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
2014/04/15 RELEASE 4.1.2
|
| 389 |
+
========================
|
| 390 |
+
|
| 391 |
+
This is a bug-fix release.
|
| 392 |
+
|
| 393 |
+
* Fixed unicode/str bug in py3 for rdfpipe
|
| 394 |
+
[#375](https://github.com/RDFLib/rdflib/issues/375)
|
| 395 |
+
|
| 396 |
+
2014/03/03 RELEASE 4.1.1
|
| 397 |
+
========================
|
| 398 |
+
|
| 399 |
+
This is a bug-fix release.
|
| 400 |
+
|
| 401 |
+
This will be the last RDFLib release to support python 2.5.
|
| 402 |
+
|
| 403 |
+
* The RDF/XML Parser was made stricter, now raises exceptions for
|
| 404 |
+
illegal repeated node-elements.
|
| 405 |
+
[#363](https://github.com/RDFLib/rdflib/issues/363)
|
| 406 |
+
|
| 407 |
+
* The SPARQLUpdateStore now supports non-ascii unicode in update
|
| 408 |
+
statements
|
| 409 |
+
[#356](https://github.com/RDFLib/rdflib/issues/356)
|
| 410 |
+
|
| 411 |
+
* Fixed a bug in the NTriple/NQuad parser wrt. to unicode escape sequences
|
| 412 |
+
[#352](https://github.com/RDFLib/rdflib/issues/352)
|
| 413 |
+
|
| 414 |
+
* HTML5Lib is no longer pinned to 0.95
|
| 415 |
+
[#355](https://github.com/RDFLib/rdflib/issues/360)
|
| 416 |
+
|
| 417 |
+
* RDF/XML Serializer now uses parseType=Literal for well-formed XML literals
|
| 418 |
+
|
| 419 |
+
* A bug in the manchester OWL syntax was fixed
|
| 420 |
+
[#355](https://github.com/RDFLib/rdflib/issues/355)
|
| 421 |
+
|
| 422 |
+
2013/12/31 RELEASE 4.1
|
| 423 |
+
======================
|
| 424 |
+
|
| 425 |
+
This is a new minor version RDFLib, which includes a handful of new features:
|
| 426 |
+
|
| 427 |
+
* A TriG parser was added (we already had a serializer) - it is
|
| 428 |
+
up-to-date wrt. to the newest spec from: http://www.w3.org/TR/trig/
|
| 429 |
+
|
| 430 |
+
* The Turtle parser was made up to date wrt. to the latest Turtle spec.
|
| 431 |
+
|
| 432 |
+
* Many more tests have been added - RDFLib now has over 2000
|
| 433 |
+
(passing!) tests. This is mainly thanks to the NT, Turtle, TriG,
|
| 434 |
+
NQuads and SPARQL test-suites from W3C. This also included many
|
| 435 |
+
fixes to the nt and nquad parsers.
|
| 436 |
+
|
| 437 |
+
* ```ConjunctiveGraph``` and ```Dataset``` now support directly adding/removing
|
| 438 |
+
quads with ```add/addN/remove``` methods.
|
| 439 |
+
|
| 440 |
+
* ```rdfpipe``` command now supports datasets, and reading/writing context
|
| 441 |
+
sensitive formats.
|
| 442 |
+
|
| 443 |
+
* Optional graph-tracking was added to the Store interface, allowing
|
| 444 |
+
empty graphs to be tracked for Datasets. The DataSet class also saw
|
| 445 |
+
a general clean-up, see: [#309](https://github.com/RDFLib/rdflib/pull/309)
|
| 446 |
+
|
| 447 |
+
* After long deprecation, ```BackwardCompatibleGraph``` was removed.
|
| 448 |
+
|
| 449 |
+
Minor enhancements/bugs fixed:
|
| 450 |
+
------------------------------
|
| 451 |
+
|
| 452 |
+
* Many code samples in the documentation were fixed thanks to @PuckCh
|
| 453 |
+
|
| 454 |
+
* The new ```IOMemory``` store was optimised a bit
|
| 455 |
+
|
| 456 |
+
* ```SPARQL(Update)Store``` has been made more generic.
|
| 457 |
+
|
| 458 |
+
* MD5 sums were never reinitialized in ```rdflib.compare```
|
| 459 |
+
|
| 460 |
+
* Correct default value for empty prefix in N3
|
| 461 |
+
[#312](https://github.com/RDFLib/rdflib/issues/312)
|
| 462 |
+
|
| 463 |
+
* Fixed tests when running in a non UTF-8 locale
|
| 464 |
+
[#344](https://github.com/RDFLib/rdflib/issues/344)
|
| 465 |
+
|
| 466 |
+
* Prefix in the original turtle have an impact on SPARQL query
|
| 467 |
+
resolution
|
| 468 |
+
[#313](https://github.com/RDFLib/rdflib/issues/313)
|
| 469 |
+
|
| 470 |
+
* Duplicate BNode IDs from N3 Parser
|
| 471 |
+
[#305](https://github.com/RDFLib/rdflib/issues/305)
|
| 472 |
+
|
| 473 |
+
* Use QNames for TriG graph names
|
| 474 |
+
[#330](https://github.com/RDFLib/rdflib/issues/330)
|
| 475 |
+
|
| 476 |
+
* \uXXXX escapes in Turtle/N3 were fixed
|
| 477 |
+
[#335](https://github.com/RDFLib/rdflib/issues/335)
|
| 478 |
+
|
| 479 |
+
* A way to limit the number of triples retrieved from the
|
| 480 |
+
```SPARQLStore``` was added
|
| 481 |
+
[#346](https://github.com/RDFLib/rdflib/pull/346)
|
| 482 |
+
|
| 483 |
+
* Dots in localnames in Turtle
|
| 484 |
+
[#345](https://github.com/RDFLib/rdflib/issues/345)
|
| 485 |
+
[#336](https://github.com/RDFLib/rdflib/issues/336)
|
| 486 |
+
|
| 487 |
+
* ```BNode``` as Graph's public ID
|
| 488 |
+
[#300](https://github.com/RDFLib/rdflib/issues/300)
|
| 489 |
+
|
| 490 |
+
* Introduced ordering of ```QuotedGraphs```
|
| 491 |
+
[#291](https://github.com/RDFLib/rdflib/issues/291)
|
| 492 |
+
|
| 493 |
+
2013/05/22 RELEASE 4.0.1
|
| 494 |
+
========================
|
| 495 |
+
|
| 496 |
+
Following RDFLib tradition, some bugs snuck into the 4.0 release.
|
| 497 |
+
This is a bug-fixing release:
|
| 498 |
+
|
| 499 |
+
* the new URI validation caused lots of problems, but is
|
| 500 |
+
nescessary to avoid ''RDF injection'' vulnerabilities. In the
|
| 501 |
+
spirit of ''be liberal in what you accept, but conservative in
|
| 502 |
+
what you produce", we moved validation to serialisation time.
|
| 503 |
+
|
| 504 |
+
* the ```rdflib.tools``` package was missing from the
|
| 505 |
+
```setup.py``` script, and was therefore not included in the
|
| 506 |
+
PYPI tarballs.
|
| 507 |
+
|
| 508 |
+
* RDF parser choked on empty namespace URI
|
| 509 |
+
[#288](https://github.com/RDFLib/rdflib/issues/288)
|
| 510 |
+
|
| 511 |
+
* Parsing from ```sys.stdin``` was broken
|
| 512 |
+
[#285](https://github.com/RDFLib/rdflib/issues/285)
|
| 513 |
+
|
| 514 |
+
* The new IO store had problems with concurrent modifications if
|
| 515 |
+
several graphs used the same store
|
| 516 |
+
[#286](https://github.com/RDFLib/rdflib/issues/286)
|
| 517 |
+
|
| 518 |
+
* Moved HTML5Lib dependency to the recently released 1.0b1 which
|
| 519 |
+
support python3
|
| 520 |
+
|
| 521 |
+
2013/05/16 RELEASE 4.0
|
| 522 |
+
======================
|
| 523 |
+
|
| 524 |
+
This release includes several major changes:
|
| 525 |
+
|
| 526 |
+
* The new SPARQL 1.1 engine (rdflib-sparql) has been included in
|
| 527 |
+
the core distribution. SPARQL 1.1 queries and updates should
|
| 528 |
+
work out of the box.
|
| 529 |
+
|
| 530 |
+
* SPARQL paths are exposed as operators on ```URIRefs```, these can
|
| 531 |
+
then be be used with graph.triples and friends:
|
| 532 |
+
|
| 533 |
+
```py
|
| 534 |
+
# List names of friends of Bob:
|
| 535 |
+
g.triples(( bob, FOAF.knows/FOAF.name , None ))
|
| 536 |
+
|
| 537 |
+
# All super-classes:
|
| 538 |
+
g.triples(( cls, RDFS.subClassOf * '+', None ))
|
| 539 |
+
```
|
| 540 |
+
|
| 541 |
+
* a new ```graph.update``` method will apply SPARQL update statements
|
| 542 |
+
|
| 543 |
+
* Several RDF 1.1 features are available:
|
| 544 |
+
* A new ```DataSet``` class
|
| 545 |
+
* ```XMLLiteral``` and ```HTMLLiterals```
|
| 546 |
+
* ```BNode``` (de)skolemization is supported through ```BNode.skolemize```,
|
| 547 |
+
```URIRef.de_skolemize```, ```Graph.skolemize``` and ```Graph.de_skolemize```
|
| 548 |
+
|
| 549 |
+
* Handled of Literal equality was split into lexical comparison
|
| 550 |
+
(for normal ```==``` operator) and value space (using new ```Node.eq```
|
| 551 |
+
methods). This introduces some slight backwards incomaptible
|
| 552 |
+
changes, but was necessary, as the old version had
|
| 553 |
+
inconsisten hash and equality methods that could lead the
|
| 554 |
+
literals not working correctly in dicts/sets.
|
| 555 |
+
The new way is more in line with how SPARQL 1.1 works.
|
| 556 |
+
For the full details, see:
|
| 557 |
+
|
| 558 |
+
https://github.com/RDFLib/rdflib/wiki/Literal-reworking
|
| 559 |
+
|
| 560 |
+
* Iterating over ```QueryResults``` will generate ```ResultRow``` objects,
|
| 561 |
+
these allow access to variable bindings as attributes or as a
|
| 562 |
+
dict. I.e.
|
| 563 |
+
|
| 564 |
+
```py
|
| 565 |
+
for row in graph.query('select ... ') :
|
| 566 |
+
print row.age, row["name"]
|
| 567 |
+
```
|
| 568 |
+
|
| 569 |
+
* "Slicing" of Graphs and Resources as syntactic sugar:
|
| 570 |
+
([#271](https://github.com/RDFLib/rdflib/issues/271))
|
| 571 |
+
|
| 572 |
+
```py
|
| 573 |
+
graph[bob : FOAF.knows/FOAF.name]
|
| 574 |
+
-> generator over the names of Bobs friends
|
| 575 |
+
```
|
| 576 |
+
|
| 577 |
+
* The ```SPARQLStore``` and ```SPARQLUpdateStore``` are now included
|
| 578 |
+
in the RDFLib core
|
| 579 |
+
|
| 580 |
+
* The documentation has been given a major overhaul, and examples
|
| 581 |
+
for most features have been added.
|
| 582 |
+
|
| 583 |
+
|
| 584 |
+
Minor Changes:
|
| 585 |
+
--------------
|
| 586 |
+
|
| 587 |
+
* String operations on URIRefs return new URIRefs: ([#258](https://github.com/RDFLib/rdflib/issues/258))
|
| 588 |
+
```py
|
| 589 |
+
>>> URIRef('http://example.org/')+'test
|
| 590 |
+
rdflib.term.URIRef('http://example.org/test')
|
| 591 |
+
```
|
| 592 |
+
|
| 593 |
+
* Parser/Serializer plugins are also found by mime-type, not just
|
| 594 |
+
by plugin name: ([#277](https://github.com/RDFLib/rdflib/issues/277))
|
| 595 |
+
* ```Namespace``` is no longer a subclass of ```URIRef```
|
| 596 |
+
* URIRefs and Literal language tags are validated on construction,
|
| 597 |
+
avoiding some "RDF-injection" issues ([#266](https://github.com/RDFLib/rdflib/issues/266))
|
| 598 |
+
* A new memory store needs much less memory when loading large
|
| 599 |
+
graphs ([#268](https://github.com/RDFLib/rdflib/issues/268))
|
| 600 |
+
* Turtle/N3 serializer now supports the base keyword correctly ([#248](https://github.com/RDFLib/rdflib/issues/248))
|
| 601 |
+
* py2exe support was fixed ([#257](https://github.com/RDFLib/rdflib/issues/257))
|
| 602 |
+
* Several bugs in the TriG serializer were fixed
|
| 603 |
+
* Several bugs in the NQuads parser were fixed
|
| 604 |
+
|
| 605 |
+
2013/03/01 RELEASE 3.4
|
| 606 |
+
======================
|
| 607 |
+
|
| 608 |
+
This release introduced new parsers for structured data in HTML.
|
| 609 |
+
In particular formats: hturtle, rdfa, mdata and an auto-detecting
|
| 610 |
+
html format were added. Thanks to Ivan Herman for this!
|
| 611 |
+
|
| 612 |
+
This release includes a lot of admin maintentance - correct
|
| 613 |
+
dependencies for different python versions, etc. Several py3 bugs
|
| 614 |
+
were also fixed.
|
| 615 |
+
|
| 616 |
+
This release drops python 2.4 compatability - it was just getting
|
| 617 |
+
too expensive for us to maintain. It should however be compatible
|
| 618 |
+
with any cpython from 2.5 through 3.3.
|
| 619 |
+
|
| 620 |
+
* ```node.md5_term``` is now deprecated, if you use it let us know.
|
| 621 |
+
|
| 622 |
+
* Literal.datatype/language are now read-only properties ([#226](https://github.com/RDFLib/rdflib/issues/226))
|
| 623 |
+
* Serializing to file fails in py3 ([#249](https://github.com/RDFLib/rdflib/issues/249))
|
| 624 |
+
* TriX serializer places two xmlns attributes on same element ([#250](https://github.com/RDFLib/rdflib/issues/250))
|
| 625 |
+
* RDF/XML parser fails on when XML namespace is not explicitly declared ([#247](https://github.com/RDFLib/rdflib/issues/247))
|
| 626 |
+
* Resource class should "unbox" Resource instances on add ([#215](https://github.com/RDFLib/rdflib/issues/215))
|
| 627 |
+
* Turtle/N3 does not encode final quote of a string ([#239](https://github.com/RDFLib/rdflib/issues/239))
|
| 628 |
+
* float Literal precision lost when serializing graph to turtle or n3 ([#237](https://github.com/RDFLib/rdflib/issues/237))
|
| 629 |
+
* plain-literal representation of xsd:decimals fixed
|
| 630 |
+
* allow read-only sleepycat stores
|
| 631 |
+
* language tag parsing in N3/Turtle fixes to allow several subtags.
|
| 632 |
+
|
| 633 |
+
2012/10/10 RELEASE 3.2.3
|
| 634 |
+
========================
|
| 635 |
+
|
| 636 |
+
Almost identical to 3.2.2
|
| 637 |
+
A stupid bug snuck into 3.2.2, and querying graphs were broken.
|
| 638 |
+
|
| 639 |
+
* Fixes broken querying ([#234](https://github.com/RDFLib/rdflib/issues/234))
|
| 640 |
+
* graph.transitiveClosure now works with loops ([#206](https://github.com/RDFLib/rdflib/issues/206))
|
| 641 |
+
|
| 642 |
+
2012/09/25 RELEASE 3.2.2
|
| 643 |
+
========================
|
| 644 |
+
|
| 645 |
+
This is mainly a maintenance release.
|
| 646 |
+
|
| 647 |
+
This release should be compatible with python 2.4 through to 3.
|
| 648 |
+
|
| 649 |
+
Changes:
|
| 650 |
+
|
| 651 |
+
* Improved serialization/parsing roundtrip tests led to some fixes
|
| 652 |
+
of obscure parser/serializer bugs. In particular complex string
|
| 653 |
+
Literals in ntriples improved a lot.
|
| 654 |
+
* The terms of a triple are now asserted to be RDFLib Node's in graph.add
|
| 655 |
+
This should avoid getting strings and other things in the store. ([#200](https://github.com/RDFLib/rdflib/issues/200))
|
| 656 |
+
* Added a specific TurtleParser that does not require the store to be
|
| 657 |
+
non-formula aware. ([#214](https://github.com/RDFLib/rdflib/issues/214))
|
| 658 |
+
* A trig-serializer was added, see:
|
| 659 |
+
http://www4.wiwiss.fu-berlin.de/bizer/trig/
|
| 660 |
+
* BNode generation was made thread-safe ([#209](https://github.com/RDFLib/rdflib/issues/209))
|
| 661 |
+
(also fixed better by dzinxed)
|
| 662 |
+
* Illegal BNode IDs removed from NT output: ([#212](https://github.com/RDFLib/rdflib/issues/212))
|
| 663 |
+
* and more minor bug fixes that had no issues
|
| 664 |
+
|
| 665 |
+
2012/04/24 RELEASE 3.2.1
|
| 666 |
+
========================
|
| 667 |
+
|
| 668 |
+
This is mainly a maintenance release.
|
| 669 |
+
|
| 670 |
+
Changes:
|
| 671 |
+
|
| 672 |
+
* New setuptools entry points for query processors and results
|
| 673 |
+
|
| 674 |
+
* Literals constructed from other literals copy datatype/lang ([#188](https://github.com/RDFLib/rdflib/issues/188))
|
| 675 |
+
* Relative URIs are resolved incorrectly after redirects ([#130](https://github.com/RDFLib/rdflib/issues/130))
|
| 676 |
+
* Illegal prefixes in turtle output ([#161](https://github.com/RDFLib/rdflib/issues/161))
|
| 677 |
+
* Sleepcat store unstable prefixes ([#201](https://github.com/RDFLib/rdflib/issues/201))
|
| 678 |
+
* Consistent toPyton() for all node objects ([#174](https://github.com/RDFLib/rdflib/issues/174))
|
| 679 |
+
* Better random BNode ID in multi-thread environments ([#185](https://github.com/RDFLib/rdflib/issues/185))
|
| 680 |
+
|
| 681 |
+
2012/01/19 RELEASE 3.2.0
|
| 682 |
+
========================
|
| 683 |
+
|
| 684 |
+
Major changes:
|
| 685 |
+
* Thanks to Thomas Kluyver, rdflib now works under python3,
|
| 686 |
+
the setup.py script automatically runs 2to3.
|
| 687 |
+
|
| 688 |
+
* Unit tests were updated and cleaned up. Now all tests should pass.
|
| 689 |
+
* Documentation was updated and cleaned up.
|
| 690 |
+
|
| 691 |
+
* A new resource oriented API was added:
|
| 692 |
+
http://code.google.com/p/rdflib/issues/detail?id=166
|
| 693 |
+
|
| 694 |
+
Fixed many minor issues:
|
| 695 |
+
* http://code.google.com/p/rdflib/issues/detail?id=177
|
| 696 |
+
http://code.google.com/p/rdflib/issues/detail?id=129
|
| 697 |
+
Restored compatability with Python 2.4
|
| 698 |
+
* http://code.google.com/p/rdflib/issues/detail?id=158
|
| 699 |
+
Reworking of Query result handling
|
| 700 |
+
* http://code.google.com/p/rdflib/issues/detail?id=193
|
| 701 |
+
generating xml:base attribute in RDF/XML output
|
| 702 |
+
* http://code.google.com/p/rdflib/issues/detail?id=180
|
| 703 |
+
serialize(format="pretty-xml") fails on cyclic links
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
2011/03/17 RELEASE 3.1.0
|
| 707 |
+
========================
|
| 708 |
+
|
| 709 |
+
Fixed a range of minor issues:
|
| 710 |
+
|
| 711 |
+
* http://code.google.com/p/rdflib/issues/detail?id=128
|
| 712 |
+
|
| 713 |
+
Literal.__str__ does not behave like unicode
|
| 714 |
+
|
| 715 |
+
* http://code.google.com/p/rdflib/issues/detail?id=141
|
| 716 |
+
|
| 717 |
+
(RDFa Parser) Does not handle application/xhtml+xml
|
| 718 |
+
|
| 719 |
+
* http://code.google.com/p/rdflib/issues/detail?id=142
|
| 720 |
+
|
| 721 |
+
RDFa TC #117: Fragment identifiers stripped from BASE
|
| 722 |
+
|
| 723 |
+
* http://code.google.com/p/rdflib/issues/detail?id=146
|
| 724 |
+
|
| 725 |
+
Malformed literals produced when rdfa contains newlines
|
| 726 |
+
|
| 727 |
+
* http://code.google.com/p/rdflib/issues/detail?id=152
|
| 728 |
+
|
| 729 |
+
Namespaces beginning with _ are invalid
|
| 730 |
+
|
| 731 |
+
* http://code.google.com/p/rdflib/issues/detail?id=156
|
| 732 |
+
|
| 733 |
+
Turtle Files with a UTF-8 BOM fail to parse
|
| 734 |
+
|
| 735 |
+
* http://code.google.com/p/rdflib/issues/detail?id=154
|
| 736 |
+
|
| 737 |
+
ClosedNamespace.__str__ returns URIRef not str
|
| 738 |
+
|
| 739 |
+
* http://code.google.com/p/rdflib/issues/detail?id=150
|
| 740 |
+
|
| 741 |
+
IOMemory does not override open
|
| 742 |
+
|
| 743 |
+
* http://code.google.com/p/rdflib/issues/detail?id=153
|
| 744 |
+
|
| 745 |
+
Timestamps with microseconds *and* "Z" timezone are not parsed
|
| 746 |
+
|
| 747 |
+
* http://code.google.com/p/rdflib/issues/detail?id=118
|
| 748 |
+
|
| 749 |
+
DateTime literals with offsets fail to convert to Python
|
| 750 |
+
|
| 751 |
+
* http://code.google.com/p/rdflib/issues/detail?id=157
|
| 752 |
+
|
| 753 |
+
Timestamps with timezone information are not parsed
|
| 754 |
+
|
| 755 |
+
* http://code.google.com/p/rdflib/issues/detail?id=151
|
| 756 |
+
|
| 757 |
+
problem with unicode literals in rdflib.compare.graph_diff
|
| 758 |
+
|
| 759 |
+
* http://code.google.com/p/rdflib/issues/detail?id=149
|
| 760 |
+
|
| 761 |
+
Sleepycat Store broken with create=False
|
| 762 |
+
|
| 763 |
+
* http://code.google.com/p/rdflib/issues/detail?id=134
|
| 764 |
+
|
| 765 |
+
Would be useful if Graph.query could propagate kwargs to a
|
| 766 |
+
|
| 767 |
+
plugin processor
|
| 768 |
+
|
| 769 |
+
* http://code.google.com/p/rdflib/issues/detail?id=133
|
| 770 |
+
|
| 771 |
+
Graph.connected exception when passed empty graph
|
| 772 |
+
|
| 773 |
+
* http://code.google.com/p/rdflib/issues/detail?id=129
|
| 774 |
+
|
| 775 |
+
Not compatible with Python 2.4
|
| 776 |
+
|
| 777 |
+
* http://code.google.com/p/rdflib/issues/detail?id=119
|
| 778 |
+
|
| 779 |
+
Support Python's set operations on Graph
|
| 780 |
+
|
| 781 |
+
* http://code.google.com/p/rdflib/issues/detail?id=130
|
| 782 |
+
|
| 783 |
+
NT output encoding to utf-8 broken as it goes through
|
| 784 |
+
|
| 785 |
+
_xmlcharrefreplace
|
| 786 |
+
|
| 787 |
+
* http://code.google.com/p/rdflib/issues/detail?id=121#c1
|
| 788 |
+
|
| 789 |
+
Store SPARQL Support
|
| 790 |
+
|
| 791 |
+
|
| 792 |
+
2010/05/13 RELEASE 3.0.0
|
| 793 |
+
========================
|
| 794 |
+
|
| 795 |
+
Working test suite with all tests passing.
|
| 796 |
+
|
| 797 |
+
Removed dependency on setuptools.
|
| 798 |
+
|
| 799 |
+
(Issue #43) Updated Package and Module Names to follow
|
| 800 |
+
conventions outlined in
|
| 801 |
+
http://www.python.org/dev/peps/pep-0008/
|
| 802 |
+
|
| 803 |
+
Removed SPARQL bits and non core plugins. They are mostly
|
| 804 |
+
moving to http://code.google.com/p/rdfextras/ at least until
|
| 805 |
+
they are stable.
|
| 806 |
+
|
| 807 |
+
Fixed datatype for Literal(True).
|
| 808 |
+
|
| 809 |
+
Fixed Literal to enforce contraint of having either a language
|
| 810 |
+
or datatype but not both.
|
| 811 |
+
|
| 812 |
+
Fixed Literal's repr.
|
| 813 |
+
|
| 814 |
+
Fixed to Graph Add/Sub/Mul opterators.
|
| 815 |
+
|
| 816 |
+
Upgraded RDFa parser to pyRdfa.
|
| 817 |
+
|
| 818 |
+
Upgraded N3 parser to the one from CWM.
|
| 819 |
+
|
| 820 |
+
Fixed unicode encoding issue involving N3Parser.
|
| 821 |
+
|
| 822 |
+
N3 serializer improvments.
|
| 823 |
+
|
| 824 |
+
Fixed HTTP content-negotiation
|
| 825 |
+
|
| 826 |
+
Fixed Store.namespaces method (which caused a few issues
|
| 827 |
+
depending on Store implementation being used.)
|
| 828 |
+
|
| 829 |
+
Fixed interoperability issue with plugin module.
|
| 830 |
+
|
| 831 |
+
Fixed use of Deprecated functionality.
|
| 832 |
+
|
| 833 |
+
2009/03/30 RELEASE 2.4.1
|
| 834 |
+
========================
|
| 835 |
+
|
| 836 |
+
Fixed Literal comparison case involving Literal's with
|
| 837 |
+
datatypes of XSD.base64Binary.
|
| 838 |
+
|
| 839 |
+
Fixed case where XSD.date was matching before XSD.dateTime for
|
| 840 |
+
datetime instances.
|
| 841 |
+
|
| 842 |
+
Fixed jython interoperability issue (issue #53).
|
| 843 |
+
|
| 844 |
+
Fixed Literal repr to handle apostrophes correctly (issue #28).
|
| 845 |
+
|
| 846 |
+
Fixed Literal's repr to be consistent with its ```__init__``` (issue #33).
|
| 847 |
+
|
| 848 |
+
|
| 849 |
+
2007/04/04 RELEASE 2.4.0
|
| 850 |
+
========================
|
| 851 |
+
|
| 852 |
+
Improved Literal comparison / equality
|
| 853 |
+
|
| 854 |
+
Sparql cleanup.
|
| 855 |
+
|
| 856 |
+
getLiteralValue now returns the Literal object instead of the
|
| 857 |
+
result of toPython(). Now that Literals override a good
|
| 858 |
+
coverage of comparison operators, they should be passed around
|
| 859 |
+
as first class objects in the SPARQL evaluation engine.
|
| 860 |
+
|
| 861 |
+
Added support for session bnodes re: sparql
|
| 862 |
+
|
| 863 |
+
Fixed prolog reduce/reduce conflict. Added Py_None IncRefs
|
| 864 |
+
where they were being passed into Python method invokations
|
| 865 |
+
(per drewp's patch)
|
| 866 |
+
|
| 867 |
+
Fixed sparql queries involving empty namespace prefix.
|
| 868 |
+
|
| 869 |
+
Fixed the selected variables sparql issue
|
| 870 |
+
|
| 871 |
+
Fixed <BASE> support in SPARQL queries.
|
| 872 |
+
|
| 873 |
+
Fixed involving multiple unions and queries are nested more
|
| 874 |
+
than one level (bug in _getAllVariables causing failure when
|
| 875 |
+
parent.top is None)
|
| 876 |
+
|
| 877 |
+
Fixed test_sparql_equals.py.
|
| 878 |
+
|
| 879 |
+
Fixed sparql json result comma errors issue.
|
| 880 |
+
|
| 881 |
+
Fixed test_sparql_json_results.py (SELECT * variables out of
|
| 882 |
+
order)
|
| 883 |
+
|
| 884 |
+
Added a 4Suite-based SPARQL XML Writer implementation. If
|
| 885 |
+
4Suite is not installed, the fallback python saxutils is used
|
| 886 |
+
instead
|
| 887 |
+
|
| 888 |
+
applied patch from
|
| 889 |
+
http://rdflib.net/issues/2007/02/23/bugs_in_rdflib.sparql.queryresult/issue
|
| 890 |
+
|
| 891 |
+
The restriction on GRAPH patterns with variables has been
|
| 892 |
+
relieved a bit to allow such usage when the variable is
|
| 893 |
+
provided as an initial binding
|
| 894 |
+
|
| 895 |
+
Fix for OPTIONAL patterns. P1 OPT P2, where P1 and P2 shared
|
| 896 |
+
variables which were bound to BNodes were not unifying on
|
| 897 |
+
these BNode variable efficiently / correctly. The fix was to
|
| 898 |
+
add bindings for 'stored' BNodes so they aren't confused for
|
| 899 |
+
wildcards
|
| 900 |
+
|
| 901 |
+
|
| 902 |
+
|
| 903 |
+
|
| 904 |
+
Added support to n3 parser for retaining namespace bindings.
|
| 905 |
+
|
| 906 |
+
Fixed several RDFaParser bugs.
|
| 907 |
+
|
| 908 |
+
Added serializer specific argument support.
|
| 909 |
+
|
| 910 |
+
Fixed a few PrettyXMLSerializer issues and added a max_depth
|
| 911 |
+
option.
|
| 912 |
+
|
| 913 |
+
Fixed some TurtleSerializer issues.
|
| 914 |
+
|
| 915 |
+
Fixed some N3Serializer issues.
|
| 916 |
+
|
| 917 |
+
|
| 918 |
+
|
| 919 |
+
Added support easy_install
|
| 920 |
+
|
| 921 |
+
added link to long_descriptin for easy_install -U rdflib==dev
|
| 922 |
+
to work; added download_url back
|
| 923 |
+
|
| 924 |
+
added continuous-releases-using-subversion bit
|
| 925 |
+
|
| 926 |
+
|
| 927 |
+
|
| 928 |
+
Added rdflib_tools package
|
| 929 |
+
Added rdfpipe
|
| 930 |
+
Added initial EARLPluging
|
| 931 |
+
|
| 932 |
+
|
| 933 |
+
|
| 934 |
+
Improved test running... using nose... added tests
|
| 935 |
+
|
| 936 |
+
Exposed generated test cases for nose to find.
|
| 937 |
+
added bit to configure 'setup.py nosetests' to run doc tests
|
| 938 |
+
|
| 939 |
+
added nose test bits
|
| 940 |
+
|
| 941 |
+
|
| 942 |
+
|
| 943 |
+
Added md5_term_hash method to terms.
|
| 944 |
+
|
| 945 |
+
Added commit_pending_transaction argument to Graph's close
|
| 946 |
+
method.
|
| 947 |
+
|
| 948 |
+
Added DeprecationWarning to rdflib.constants
|
| 949 |
+
|
| 950 |
+
Added a NamespaceDict class for those who want to avoid the
|
| 951 |
+
Namespace as subclass of URIRef issues
|
| 952 |
+
|
| 953 |
+
Added bind function
|
| 954 |
+
|
| 955 |
+
Fixed type of Namespace re: URIRef vs. unicode
|
| 956 |
+
|
| 957 |
+
Improved ValueError message
|
| 958 |
+
|
| 959 |
+
Changed value method's any argument to default to True
|
| 960 |
+
|
| 961 |
+
Changed ```__repr__``` to always reflect that it's an rdf.Literal --
|
| 962 |
+
as this is the case even though we now have it acting like the
|
| 963 |
+
corresponding type in some casses
|
| 964 |
+
|
| 965 |
+
A DISTINCT was added to the SELECT clause to ensure duplicate
|
| 966 |
+
triples are not returned (an RDF graph is a set of triples) -
|
| 967 |
+
which can happen for certain join expressions.
|
| 968 |
+
|
| 969 |
+
Support for ConditionalAndExpressionList and
|
| 970 |
+
RelationalExpressionList (|| and && operators in FILTER)
|
| 971 |
+
|
| 972 |
+
Fixed context column comparison. The hash integer was being
|
| 973 |
+
compared with 'F' causing a warning:Warning: Truncated
|
| 974 |
+
incorrect DOUBLE value: 'F'
|
| 975 |
+
|
| 976 |
+
applied patch in
|
| 977 |
+
http://rdflib.net/issues/2006/12/13/typos_in_abstractsqlstore.py/issue
|
| 978 |
+
|
| 979 |
+
fix for
|
| 980 |
+
http://rdflib.net/issues/2006/12/07/problems_with_graph.seq()_when_sequences_contain_more_than_9_items./issue
|
| 981 |
+
|
| 982 |
+
|
| 983 |
+
|
| 984 |
+
|
| 985 |
+
|
| 986 |
+
General code cleanup (removing redundant imports, changing
|
| 987 |
+
relative imports to absolute imports etc)
|
| 988 |
+
|
| 989 |
+
Removed usage of deprecated bits.
|
| 990 |
+
|
| 991 |
+
Added a number of test cases.
|
| 992 |
+
|
| 993 |
+
Added DeprecationWarning for save method
|
| 994 |
+
|
| 995 |
+
refactoring of GraphPattern
|
| 996 |
+
|
| 997 |
+
ReadOnlyGraphAggregate uses Graph constructor properly to
|
| 998 |
+
setup (optionally) a common store
|
| 999 |
+
|
| 1000 |
+
|
| 1001 |
+
Fixed bug with . (fullstop) in localname parts.
|
| 1002 |
+
|
| 1003 |
+
Changed Graph's value method to return None instead of raising
|
| 1004 |
+
an AssertionError.
|
| 1005 |
+
|
| 1006 |
+
Fixed conversion of (exiplicit) MySQL ports to integers.
|
| 1007 |
+
|
| 1008 |
+
Fixed MySQL store so it properly calculates ```__len__``` of
|
| 1009 |
+
individual Graphs
|
| 1010 |
+
|
| 1011 |
+
Aligned with how Sleepycat is generating events (remove events
|
| 1012 |
+
are expressed in terms of interned strings)
|
| 1013 |
+
|
| 1014 |
+
Added code to catch unpickling related exceptions
|
| 1015 |
+
|
| 1016 |
+
Added BerkeleyDB store implementation.
|
| 1017 |
+
|
| 1018 |
+
Merged TextIndex from michel-events branch.
|
| 1019 |
+
|
| 1020 |
+
|
| 1021 |
+
2006/10/15 RELEASE 2.3.3
|
| 1022 |
+
========================
|
| 1023 |
+
|
| 1024 |
+
Added TriXParser, N3Serializer and TurtleSerializer.
|
| 1025 |
+
|
| 1026 |
+
Added events to store interface: StoreCreated, TripleAdded and
|
| 1027 |
+
TripleRemoved.
|
| 1028 |
+
|
| 1029 |
+
Added Journal Reader and Writer.
|
| 1030 |
+
|
| 1031 |
+
Removed Sleepycat level journaling.
|
| 1032 |
+
|
| 1033 |
+
Added support for triple quoted Literal's.
|
| 1034 |
+
|
| 1035 |
+
Fixed some corner cases with Literal comparison.
|
| 1036 |
+
|
| 1037 |
+
Fixed PatternResolution for patterns that return contexts only.
|
| 1038 |
+
|
| 1039 |
+
Fixed NodePickler not to choke on unhashable objects.
|
| 1040 |
+
|
| 1041 |
+
Fixed Namespace's ```__getattr__``` hack to ignore names starting
|
| 1042 |
+
with __
|
| 1043 |
+
|
| 1044 |
+
Added SPARQL != operator.
|
| 1045 |
+
|
| 1046 |
+
Fixed query result ```__len__``` (more efficient).
|
| 1047 |
+
|
| 1048 |
+
Fixed and improved RDFa parser.
|
| 1049 |
+
|
| 1050 |
+
redland patches from
|
| 1051 |
+
http://rdflib.net/pipermail/dev/2006-September/000069.html
|
| 1052 |
+
|
| 1053 |
+
various patches for the testsuite -
|
| 1054 |
+
http://rdflib.net/pipermail/dev/2006-September/000069.html
|
| 1055 |
+
|
| 1056 |
+
|
| 1057 |
+
2006/08/01 RELEASE 2.3.2
|
| 1058 |
+
========================
|
| 1059 |
+
|
| 1060 |
+
Added SPARQL query support.
|
| 1061 |
+
|
| 1062 |
+
Added XSD to/from Python datatype support to Literals.
|
| 1063 |
+
|
| 1064 |
+
Fixed ConjunctiveGraph so that it is a proper subclass of Graph.
|
| 1065 |
+
|
| 1066 |
+
Added Deprecation Warning when BackwardCompatGraph gets used.
|
| 1067 |
+
|
| 1068 |
+
Added RDFa parser.
|
| 1069 |
+
|
| 1070 |
+
Added Collection Class for working with RDF Collections.
|
| 1071 |
+
|
| 1072 |
+
Added method to Graph for testing connectedness
|
| 1073 |
+
|
| 1074 |
+
Fixed bug in N3 parser where identical BNodes were not being combined.
|
| 1075 |
+
|
| 1076 |
+
Fixed literal quoting in N3 serializer.
|
| 1077 |
+
|
| 1078 |
+
Fixed RDF/XML serializer to skip over N3 bits.
|
| 1079 |
+
|
| 1080 |
+
Changed Literal and URIRef instanciation to catch
|
| 1081 |
+
UnicodeDecodeErrors - which were being thrown when the default
|
| 1082 |
+
decoding method (ascii) was hitting certain characters.
|
| 1083 |
+
|
| 1084 |
+
Changed Graph's bind method to also override the binding in
|
| 1085 |
+
the case of an existing generated bindings.
|
| 1086 |
+
|
| 1087 |
+
Added FOPLRelationalModel - a set of utility classes that
|
| 1088 |
+
implement a minimal Relational Model of FOPL implemented as a
|
| 1089 |
+
SQL database (uses identifier/value interning and integer
|
| 1090 |
+
half-md5-hashes for space and index efficiency).
|
| 1091 |
+
|
| 1092 |
+
Changed MySQL store to use FOPLRelationalModel plus fixes and
|
| 1093 |
+
improvements.
|
| 1094 |
+
|
| 1095 |
+
Added more test cases.
|
| 1096 |
+
|
| 1097 |
+
Cleaned up source code to follow pep8 / pep257.
|
| 1098 |
+
|
| 1099 |
+
|
| 1100 |
+
2006/02/27 RELEASE 2.3.1
|
| 1101 |
+
========================
|
| 1102 |
+
|
| 1103 |
+
Added save method to BackwardCompatibleGraph so that
|
| 1104 |
+
example.py etc work again.
|
| 1105 |
+
|
| 1106 |
+
Applied patch from Drew Perttula to add local_time_zone
|
| 1107 |
+
argument to util's date_time method.
|
| 1108 |
+
|
| 1109 |
+
Fixed a relativize bug in the rdf/xml serializer.
|
| 1110 |
+
|
| 1111 |
+
Fixed NameError: global name 'URIRef' is not defined error in
|
| 1112 |
+
Sleepycat.py by adding missing import.
|
| 1113 |
+
|
| 1114 |
+
Applied patch for Seq to sort list by integer, added by Drew
|
| 1115 |
+
Hess.
|
| 1116 |
+
|
| 1117 |
+
Added a preserve_bnode_ids option to rdf/xml parser.
|
| 1118 |
+
|
| 1119 |
+
Applied assorted patches for tests (see
|
| 1120 |
+
http://tracker.asemantics.com/rdflib/ticket/8 )
|
| 1121 |
+
|
| 1122 |
+
Applied redland.diff (see
|
| 1123 |
+
http://tracker.asemantics.com/rdflib/ticket/9 )
|
| 1124 |
+
|
| 1125 |
+
Applied changes specified
|
| 1126 |
+
http://tracker.asemantics.com/rdflib/ticket/7
|
| 1127 |
+
|
| 1128 |
+
Added a set method to Graph.
|
| 1129 |
+
|
| 1130 |
+
Fixed RDF/XML serializer so that it does not choke on n3 bits
|
| 1131 |
+
(rather it'll just ignore them)
|
| 1132 |
+
|
| 1133 |
+
|
| 1134 |
+
2005/12/23 RELEASE 2.3.0
|
| 1135 |
+
========================
|
| 1136 |
+
|
| 1137 |
+
See http://rdflib.net/2.3.0/ for most up-to-date release notes
|
| 1138 |
+
|
| 1139 |
+
Added N3 support to Graph and Store.
|
| 1140 |
+
|
| 1141 |
+
Added Sean's n3p parser, and ntriples parser.
|
| 1142 |
+
|
| 1143 |
+
Sleepycat implementation has been revamped in the process of
|
| 1144 |
+
expanding it to support the new requirements n3
|
| 1145 |
+
requirements. It also now persists a journal -- more to come.
|
| 1146 |
+
|
| 1147 |
+
detabified source files.
|
| 1148 |
+
|
| 1149 |
+
Literal and parsers now distinguish between datatype of None and datatype of "".
|
| 1150 |
+
|
| 1151 |
+
Store-agnostic 'fallback' implementation of REGEX matching
|
| 1152 |
+
(inefficient but provides the capability to stores that don't
|
| 1153 |
+
support it natively). Implemented as a 'wrapper' around any
|
| 1154 |
+
Store which replaces REGEX terms with None (before dispatching
|
| 1155 |
+
to the store) and whittles out results that don't match the
|
| 1156 |
+
given REGEX term expression(s).
|
| 1157 |
+
|
| 1158 |
+
Store-agnostic 'fallback' implementation of transactional
|
| 1159 |
+
rollbacks (also inefficient but provides the capablity to
|
| 1160 |
+
stores that don't support it natively). Implemented as a
|
| 1161 |
+
wrapper that tracks a 'thread-safe' list of reversal
|
| 1162 |
+
operations (for every add, track the remove call that reverts
|
| 1163 |
+
the store, and vice versa). Upon store.rollback(), execute the
|
| 1164 |
+
reverse operations. However, this doesn't guarantee
|
| 1165 |
+
durability, since if the system fails before the rollbacks are
|
| 1166 |
+
all executed, the store will remain in an invalid state, but
|
| 1167 |
+
it provides Atomicity in the best case scenario.
|
| 1168 |
+
|
| 1169 |
+
|
| 1170 |
+
2005/10/10 RELEASE 2.2.3
|
| 1171 |
+
========================
|
| 1172 |
+
|
| 1173 |
+
Fixed Sleepycat backend to commit after an add and
|
| 1174 |
+
remove. This should help just a bit with those unclean
|
| 1175 |
+
shutdowns ;)
|
| 1176 |
+
|
| 1177 |
+
Fixed use of logging so that it does not mess with the root
|
| 1178 |
+
logger. Thank you, Arve, for pointing this one out.
|
| 1179 |
+
|
| 1180 |
+
Fixed Graph's value method to have default for subject in
|
| 1181 |
+
addition to predicate and object.
|
| 1182 |
+
|
| 1183 |
+
Fixed Fourthought backend to be consistent with interface. It
|
| 1184 |
+
now supports an empty constructor and an open method that
|
| 1185 |
+
takes a configuration string.
|
| 1186 |
+
|
| 1187 |
+
|
| 1188 |
+
2005/09/10 RELEASE 2.2.2
|
| 1189 |
+
========================
|
| 1190 |
+
|
| 1191 |
+
Applied patch from inkel to add encoding argument to all
|
| 1192 |
+
serialization related methods.
|
| 1193 |
+
|
| 1194 |
+
Fixed XMLSerializer bug regarding default namespace bindings.
|
| 1195 |
+
|
| 1196 |
+
Fixed namespace binding bug involving binding a second default
|
| 1197 |
+
namespace.
|
| 1198 |
+
|
| 1199 |
+
Applied patch from Gunnar AAstrand Grimnes to add context
|
| 1200 |
+
support to ```__iadd__``` on Graph. (Am considering the lack of
|
| 1201 |
+
context support a bug. Any users currently using ```__iadd__```, let
|
| 1202 |
+
me know if this breaks any of your code.)
|
| 1203 |
+
|
| 1204 |
+
Added Fourthought backend contributed by Chimezie Ogbuji.
|
| 1205 |
+
|
| 1206 |
+
Fixed a RDF/XML parser bug relating to XMLLiteral and
|
| 1207 |
+
escaping.
|
| 1208 |
+
|
| 1209 |
+
Fixed setup.py so that install does not try to uninstall
|
| 1210 |
+
(rename_old) before installing; there's now an uninstall
|
| 1211 |
+
command if one needs to uninstall.
|
| 1212 |
+
|
| 1213 |
+
|
| 1214 |
+
2005/08/25 RELEASE 2.2.1
|
| 1215 |
+
========================
|
| 1216 |
+
|
| 1217 |
+
Fixed issue regarding Python2.3 compatibility.
|
| 1218 |
+
|
| 1219 |
+
Fixed minor issue with URIRef's absolute method.
|
| 1220 |
+
|
| 1221 |
+
|
| 1222 |
+
2005/08/12 RELEASE 2.1.4
|
| 1223 |
+
========================
|
| 1224 |
+
|
| 1225 |
+
Added optional base argument to URIRef.
|
| 1226 |
+
|
| 1227 |
+
Fixed bug where load and parse had inconsistent behavior.
|
| 1228 |
+
|
| 1229 |
+
Added a FileInputSource.
|
| 1230 |
+
|
| 1231 |
+
Added skeleton sparql parser and test framework.
|
| 1232 |
+
|
| 1233 |
+
Included pyparsing (pyparsing.sourceforge.net) for sparql parsing.
|
| 1234 |
+
|
| 1235 |
+
Added attribute support to namespaces.
|
| 1236 |
+
|
| 1237 |
+
|
| 1238 |
+
2005/06/28 RELEASE 2.1.3
|
| 1239 |
+
========================
|
| 1240 |
+
|
| 1241 |
+
Added Ivan's sparql-p implementation.
|
| 1242 |
+
|
| 1243 |
+
Literal is now picklable.
|
| 1244 |
+
|
| 1245 |
+
Added optional base argument to serialize methods about which to relativize.
|
| 1246 |
+
|
| 1247 |
+
Applied patch to remove some dependencies on Python 2.4
|
| 1248 |
+
features.
|
| 1249 |
+
|
| 1250 |
+
Fixed BNode's n3 serialization bug (recently introduced).
|
| 1251 |
+
|
| 1252 |
+
Fixed a collections related bug.
|
| 1253 |
+
|
| 1254 |
+
|
| 1255 |
+
2005/05/13 RELEASE 2.1.2
|
| 1256 |
+
========================
|
| 1257 |
+
|
| 1258 |
+
Added patch from Sidnei da Silva that adds a sqlobject based backend.
|
| 1259 |
+
|
| 1260 |
+
Fixed bug in PrettyXMLSerializer (rdf prefix decl was missing sometimes)
|
| 1261 |
+
|
| 1262 |
+
Fixed bug in RDF/XML parser where empty collections where
|
| 1263 |
+
causing exceptions.
|
| 1264 |
+
|
| 1265 |
+
|
| 1266 |
+
2005/05/01 RELEASE 2.1.1
|
| 1267 |
+
========================
|
| 1268 |
+
|
| 1269 |
+
Fixed a number of bugs relating to 2.0 backward compatibility.
|
| 1270 |
+
|
| 1271 |
+
Fixed split_uri to handle URIs with _ in them properly.
|
| 1272 |
+
|
| 1273 |
+
Fixed bug in RDF/XML handler's absolutize that would cause some URIRefs to end in ##
|
| 1274 |
+
|
| 1275 |
+
Added check_context to Graph.
|
| 1276 |
+
|
| 1277 |
+
Added patch the improves IOMemory implementation.
|
| 1278 |
+
|
| 1279 |
+
|
| 1280 |
+
2005/04/12 RELEASE 2.1.0
|
| 1281 |
+
========================
|
| 1282 |
+
|
| 1283 |
+
Merged TripleStore and InformationStore into Graph.
|
| 1284 |
+
|
| 1285 |
+
Added plugin support (or at least cleaned up, made consistent the
|
| 1286 |
+
plugin support that existed).
|
| 1287 |
+
|
| 1288 |
+
Added value and seq methods to Graph.
|
| 1289 |
+
|
| 1290 |
+
Renamed prefix_mapping to bind.
|
| 1291 |
+
|
| 1292 |
+
Added namespaces method that is a generator over all prefix,
|
| 1293 |
+
namespace bindings.
|
| 1294 |
+
|
| 1295 |
+
Added notion of NamespaceManager.
|
| 1296 |
+
|
| 1297 |
+
Added couple new backends, IOMemory and ZODB.
|
| 1298 |
+
|
| 1299 |
+
|
| 1300 |
+
2005/03/19 RELEASE 2.0.6
|
| 1301 |
+
========================
|
| 1302 |
+
|
| 1303 |
+
Added pretty-xml serializer (inlines BNodes where possible,
|
| 1304 |
+
typed nodes, Collections).
|
| 1305 |
+
|
| 1306 |
+
Fixed bug in NTParser and n3 methods where not all characters
|
| 1307 |
+
where being escaped.
|
| 1308 |
+
|
| 1309 |
+
Changed label and comment methods to return default passed in
|
| 1310 |
+
when there is no label or comment. Moved methods to Store
|
| 1311 |
+
Class. Store no longer inherits from Schema.
|
| 1312 |
+
|
| 1313 |
+
Fixed bug involving a case with rdf:about='#'
|
| 1314 |
+
|
| 1315 |
+
Changed InMemoryBackend to update third index in the same style it
|
| 1316 |
+
does the first two.
|
| 1317 |
+
|
| 1318 |
+
|
| 1319 |
+
2005/01/08 RELEASE 2.0.5
|
| 1320 |
+
========================
|
| 1321 |
+
|
| 1322 |
+
Added publicID argument to Store's load method.
|
| 1323 |
+
|
| 1324 |
+
Added RDF and RDFS to top level rdflib package.
|
| 1325 |
+
|
| 1326 |
+
|
| 1327 |
+
2004/10/14 RELEASE 2.0.4
|
| 1328 |
+
========================
|
| 1329 |
+
|
| 1330 |
+
Removed unfinished functionality.
|
| 1331 |
+
|
| 1332 |
+
Fixed bug where another prefix other than rdf was getting
|
| 1333 |
+
defined for the rdf namespace (causing an assertion to fail).
|
| 1334 |
+
|
| 1335 |
+
Fixed bug in serializer where nodeIDs were not valid NCNames.
|
| 1336 |
+
|
| 1337 |
+
|
| 1338 |
+
2004/04/21 RELEASE 2.0.3
|
| 1339 |
+
========================
|
| 1340 |
+
|
| 1341 |
+
Added missing "from __future__ import generators" statement to
|
| 1342 |
+
InformationStore.
|
| 1343 |
+
|
| 1344 |
+
Simplified RDF/XML serializer fixing a few bugs involving
|
| 1345 |
+
BNodes.
|
| 1346 |
+
|
| 1347 |
+
Added a reset method to RDF/XML parser.
|
| 1348 |
+
|
| 1349 |
+
Changed 'if foo' to "if foo is not None" in a few places in
|
| 1350 |
+
the RDF/XML parser.
|
| 1351 |
+
|
| 1352 |
+
Fully qualified imports in rdflib.syntax {parser, serializer}.
|
| 1353 |
+
|
| 1354 |
+
Context now goes through InformationStore (was bypassing it
|
| 1355 |
+
going directly to backend).
|
| 1356 |
+
|
| 1357 |
+
|
| 1358 |
+
2004/03/22 RELEASE 2.0.2
|
| 1359 |
+
========================
|
| 1360 |
+
|
| 1361 |
+
Improved performance of Identifier equality tests.
|
| 1362 |
+
|
| 1363 |
+
Added missing "from __future__ import generators" statements
|
| 1364 |
+
needed to run on Python2.2.
|
| 1365 |
+
|
| 1366 |
+
Added alternative to shlib.move() if it isn't present.
|
| 1367 |
+
|
| 1368 |
+
Fixed bug that occured when specifying a backend to
|
| 1369 |
+
InformationStore's constructor.
|
| 1370 |
+
|
| 1371 |
+
Fixed bug recently introduced into InformationStore's remove
|
| 1372 |
+
method.
|
| 1373 |
+
|
| 1374 |
+
|
| 1375 |
+
2004/03/15 RELEASE 2.0.1
|
| 1376 |
+
========================
|
| 1377 |
+
|
| 1378 |
+
Fixed a bug in the SleepyCatBackend multi threaded concurrency
|
| 1379 |
+
support. (Tested fairly extensively under the following
|
| 1380 |
+
conditions: multi threaded, multi process, and both).
|
| 1381 |
+
|
| 1382 |
+
> NOTE: fix involved change to database format -- so 2.0.1 will not be
|
| 1383 |
+
> able to open databases created with 2.0.0
|
| 1384 |
+
|
| 1385 |
+
Removed the use of the Concurrent wrapper around
|
| 1386 |
+
InMemoryBackend and modified InMemoryBackend to handle
|
| 1387 |
+
concurrent requests. (Motivated by Concurrent's poor
|
| 1388 |
+
performance on bigger TripleStores.)
|
| 1389 |
+
|
| 1390 |
+
Improved the speed of len(store) by making backends
|
| 1391 |
+
responsible for implementing ```__len__```.
|
| 1392 |
+
|
| 1393 |
+
Context objects now have a identifier property.
|
| 1394 |
+
|
| 1395 |
+
|
| 1396 |
+
2004/03/10 RELEASE 2.0.0
|
| 1397 |
+
========================
|
| 1398 |
+
|
| 1399 |
+
Fixed a few bugs in the SleepyCatBackend multi process
|
| 1400 |
+
concurrency support.
|
| 1401 |
+
|
| 1402 |
+
Removed rdflib.Resource
|
| 1403 |
+
|
| 1404 |
+
Changed remove to now take a triple pattern and removed
|
| 1405 |
+
remove_triples method.
|
| 1406 |
+
|
| 1407 |
+
Added ```__iadd__``` method to Store in support of store +=
|
| 1408 |
+
another_store.
|
| 1409 |
+
|
| 1410 |
+
|
| 1411 |
+
2004/01/04 RELEASE 1.3.2
|
| 1412 |
+
========================
|
| 1413 |
+
|
| 1414 |
+
Added a serialization dispatcher.
|
| 1415 |
+
|
| 1416 |
+
Added format arg to save method.
|
| 1417 |
+
|
| 1418 |
+
Store now remembers prefix/namespace bindings.
|
| 1419 |
+
|
| 1420 |
+
Backends are now more pluggable
|
| 1421 |
+
|
| 1422 |
+
...
|
| 1423 |
+
|
| 1424 |
+
2003/10/14 RELEASE 1.3.1
|
| 1425 |
+
========================
|
| 1426 |
+
|
| 1427 |
+
Fixed bug in serializer where triples where only getting
|
| 1428 |
+
serialized the first time.
|
| 1429 |
+
|
| 1430 |
+
Added type checking for contexts.
|
| 1431 |
+
|
| 1432 |
+
Fixed bug that caused comparisons with a Literal to fail when
|
| 1433 |
+
the right hand side was not a string.
|
| 1434 |
+
|
| 1435 |
+
Added DB_INIT_CDB flag to SCBacked for supporting multiple
|
| 1436 |
+
reader/single writer access
|
| 1437 |
+
|
| 1438 |
+
Changed rdf:RDF to be optional to conform with latest spec.
|
| 1439 |
+
|
| 1440 |
+
Fixed handling of XMLLiterals
|
| 1441 |
+
|
| 1442 |
+
|
| 1443 |
+
2003/04/40 RELEASE 1.3.0
|
| 1444 |
+
========================
|
| 1445 |
+
|
| 1446 |
+
Removed bag_id support and added it to OLD_TERMS.
|
| 1447 |
+
|
| 1448 |
+
Added a double hash for keys in SCBacked.
|
| 1449 |
+
|
| 1450 |
+
Fixed _HTTPClient so that it no longer removes metadata about
|
| 1451 |
+
a context right after it adds it.
|
| 1452 |
+
|
| 1453 |
+
Added a KDTreeStore and RedlandStore backends.
|
| 1454 |
+
|
| 1455 |
+
Added a StoreTester.
|
| 1456 |
+
|
| 1457 |
+
|
| 1458 |
+
2003/02/28 RELEASE 1.2.4
|
| 1459 |
+
========================
|
| 1460 |
+
|
| 1461 |
+
Fixed bug in SCBackend where language and datatype information
|
| 1462 |
+
where being ignored.
|
| 1463 |
+
|
| 1464 |
+
Fixed bug in transitive_subjects.
|
| 1465 |
+
|
| 1466 |
+
Updated some of the test cases that where not up to date.
|
| 1467 |
+
|
| 1468 |
+
async_load now adds more http header and error information to
|
| 1469 |
+
the InformationStore.
|
| 1470 |
+
|
| 1471 |
+
|
| 1472 |
+
2003/02/11 RELEASE 1.2.3
|
| 1473 |
+
========================
|
| 1474 |
+
|
| 1475 |
+
Fixed bug in load methods where relative URLs where not being
|
| 1476 |
+
absolutized correctly on Windows.
|
| 1477 |
+
|
| 1478 |
+
Fixed serializer so that it throws an exception when trying to
|
| 1479 |
+
serialize a graph with a predicate that can not be split.
|
| 1480 |
+
|
| 1481 |
+
|
| 1482 |
+
2003/02/07 RELEASE 1.2.2
|
| 1483 |
+
========================
|
| 1484 |
+
|
| 1485 |
+
Added an exists method to the BackwardCompatibility mixin.
|
| 1486 |
+
|
| 1487 |
+
Added versions of remove, remove_triples and triples methods
|
| 1488 |
+
to the BackwardCompatility mixin for TripleStores that take an
|
| 1489 |
+
s, p, o as opposed to an (s, p, o).
|
| 1490 |
+
|
| 1491 |
+
|
| 1492 |
+
2003/02/03 RELEASE 1.2.1
|
| 1493 |
+
========================
|
| 1494 |
+
|
| 1495 |
+
Added support for parsing XMLLiterals.
|
| 1496 |
+
|
| 1497 |
+
Added support for proper charmod checking (only works in
|
| 1498 |
+
Python2.3).
|
| 1499 |
+
|
| 1500 |
+
Fixed remaining rdfcore test cases that where not passing.
|
| 1501 |
+
|
| 1502 |
+
Fixed windows bug in AbstractInformationStore's run method.
|
| 1503 |
+
|
| 1504 |
+
|
| 1505 |
+
2003/01/02 RELEASE 1.2.0
|
| 1506 |
+
========================
|
| 1507 |
+
|
| 1508 |
+
Added systemID, line #, and column # to error messages.
|
| 1509 |
+
|
| 1510 |
+
BNode prefix is now composed of ascii_letters instead of letters.
|
| 1511 |
+
|
| 1512 |
+
Added a bsddb backed InformationStore.
|
| 1513 |
+
|
| 1514 |
+
Added an asyncronous load method, methods for scheduling context
|
| 1515 |
+
updates, and a run method.
|
| 1516 |
+
|
| 1517 |
+
|
| 1518 |
+
2002/12/16 RELEASE 1.1.5
|
| 1519 |
+
========================
|
| 1520 |
+
|
| 1521 |
+
Introduction of InformationStore, a TripleStore with the
|
| 1522 |
+
addition of context support.
|
| 1523 |
+
|
| 1524 |
+
Resource ```__getitem__``` now returns object (no longer returns a
|
| 1525 |
+
Resource for the object).
|
| 1526 |
+
|
| 1527 |
+
Fixed bug in parser that was introduced in last release
|
| 1528 |
+
regaurding unqualified names.
|
| 1529 |
+
|
| 1530 |
+
|
| 1531 |
+
2002/12/10 RELEASE 1.1.4
|
| 1532 |
+
========================
|
| 1533 |
+
|
| 1534 |
+
Interface realigned with last stable release.
|
| 1535 |
+
|
| 1536 |
+
Serializer now uses more of the abbreviated forms where
|
| 1537 |
+
possible.
|
| 1538 |
+
|
| 1539 |
+
Parser optimized and cleaned up.
|
| 1540 |
+
|
| 1541 |
+
Added third index to InMemoryStore.
|
| 1542 |
+
|
| 1543 |
+
The load and parse methods now take a single argument.
|
| 1544 |
+
|
| 1545 |
+
Added a StringInputSource for to support parsing from strings.
|
| 1546 |
+
|
| 1547 |
+
Renamed rdflib.BTreeTripleStore.TripleStore to
|
| 1548 |
+
rdflib.BTreeTripleStore.BTreeTripleStore.
|
| 1549 |
+
|
| 1550 |
+
Minor reorganization of mix-in classes.
|
| 1551 |
+
|
| 1552 |
+
|
| 1553 |
+
2002/12/03 RELEASE 1.1.3
|
| 1554 |
+
========================
|
| 1555 |
+
|
| 1556 |
+
BNodes now created with a more unique identifier so BNodes
|
| 1557 |
+
from different sessions do not collide.
|
| 1558 |
+
|
| 1559 |
+
Added initial support for XML Literals (for now they are
|
| 1560 |
+
parsed into Literals).
|
| 1561 |
+
|
| 1562 |
+
Resource is no longer a special kind of URIRef.
|
| 1563 |
+
|
| 1564 |
+
Resource no longer looks at range to determine default return
|
| 1565 |
+
type for ```__getitem__```. Instead there is now a get(predicate, default)
|
| 1566 |
+
method.
|
| 1567 |
+
|
| 1568 |
+
|
| 1569 |
+
2002/11/21 RELEASE 1.1.2
|
| 1570 |
+
========================
|
| 1571 |
+
|
| 1572 |
+
Fixed Literal's ```__eq__``` method so that Literal('foo')=='foo' etc.
|
| 1573 |
+
|
| 1574 |
+
Fixed Resource's ```__setitem__``` method so that it does not raise
|
| 1575 |
+
a dictionary changed size while iterating exception.
|
| 1576 |
+
|
| 1577 |
+
|
| 1578 |
+
2002/11/09 RELEASE 1.1.1
|
| 1579 |
+
========================
|
| 1580 |
+
|
| 1581 |
+
Resource is now a special kind of URIRef
|
| 1582 |
+
|
| 1583 |
+
Resource's ```__getitem__``` now looks at rdfs:range to determine
|
| 1584 |
+
return type in default case.
|
| 1585 |
+
|
| 1586 |
+
|
| 1587 |
+
|
| 1588 |
+
2002/11/05 RELEASE 1.1.0
|
| 1589 |
+
========================
|
| 1590 |
+
|
| 1591 |
+
# A new development branch
|
| 1592 |
+
|
| 1593 |
+
Cleaned up interface and promoted it to SIR: Simple Interface
|
| 1594 |
+
for RDF.
|
| 1595 |
+
|
| 1596 |
+
Updated parser to use SAX2 interfaces instead of using expat directly.
|
| 1597 |
+
|
| 1598 |
+
Added BTreeTripleStore, a ZODB BTree TripleStore backend. And
|
| 1599 |
+
a default pre-mixed TripleStore that uses it.
|
| 1600 |
+
|
| 1601 |
+
Synced with latest (Editor's draft) RDF/XML spec.
|
| 1602 |
+
|
| 1603 |
+
Added datatype support.
|
| 1604 |
+
|
| 1605 |
+
Cleaned up interfaces for load/parse: removed generate_path
|
| 1606 |
+
from loadsave andrenamed parse_URI to parse.
|
| 1607 |
+
|
| 1608 |
+
|
| 1609 |
+
2002/10/08 RELEASE 0.9.6
|
| 1610 |
+
========================
|
| 1611 |
+
|
| 1612 |
+
|
| 1613 |
+
# The end of a development branch
|
| 1614 |
+
|
| 1615 |
+
BNode can now be created with specified value.
|
| 1616 |
+
|
| 1617 |
+
Literal now has a language attribute.
|
| 1618 |
+
|
| 1619 |
+
Parser now creates Literals with language attribute set
|
| 1620 |
+
appropriately as determined by xml:lang attributes.
|
| 1621 |
+
|
| 1622 |
+
|
| 1623 |
+
TODO: Serializer-Literals-language attribute
|
| 1624 |
+
|
| 1625 |
+
TODO: Change ```__eq__``` so that Literal("foo")=="foo" etc
|
| 1626 |
+
|
| 1627 |
+
TripleStores now support "in" operator.
|
| 1628 |
+
For example: if (s, p, o) in store: print "Found ", s, p, o
|
| 1629 |
+
|
| 1630 |
+
Added APIs/object for working at level of a Resource. NOTE:
|
| 1631 |
+
This functionality is still experimental
|
| 1632 |
+
|
| 1633 |
+
Consecutive Collections now parse correctly.
|
| 1634 |
+
|
| 1635 |
+
2002/08/06 RELEASE 0.9.5
|
| 1636 |
+
========================
|
| 1637 |
+
|
| 1638 |
+
|
| 1639 |
+
Added support for rdf:parseType="Collection"
|
| 1640 |
+
|
| 1641 |
+
Added items generator for getting items in a Collection
|
| 1642 |
+
|
| 1643 |
+
Renamed rdflib.triple_store to rdflib.TripleStore to better follow
|
| 1644 |
+
python style conventions.
|
| 1645 |
+
|
| 1646 |
+
Added an Identifier Class
|
| 1647 |
+
|
| 1648 |
+
Moved each node into its own Python module.
|
| 1649 |
+
|
| 1650 |
+
Added rdflib.util with a first and uniq function.
|
| 1651 |
+
|
| 1652 |
+
Added a little more to example.py
|
| 1653 |
+
|
| 1654 |
+
Removed generate_uri since we have BNodes now.
|
| 1655 |
+
|
| 1656 |
+
|
| 1657 |
+
2002/07/29 RELEASE 0.9.4
|
| 1658 |
+
========================
|
| 1659 |
+
|
| 1660 |
+
|
| 1661 |
+
Added support for proposed rdf:nodeID to both the parser and
|
| 1662 |
+
serializer.
|
| 1663 |
+
|
| 1664 |
+
Reimplemented serializer which now nests things where
|
| 1665 |
+
possible.
|
| 1666 |
+
|
| 1667 |
+
Added partial support for XML Literal parseTypes.
|
| 1668 |
+
|
| 1669 |
+
|
| 1670 |
+
2002/07/16 RELEASE 0.9.3
|
| 1671 |
+
========================
|
| 1672 |
+
|
| 1673 |
+
|
| 1674 |
+
Fixed bug where bNodes where being created for nested property
|
| 1675 |
+
elements when they where not supposed to be.
|
| 1676 |
+
|
| 1677 |
+
Added lax mode that will convert rdf/xml files that contain bare
|
| 1678 |
+
IDs etc. Also, lax mode will only report parse errors instead of
|
| 1679 |
+
raising exceptions.
|
| 1680 |
+
|
| 1681 |
+
Added missing check for valid attribute names in the case of
|
| 1682 |
+
production 5.18 of latest WD spec.
|
| 1683 |
+
|
| 1684 |
+
|
| 1685 |
+
2002/07/05 RELEASE 0.9.2
|
| 1686 |
+
========================
|
| 1687 |
+
|
| 1688 |
+
|
| 1689 |
+
Added missing constants for SUBPROPERTYOF, ISDEFINEDBY.
|
| 1690 |
+
|
| 1691 |
+
Added test case for running all of the rdf/xml test cases.
|
| 1692 |
+
|
| 1693 |
+
Reimplemented rdf/xml parser to conform to latest WD.
|
| 1694 |
+
|
| 1695 |
+
|
| 1696 |
+
2002/06/10 RELEASE 0.9.1
|
| 1697 |
+
========================
|
| 1698 |
+
|
| 1699 |
+
|
| 1700 |
+
There is now a remove and a remove_triples (no more overloaded
|
| 1701 |
+
remove).
|
| 1702 |
+
|
| 1703 |
+
Layer 2 has been merged with layer 1 since there is no longer a
|
| 1704 |
+
need for them to be separate layers.
|
| 1705 |
+
|
| 1706 |
+
The generate_uri method has moved to LoadSave since triple stores
|
| 1707 |
+
do not have a notion of a uri. [Also, with proper bNode support on
|
| 1708 |
+
its way the need for a generate_uri might not be as high.]
|
| 1709 |
+
|
| 1710 |
+
Fixed bug in node's n3 function: URI -> URIRef.
|
| 1711 |
+
|
| 1712 |
+
Replaced string based exceptions with class based exceptions.
|
| 1713 |
+
|
| 1714 |
+
Added PyUnit TestCase for parser.py
|
| 1715 |
+
|
| 1716 |
+
Added N-Triples parser.
|
| 1717 |
+
|
| 1718 |
+
Added ```__len__``` and ```__eq__``` methods to store interface.
|
| 1719 |
+
|
| 1720 |
+
|
| 1721 |
+
2002/06/04 RELEASE 0.9.0
|
| 1722 |
+
========================
|
| 1723 |
+
|
| 1724 |
+
Initial release after being split from redfootlib.
|
testbed/RDFLib__rdflib/CONTRIBUTORS
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Aaron Swartz
|
| 2 |
+
Andrew Eland
|
| 3 |
+
Andrew Kuchling
|
| 4 |
+
Arve Knudsen
|
| 5 |
+
Chimezie Ogbuji
|
| 6 |
+
Daniel Krech
|
| 7 |
+
David H Jones
|
| 8 |
+
Drew Perttula
|
| 9 |
+
Elias Torres
|
| 10 |
+
Gerhard Weis
|
| 11 |
+
Graham Higgins
|
| 12 |
+
Graham Klyne
|
| 13 |
+
Gunnar AAstrand Grimnes
|
| 14 |
+
Ivan Herman
|
| 15 |
+
Jeroen van der Ham
|
| 16 |
+
Joern Hees
|
| 17 |
+
Kendall Clark
|
| 18 |
+
Leandro López
|
| 19 |
+
Lucio Torre
|
| 20 |
+
Michel Pelletier
|
| 21 |
+
Nacho Barrientos Arias
|
| 22 |
+
Niklas Lindström
|
| 23 |
+
Phil Dawes
|
| 24 |
+
Phillip Pearson
|
| 25 |
+
Ron Alford
|
| 26 |
+
Sidnei da Silva
|
| 27 |
+
Simon McVittie
|
| 28 |
+
Stefan Niederhauser
|
| 29 |
+
Thomas Kluyver
|
| 30 |
+
William Waites
|
testbed/RDFLib__rdflib/LICENSE
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
LICENSE AGREEMENT FOR RDFLIB
|
| 2 |
+
------------------------------------------------
|
| 3 |
+
Copyright (c) 2002-2017, RDFLib Team
|
| 4 |
+
See CONTRIBUTORS and http://github.com/RDFLib/rdflib
|
| 5 |
+
All rights reserved.
|
| 6 |
+
|
| 7 |
+
Redistribution and use in source and binary forms, with or without
|
| 8 |
+
modification, are permitted provided that the following conditions are
|
| 9 |
+
met:
|
| 10 |
+
|
| 11 |
+
* Redistributions of source code must retain the above copyright
|
| 12 |
+
notice, this list of conditions and the following disclaimer.
|
| 13 |
+
|
| 14 |
+
* Redistributions in binary form must reproduce the above
|
| 15 |
+
copyright notice, this list of conditions and the following
|
| 16 |
+
disclaimer in the documentation and/or other materials provided
|
| 17 |
+
with the distribution.
|
| 18 |
+
|
| 19 |
+
* Neither the name of Daniel Krech nor the names of its
|
| 20 |
+
contributors may be used to endorse or promote products derived
|
| 21 |
+
from this software without specific prior written permission.
|
| 22 |
+
|
| 23 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 24 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 25 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 26 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 27 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 28 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 29 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 30 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 31 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 32 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 33 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
testbed/RDFLib__rdflib/MANIFEST.in
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
include CHANGELOG.md
|
| 2 |
+
include LICENSE
|
| 3 |
+
include README.md
|
| 4 |
+
include CONTRIBUTORS
|
| 5 |
+
include ez_setup.py
|
| 6 |
+
include skiptests.list
|
| 7 |
+
recursive-include rdflib *.py
|
| 8 |
+
recursive-include examples *.py
|
| 9 |
+
include run_tests.py
|
| 10 |
+
graft test
|
| 11 |
+
graft docs
|
| 12 |
+
prune docs/_build
|
| 13 |
+
global-exclude *.pyc *$py.class
|
testbed/RDFLib__rdflib/README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
RDFLib
|
| 2 |
+
======
|
| 3 |
+
[](https://travis-ci.org/RDFLib/rdflib)
|
| 4 |
+
[](https://coveralls.io/r/RDFLib/rdflib?branch=master)
|
| 5 |
+
[](https://github.com/RDFLib/rdflib/stargazers)
|
| 6 |
+
[](https://pypi.python.org/pypi/rdflib)
|
| 7 |
+
[](https://pypi.python.org/pypi/rdflib)
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
RDFLib is a Python library for working with RDF, a simple yet
|
| 11 |
+
powerful language for representing information as graphs.
|
| 12 |
+
|
| 13 |
+
RDFLib may be installed with pip (use sudo as required):
|
| 14 |
+
|
| 15 |
+
$ pip install rdflib
|
| 16 |
+
|
| 17 |
+
Alternatively manually download the package from the Python Package
|
| 18 |
+
Index (PyPI) at https://pypi.python.org/pypi/rdflib
|
| 19 |
+
|
| 20 |
+
The current version of RDFLib is 4.2.2, see the ``CHANGELOG.md``
|
| 21 |
+
file for what's new.
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
Getting Started
|
| 25 |
+
---------------
|
| 26 |
+
|
| 27 |
+
RDFLib aims to be a pythonic RDF API, a Graph is a python collection
|
| 28 |
+
of RDF Subject,Predicate,Object Triples:
|
| 29 |
+
|
| 30 |
+
```python
|
| 31 |
+
import rdflib
|
| 32 |
+
g=rdflib.Graph()
|
| 33 |
+
g.load('http://dbpedia.org/resource/Semantic_Web')
|
| 34 |
+
|
| 35 |
+
for s,p,o in g:
|
| 36 |
+
print(s, p, o)
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
The components of the triples are URIs (resources) or Literals
|
| 40 |
+
(values), URIs are grouped together by *namespace*, common namespaces are
|
| 41 |
+
included in RDFLib:
|
| 42 |
+
|
| 43 |
+
```python
|
| 44 |
+
|
| 45 |
+
semweb=rdflib.URIRef('http://dbpedia.org/resource/Semantic_Web')
|
| 46 |
+
type=g.value(semweb, rdflib.RDFS.label)
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
Where `rdflib.RDFS` is the RDFS Namespace, `graph.value` returns an
|
| 50 |
+
object of the triple-pattern given (or an arbitrary one if more
|
| 51 |
+
exist). New Namespaces can also be defined:
|
| 52 |
+
|
| 53 |
+
```python
|
| 54 |
+
|
| 55 |
+
dbpedia=rdflib.Namespace('http://dbpedia.org/ontology/')
|
| 56 |
+
|
| 57 |
+
abstracts=list(x for x in g.objects(semweb, dbpedia['abstract']) if x.language=='en')
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
See also [./examples](./examples)
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
Features
|
| 64 |
+
--------
|
| 65 |
+
|
| 66 |
+
The library contains parsers and serializers for RDF/XML, N3,
|
| 67 |
+
NTriples, N-Quads, Turtle, TriX, RDFa and Microdata.
|
| 68 |
+
|
| 69 |
+
The library presents a Graph interface which can be backed by
|
| 70 |
+
any one of a number of Store implementations.
|
| 71 |
+
|
| 72 |
+
This core RDFLib package includes store implementations for
|
| 73 |
+
in memory storage and persistent storage on top of the Berkeley DB.
|
| 74 |
+
|
| 75 |
+
A SPARQL 1.1 implementation is included - supporting SPARQL 1.1 Queries and Update statements.
|
| 76 |
+
|
| 77 |
+
RDFLib is open source and is maintained on [GitHub](https://github.com/RDFLib/rdflib/). RDFLib releases, current and previous
|
| 78 |
+
are listed on [PyPI](https://pypi.python.org/pypi/rdflib/)
|
| 79 |
+
|
| 80 |
+
RDFLib has a plugin-architecture for store-implementation, as well as parsers/serializers, several other projects exist which extend RDFLib features:
|
| 81 |
+
|
| 82 |
+
* [rdflib-jsonld](https://github.com/RDFLib/rdflib-jsonld) - Serializer and parser for [json-ld](http://json-ld.org)
|
| 83 |
+
|
| 84 |
+
Support
|
| 85 |
+
-------
|
| 86 |
+
|
| 87 |
+
More information is available on the project webpage:
|
| 88 |
+
|
| 89 |
+
https://github.com/RDFLib/rdflib/
|
| 90 |
+
|
| 91 |
+
The documentation can be built by doing::
|
| 92 |
+
|
| 93 |
+
$ python setup.py build_sphinx
|
| 94 |
+
|
| 95 |
+
And is also available from ReadTheDocs:
|
| 96 |
+
|
| 97 |
+
https://rdflib.readthedocs.io
|
| 98 |
+
|
| 99 |
+
Support is available through the rdflib-dev group:
|
| 100 |
+
|
| 101 |
+
https://groups.google.com/group/rdflib-dev
|
| 102 |
+
|
| 103 |
+
and on the IRC channel #rdflib on the freenode.net server
|
testbed/RDFLib__rdflib/requirements.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
flake8
|
| 2 |
+
html5lib
|
| 3 |
+
isodate
|
| 4 |
+
pyparsing
|
| 5 |
+
requests
|
| 6 |
+
six
|
| 7 |
+
doctest-ignore-unicode
|
testbed/RDFLib__rdflib/run_tests.py
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
# -*- coding: utf-8 -*-
|
| 3 |
+
"""
|
| 4 |
+
Testing with Nose
|
| 5 |
+
=================
|
| 6 |
+
|
| 7 |
+
This test runner uses Nose for test discovery and running. It uses the argument
|
| 8 |
+
spec of Nose, but with some options pre-set. To begin with, make sure you have
|
| 9 |
+
Nose installed, e.g.:
|
| 10 |
+
|
| 11 |
+
$ pip nose doctest-ignore-unicode
|
| 12 |
+
|
| 13 |
+
For daily test runs, use:
|
| 14 |
+
|
| 15 |
+
$ ./run_tests.py
|
| 16 |
+
|
| 17 |
+
If you supply attributes, the default ones defined in ``DEFAULT_ATTRS`` will be
|
| 18 |
+
ignored. So to run e.g. all tests marked ``slowtest`` or ``non_standard_dep``,
|
| 19 |
+
do:
|
| 20 |
+
|
| 21 |
+
$ ./run_tests.py -a slowtest,non_standard_dep
|
| 22 |
+
|
| 23 |
+
See <http://code.google.com/p/python-nose/> for furher details. An excellent
|
| 24 |
+
article is also available at <http://ivory.idyll.org/articles/nose-intro.html>.
|
| 25 |
+
|
| 26 |
+
Note that this is just a convenience script. You can use ``nosetests`` directly
|
| 27 |
+
if it's on $PATH, with the difference that you have to supply the options
|
| 28 |
+
pre-set here manually.
|
| 29 |
+
|
| 30 |
+
Coverage
|
| 31 |
+
========
|
| 32 |
+
|
| 33 |
+
If ``coverage.py`` is placed in $PYTHONPATH, it can be used to create coverage
|
| 34 |
+
information (using the built-in coverage plugin of Nose) if the default
|
| 35 |
+
option "--with-coverage" is supplied (which also enables some additional
|
| 36 |
+
coverage options).
|
| 37 |
+
|
| 38 |
+
See <http://nedbatchelder.com/code/modules/coverage.html> for details.
|
| 39 |
+
|
| 40 |
+
"""
|
| 41 |
+
from __future__ import print_function
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
NOSE_ARGS = [
|
| 45 |
+
'--with-doctest',
|
| 46 |
+
'--doctest-extension=.doctest',
|
| 47 |
+
'--doctest-tests',
|
| 48 |
+
# '--with-EARL',
|
| 49 |
+
]
|
| 50 |
+
|
| 51 |
+
COVERAGE_EXTRA_ARGS = [
|
| 52 |
+
'--cover-package=rdflib',
|
| 53 |
+
'--cover-inclusive',
|
| 54 |
+
]
|
| 55 |
+
|
| 56 |
+
DEFAULT_LOCATION = '--where=./'
|
| 57 |
+
|
| 58 |
+
DEFAULT_ATTRS = [] # ['!known_issue', '!sparql']
|
| 59 |
+
|
| 60 |
+
DEFAULT_DIRS = ['test', 'rdflib']
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
if __name__ == '__main__':
|
| 64 |
+
|
| 65 |
+
from sys import argv, exit, stderr
|
| 66 |
+
try:
|
| 67 |
+
import nose
|
| 68 |
+
except ImportError:
|
| 69 |
+
print("""\
|
| 70 |
+
Requires Nose. Try:
|
| 71 |
+
|
| 72 |
+
$ sudo easy_install nose
|
| 73 |
+
|
| 74 |
+
Exiting. """, file=stderr)
|
| 75 |
+
exit(1)
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
if '--with-coverage' in argv:
|
| 79 |
+
try:
|
| 80 |
+
import coverage
|
| 81 |
+
except ImportError:
|
| 82 |
+
print("No coverage module found, skipping code coverage.", file=stderr)
|
| 83 |
+
argv.remove('--with-coverage')
|
| 84 |
+
else:
|
| 85 |
+
NOSE_ARGS += COVERAGE_EXTRA_ARGS
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
if True not in [a.startswith('-a') or a.startswith('--attr=') for a in argv]:
|
| 89 |
+
argv.append('--attr=' + ','.join(DEFAULT_ATTRS))
|
| 90 |
+
|
| 91 |
+
if not [a for a in argv[1:] if not a.startswith('-')]:
|
| 92 |
+
argv += DEFAULT_DIRS # since nose doesn't look here by default..
|
| 93 |
+
|
| 94 |
+
if not [a for a in argv if a.startswith('--where=')]:
|
| 95 |
+
argv += [DEFAULT_LOCATION]
|
| 96 |
+
|
| 97 |
+
finalArgs = argv + NOSE_ARGS
|
| 98 |
+
print("Running nose with:", " ".join(finalArgs[1:]))
|
| 99 |
+
nose.run_exit(argv=finalArgs)
|
testbed/RDFLib__rdflib/setup.cfg
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[nosetests]
|
| 2 |
+
|
| 3 |
+
attr=!known_issue,!non_core,!performancetest
|
| 4 |
+
verbosity=1
|
| 5 |
+
with-doctest=1
|
| 6 |
+
with-doctest-ignore-unicode=1
|
| 7 |
+
doctest-options=+IGNORE_UNICODE
|
| 8 |
+
exclude=rdflib.plugins.sparql.paths|rdflib.extras.external_graph_libs
|
testbed/RDFLib__rdflib/setup.py
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
|
| 3 |
+
import os
|
| 4 |
+
import re
|
| 5 |
+
from setuptools import setup, find_packages
|
| 6 |
+
|
| 7 |
+
kwargs = {}
|
| 8 |
+
kwargs['install_requires'] = [ 'six', 'isodate', 'pyparsing']
|
| 9 |
+
kwargs['tests_require'] = ['html5lib', 'networkx']
|
| 10 |
+
kwargs['test_suite'] = "nose.collector"
|
| 11 |
+
kwargs['extras_require'] = {'html': ['html5lib']}
|
| 12 |
+
|
| 13 |
+
def find_version(filename):
|
| 14 |
+
_version_re = re.compile(r'__version__ = "(.*)"')
|
| 15 |
+
for line in open(filename):
|
| 16 |
+
version_match = _version_re.match(line)
|
| 17 |
+
if version_match:
|
| 18 |
+
return version_match.group(1)
|
| 19 |
+
|
| 20 |
+
version = find_version('rdflib/__init__.py')
|
| 21 |
+
|
| 22 |
+
packages = find_packages(exclude=('examples*', 'test*'))
|
| 23 |
+
|
| 24 |
+
if os.environ.get('READTHEDOCS', None):
|
| 25 |
+
# if building docs for RTD
|
| 26 |
+
# install examples, to get docstrings
|
| 27 |
+
packages.append("examples")
|
| 28 |
+
|
| 29 |
+
setup(
|
| 30 |
+
name='rdflib',
|
| 31 |
+
version=version,
|
| 32 |
+
description="RDFLib is a Python library for working with RDF, a "
|
| 33 |
+
"simple yet powerful language for representing information.",
|
| 34 |
+
author="Daniel 'eikeon' Krech",
|
| 35 |
+
author_email="eikeon@eikeon.com",
|
| 36 |
+
maintainer="RDFLib Team",
|
| 37 |
+
maintainer_email="rdflib-dev@google.com",
|
| 38 |
+
url="https://github.com/RDFLib/rdflib",
|
| 39 |
+
license="BSD-3-Clause",
|
| 40 |
+
platforms=["any"],
|
| 41 |
+
classifiers=[
|
| 42 |
+
"Programming Language :: Python",
|
| 43 |
+
"Programming Language :: Python :: 2",
|
| 44 |
+
"Programming Language :: Python :: 3",
|
| 45 |
+
"Programming Language :: Python :: 2.7",
|
| 46 |
+
"Programming Language :: Python :: 3.4",
|
| 47 |
+
"Programming Language :: Python :: 3.5",
|
| 48 |
+
"Programming Language :: Python :: 3.6",
|
| 49 |
+
"Programming Language :: Python :: 3.7",
|
| 50 |
+
"License :: OSI Approved :: BSD License",
|
| 51 |
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
| 52 |
+
"Operating System :: OS Independent",
|
| 53 |
+
"Natural Language :: English",
|
| 54 |
+
],
|
| 55 |
+
long_description="""\
|
| 56 |
+
RDFLib is a Python library for working with
|
| 57 |
+
RDF, a simple yet powerful language for representing information.
|
| 58 |
+
|
| 59 |
+
The library contains parsers and serializers for RDF/XML, N3,
|
| 60 |
+
NTriples, Turtle, TriX, RDFa and Microdata . The library presents
|
| 61 |
+
a Graph interface which can be backed by any one of a number of
|
| 62 |
+
Store implementations. The core rdflib includes store
|
| 63 |
+
implementations for in memory storage, persistent storage on top
|
| 64 |
+
of the Berkeley DB, and a wrapper for remote SPARQL endpoints.
|
| 65 |
+
|
| 66 |
+
A SPARQL 1.1 engine is also included.
|
| 67 |
+
|
| 68 |
+
If you have recently reported a bug marked as fixed, or have a craving for
|
| 69 |
+
the very latest, you may want the development version instead:
|
| 70 |
+
|
| 71 |
+
pip install git+https://github.com/rdflib/rdflib
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
Read the docs at:
|
| 75 |
+
|
| 76 |
+
http://rdflib.readthedocs.io
|
| 77 |
+
|
| 78 |
+
""",
|
| 79 |
+
packages = packages,
|
| 80 |
+
entry_points = {
|
| 81 |
+
'console_scripts': [
|
| 82 |
+
'rdfpipe = rdflib.tools.rdfpipe:main',
|
| 83 |
+
'csv2rdf = rdflib.tools.csv2rdf:main',
|
| 84 |
+
'rdf2dot = rdflib.tools.rdf2dot:main',
|
| 85 |
+
'rdfs2dot = rdflib.tools.rdfs2dot:main',
|
| 86 |
+
'rdfgraphisomorphism = rdflib.tools.graphisomorphism:main',
|
| 87 |
+
],
|
| 88 |
+
},
|
| 89 |
+
|
| 90 |
+
**kwargs
|
| 91 |
+
)
|
testbed/RDFLib__rdflib/skiptests.list
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/manifest#date-2 xsd:date not supported
|
| 2 |
+
http://www.w3.org/2001/sw/DataAccess/tests/data-r2/open-world/manifest#date-3 xsd:date not supported
|
| 3 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/delete/manifest#dawg-delete-using-02a known issue with update and datasets
|
| 4 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/delete/manifest#dawg-delete-using-06a known issue with update and datasets
|
| 5 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service1 service not implemented
|
| 6 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service2 service not implemented
|
| 7 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service3 service not implemented
|
| 8 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service4a service not implemented
|
| 9 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service5 service not implemented
|
| 10 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service6 service not implemented
|
| 11 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service7 service not implemented
|
| 12 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdf01 entailment not implemented
|
| 13 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdf02 entailment not implemented
|
| 14 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs01 entailment not implemented
|
| 15 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs02 entailment not implemented
|
| 16 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs03 entailment not implemented
|
| 17 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs04 entailment not implemented
|
| 18 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs05 entailment not implemented
|
| 19 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs06 entailment not implemented
|
| 20 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs07 entailment not implemented
|
| 21 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs08 entailment not implemented
|
| 22 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs09 entailment not implemented
|
| 23 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs10 entailment not implemented
|
| 24 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs11 entailment not implemented
|
| 25 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#rdfs12 entailment not implemented
|
| 26 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#paper-sparqldl-Q1 entailment not implemented
|
| 27 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#paper-sparqldl-Q1-rdfs entailment not implemented
|
| 28 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#paper-sparqldl-Q2 entailment not implemented
|
| 29 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#paper-sparqldl-Q3 entailment not implemented
|
| 30 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#sparqldl-02 entailment not implemented
|
| 31 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#sparqldl-03 entailment not implemented
|
| 32 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#sparqldl-06 entailment not implemented
|
| 33 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#sparqldl-07 entailment not implemented
|
| 34 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#sparqldl-08 entailment not implemented
|
| 35 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#sparqldl-10 entailment not implemented
|
| 36 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#sparqldl-12 entailment not implemented
|
| 37 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#sparqldl-13 entailment not implemented
|
| 38 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#parent3 entailment not implemented
|
| 39 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#parent4 entailment not implemented
|
| 40 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#parent5 entailment not implemented
|
| 41 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#parent6 entailment not implemented
|
| 42 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#parent7 entailment not implemented
|
| 43 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#parent9 entailment not implemented
|
| 44 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#parent10 entailment not implemented
|
| 45 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#simple1 entailment not implemented
|
| 46 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#simple2 entailment not implemented
|
| 47 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#simple3 entailment not implemented
|
| 48 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#simple4 entailment not implemented
|
| 49 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#simple5 entailment not implemented
|
| 50 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#simple6 entailment not implemented
|
| 51 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#simple7 entailment not implemented
|
| 52 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/entailment/manifest#simple8 entailment not implemented
|
| 53 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service1 service not implemented
|
| 54 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service2 service not implemented
|
| 55 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service3 service not implemented
|
| 56 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service4a service not implemented
|
| 57 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service5 service not implemented
|
| 58 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service6 service not implemented
|
| 59 |
+
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/service/manifest#service7 service not implemented
|
testbed/RDFLib__rdflib/test/test_parser.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import unittest
|
| 2 |
+
|
| 3 |
+
from rdflib.namespace import RDF, RDFS
|
| 4 |
+
from rdflib.term import URIRef
|
| 5 |
+
from rdflib.term import Literal
|
| 6 |
+
from rdflib.graph import Graph
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
class ParserTestCase(unittest.TestCase):
|
| 10 |
+
backend = 'default'
|
| 11 |
+
path = 'store'
|
| 12 |
+
|
| 13 |
+
def setUp(self):
|
| 14 |
+
self.graph = Graph(store=self.backend)
|
| 15 |
+
self.graph.open(self.path)
|
| 16 |
+
|
| 17 |
+
def tearDown(self):
|
| 18 |
+
self.graph.close()
|
| 19 |
+
|
| 20 |
+
def testNoPathWithHash(self):
|
| 21 |
+
g = self.graph
|
| 22 |
+
g.parse(data="""\
|
| 23 |
+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
| 24 |
+
<rdf:RDF
|
| 25 |
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
| 26 |
+
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
|
| 27 |
+
>
|
| 28 |
+
|
| 29 |
+
<rdfs:Class rdf:about="http://example.org#">
|
| 30 |
+
<rdfs:label>testing</rdfs:label>
|
| 31 |
+
</rdfs:Class>
|
| 32 |
+
|
| 33 |
+
</rdf:RDF>
|
| 34 |
+
""", publicID="http://example.org")
|
| 35 |
+
|
| 36 |
+
subject = URIRef("http://example.org#")
|
| 37 |
+
label = g.value(subject, RDFS.label)
|
| 38 |
+
self.assertEqual(label, Literal("testing"))
|
| 39 |
+
type = g.value(subject, RDF.type)
|
| 40 |
+
self.assertEqual(type, RDFS.Class)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
if __name__ == "__main__":
|
| 44 |
+
unittest.main()
|
testbed/RDFLib__rdflib/test/test_parser_structure.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import rdflib.plugins.sparql.parser
|
| 2 |
+
import pprint
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def t(q):
|
| 6 |
+
print(q)
|
| 7 |
+
pprint.pprint(rdflib.plugins.sparql.parser.parseQuery(q))
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
t("SELECT * WHERE { ?s ?p ?o, ?o2 ; ?p2 ?o3 . ?s2 ?p ?o .} ")
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
t("SELECT * WHERE { ?s ?p ?o, ?o2 ; ?p2 ?o3 ; ?p3 [ ?p ?o ] . ?s2 ?p ?o .} ")
|
testbed/RDFLib__rdflib/test/test_prefixTypes.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import unittest
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
from rdflib import Graph
|
| 5 |
+
from six import b
|
| 6 |
+
|
| 7 |
+
graph = Graph().parse(format='n3', data="""
|
| 8 |
+
@prefix dct: <http://purl.org/dc/terms/> .
|
| 9 |
+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
| 10 |
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
| 11 |
+
|
| 12 |
+
<http://example.org/doc> a foaf:Document;
|
| 13 |
+
dct:created "2011-03-20"^^xsd:date .
|
| 14 |
+
""")
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
class PrefixTypesTest(unittest.TestCase):
|
| 18 |
+
|
| 19 |
+
"""N3/Turtle serializers should use prefixes,
|
| 20 |
+
also for types and datatypes
|
| 21 |
+
|
| 22 |
+
This is issue 161
|
| 23 |
+
http://code.google.com/p/rdflib/issues/detail?id=161
|
| 24 |
+
"""
|
| 25 |
+
|
| 26 |
+
def test(self):
|
| 27 |
+
s = graph.serialize(format='n3')
|
| 28 |
+
print(s)
|
| 29 |
+
self.assertTrue(b("foaf:Document") in s)
|
| 30 |
+
self.assertTrue(b("xsd:date") in s)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
if __name__ == '__main__':
|
| 34 |
+
unittest.main()
|
testbed/RDFLib__rdflib/test/test_prettyxml.py
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: UTF-8 -*-
|
| 2 |
+
from rdflib.term import URIRef, BNode, Literal
|
| 3 |
+
from rdflib.namespace import RDF, RDFS
|
| 4 |
+
from six import b, BytesIO
|
| 5 |
+
|
| 6 |
+
from rdflib.plugins.serializers.rdfxml import PrettyXMLSerializer
|
| 7 |
+
|
| 8 |
+
from rdflib.graph import ConjunctiveGraph
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
class SerializerTestBase(object):
|
| 12 |
+
|
| 13 |
+
repeats = 8
|
| 14 |
+
|
| 15 |
+
def setup(self):
|
| 16 |
+
graph = ConjunctiveGraph()
|
| 17 |
+
graph.parse(data=self.testContent, format=self.testContentFormat)
|
| 18 |
+
self.sourceGraph = graph
|
| 19 |
+
|
| 20 |
+
def test_serialize_and_reparse(self):
|
| 21 |
+
reparsedGraph = serialize_and_load(self.sourceGraph, self.serializer)
|
| 22 |
+
_assert_equal_graphs(self.sourceGraph, reparsedGraph)
|
| 23 |
+
|
| 24 |
+
def test_multiple(self):
|
| 25 |
+
"""Repeats ``test_serialize`` ``self.repeats`` times, to reduce sucess based on in-memory ordering."""
|
| 26 |
+
for i in range(self.repeats):
|
| 27 |
+
self.test_serialize_and_reparse()
|
| 28 |
+
|
| 29 |
+
# test_multiple.slowtest=True # not really slow?
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
def _assert_equal_graphs(g1, g2):
|
| 33 |
+
assert len(g1) == len(g2), "Serialized graph not same size as source graph."
|
| 34 |
+
g1copy = _mangled_copy(g1)
|
| 35 |
+
g2copy = _mangled_copy(g2)
|
| 36 |
+
g1copy -= _mangled_copy(g2)
|
| 37 |
+
g2copy -= _mangled_copy(g1)
|
| 38 |
+
assert len(g1copy) == 0, "Source graph larger than serialized graph."
|
| 39 |
+
assert len(g2copy) == 0, "Serialized graph larger than source graph."
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
_blank = BNode()
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def _mangled_copy(g):
|
| 46 |
+
"Makes a copy of the graph, replacing all bnodes with the bnode ``_blank``."
|
| 47 |
+
gcopy = ConjunctiveGraph()
|
| 48 |
+
|
| 49 |
+
def isbnode(v): return isinstance(v, BNode)
|
| 50 |
+
for s, p, o in g:
|
| 51 |
+
if isbnode(s):
|
| 52 |
+
s = _blank
|
| 53 |
+
if isbnode(p):
|
| 54 |
+
p = _blank
|
| 55 |
+
if isbnode(o):
|
| 56 |
+
o = _blank
|
| 57 |
+
gcopy.add((s, p, o))
|
| 58 |
+
return gcopy
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
def serialize(sourceGraph, makeSerializer, getValue=True, extra_args={}):
|
| 62 |
+
serializer = makeSerializer(sourceGraph)
|
| 63 |
+
stream = BytesIO()
|
| 64 |
+
serializer.serialize(stream, **extra_args)
|
| 65 |
+
return getValue and stream.getvalue() or stream
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def serialize_and_load(sourceGraph, makeSerializer):
|
| 69 |
+
stream = serialize(sourceGraph, makeSerializer, False)
|
| 70 |
+
stream.seek(0)
|
| 71 |
+
reparsedGraph = ConjunctiveGraph()
|
| 72 |
+
reparsedGraph.load(stream)
|
| 73 |
+
return reparsedGraph
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
class TestPrettyXmlSerializer(SerializerTestBase):
|
| 77 |
+
|
| 78 |
+
serializer = PrettyXMLSerializer
|
| 79 |
+
|
| 80 |
+
testContent = """
|
| 81 |
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
| 82 |
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
| 83 |
+
@prefix : <http://example.org/model/test#> .
|
| 84 |
+
|
| 85 |
+
:value rdfs:domain :Test .
|
| 86 |
+
|
| 87 |
+
:Test rdfs:subClassOf
|
| 88 |
+
[ a owl:Restriction;
|
| 89 |
+
owl:onProperty :value ],
|
| 90 |
+
[ a owl:Restriction;
|
| 91 |
+
owl:onProperty :name ] .
|
| 92 |
+
|
| 93 |
+
<http://example.org/data/a> a :Test;
|
| 94 |
+
rdfs:seeAlso <http://example.org/data/b>;
|
| 95 |
+
:value "A" .
|
| 96 |
+
|
| 97 |
+
<http://example.org/data/b>
|
| 98 |
+
:name "Bee"@en, "Be"@sv;
|
| 99 |
+
:value "B" .
|
| 100 |
+
|
| 101 |
+
<http://example.org/data/c> a rdfs:Resource;
|
| 102 |
+
rdfs:seeAlso <http://example.org/data/c>;
|
| 103 |
+
:value 3 .
|
| 104 |
+
|
| 105 |
+
<http://example.org/data/d> a rdfs:Resource;
|
| 106 |
+
rdfs:seeAlso <http://example.org/data/c> ;
|
| 107 |
+
rdfs:seeAlso <http://example.org/data/b> ;
|
| 108 |
+
rdfs:seeAlso <http://example.org/data/a> .
|
| 109 |
+
|
| 110 |
+
_:bnode1 a :BNode;
|
| 111 |
+
rdfs:seeAlso _:bnode2 .
|
| 112 |
+
|
| 113 |
+
_:bnode2 a :BNode ;
|
| 114 |
+
rdfs:seeAlso _:bnode3 .
|
| 115 |
+
|
| 116 |
+
_:bnode3 a :BNode ;
|
| 117 |
+
rdfs:seeAlso _:bnode2 .
|
| 118 |
+
|
| 119 |
+
"""
|
| 120 |
+
testContentFormat = 'n3'
|
| 121 |
+
|
| 122 |
+
def test_result_fragments(self):
|
| 123 |
+
rdfXml = serialize(self.sourceGraph, self.serializer)
|
| 124 |
+
assert b('<Test rdf:about="http://example.org/data/a">') in rdfXml
|
| 125 |
+
assert b('<rdf:Description rdf:about="http://example.org/data/b">') in rdfXml
|
| 126 |
+
assert b('<name xml:lang="en">Bee</name>') in rdfXml
|
| 127 |
+
assert b('<value rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">3</value>') in rdfXml
|
| 128 |
+
assert b('<BNode rdf:nodeID="') in rdfXml, "expected one identified bnode in serialized graph"
|
| 129 |
+
#onlyBNodesMsg = "expected only inlined subClassOf-bnodes in serialized graph"
|
| 130 |
+
#assert '<rdfs:subClassOf>' in rdfXml, onlyBNodesMsg
|
| 131 |
+
#assert not '<rdfs:subClassOf ' in rdfXml, onlyBNodesMsg
|
| 132 |
+
|
| 133 |
+
def test_result_fragments_with_base(self):
|
| 134 |
+
rdfXml = serialize(self.sourceGraph, self.serializer,
|
| 135 |
+
extra_args={'base': "http://example.org/", 'xml_base': "http://example.org/"})
|
| 136 |
+
assert b('xml:base="http://example.org/"') in rdfXml
|
| 137 |
+
assert b('<Test rdf:about="data/a">') in rdfXml
|
| 138 |
+
assert b('<rdf:Description rdf:about="data/b">') in rdfXml
|
| 139 |
+
assert b('<value rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">3</value>') in rdfXml
|
| 140 |
+
assert b('<BNode rdf:nodeID="') in rdfXml, "expected one identified bnode in serialized graph"
|
| 141 |
+
|
| 142 |
+
def test_subClassOf_objects(self):
|
| 143 |
+
reparsedGraph = serialize_and_load(self.sourceGraph, self.serializer)
|
| 144 |
+
_assert_expected_object_types_for_predicates(reparsedGraph,
|
| 145 |
+
[RDFS.seeAlso, RDFS.subClassOf],
|
| 146 |
+
[URIRef, BNode])
|
| 147 |
+
|
| 148 |
+
def test_pretty_xmlliteral(self):
|
| 149 |
+
# given:
|
| 150 |
+
g = ConjunctiveGraph()
|
| 151 |
+
g.add((BNode(), RDF.value, Literal(u'''<p xmlns="http://www.w3.org/1999/xhtml">See also <a href="#aring">Å</a></p>''', datatype=RDF.XMLLiteral)))
|
| 152 |
+
# when:
|
| 153 |
+
xmlrepr = g.serialize(format='pretty-xml')
|
| 154 |
+
# then:
|
| 155 |
+
assert u'''<rdf:value rdf:parseType="Literal"><p xmlns="http://www.w3.org/1999/xhtml">See also <a href="#aring">Å</a></p></rdf:value>'''.encode('utf-8') in xmlrepr
|
| 156 |
+
|
| 157 |
+
def test_pretty_broken_xmlliteral(self):
|
| 158 |
+
# given:
|
| 159 |
+
g = ConjunctiveGraph()
|
| 160 |
+
g.add((BNode(), RDF.value, Literal(u'''<p ''', datatype=RDF.XMLLiteral)))
|
| 161 |
+
# when:
|
| 162 |
+
xmlrepr = g.serialize(format='pretty-xml')
|
| 163 |
+
# then:
|
| 164 |
+
assert u'''<rdf:value rdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral"><p '''.encode('utf-8') in xmlrepr
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
def _assert_expected_object_types_for_predicates(graph, predicates, types):
|
| 168 |
+
for s, p, o in graph:
|
| 169 |
+
if p in predicates:
|
| 170 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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import print_function
|
| 2 |
+
|
| 3 |
+
import sys
|
| 4 |
+
from encodings.utf_8 import StreamWriter
|
| 5 |
+
|
| 6 |
+
import unittest
|
| 7 |
+
|
| 8 |
+
import os
|
| 9 |
+
import os.path
|
| 10 |
+
|
| 11 |
+
from six.moves.urllib.request import url2pathname, urlopen
|
| 12 |
+
|
| 13 |
+
from rdflib import RDF, RDFS, URIRef, BNode, Literal, Namespace, Graph
|
| 14 |
+
from rdflib.exceptions import ParserError
|
| 15 |
+
from rdflib.util import first
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
import logging
|
| 19 |
+
|
| 20 |
+
_logger = logging.getLogger("parser_rdfcore")
|
| 21 |
+
|
| 22 |
+
verbose = 0
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
sw = StreamWriter(sys.stdout)
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def write(msg):
|
| 29 |
+
_logger.info(msg + "\n")
|
| 30 |
+
# sw.write(msg+"\n")
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
class TestStore(Graph):
|
| 34 |
+
__test__ = False
|
| 35 |
+
|
| 36 |
+
def __init__(self, expected):
|
| 37 |
+
super(TestStore, self).__init__()
|
| 38 |
+
self.expected = expected
|
| 39 |
+
|
| 40 |
+
def add(self, spo):
|
| 41 |
+
(s, p, o) = spo
|
| 42 |
+
if not isinstance(s, BNode) and not isinstance(o, BNode):
|
| 43 |
+
if not (s, p, o) in self.expected:
|
| 44 |
+
m = "Triple not in expected result: %s, %s, %s" % (
|
| 45 |
+
s.n3(), p.n3(), o.n3())
|
| 46 |
+
if verbose:
|
| 47 |
+
write(m)
|
| 48 |
+
# raise Exception(m)
|
| 49 |
+
super(TestStore, self).add((s, p, o))
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
TEST = Namespace("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#")
|
| 53 |
+
|
| 54 |
+
CACHE_DIR = os.path.join(os.path.dirname(__file__), "rdf")
|
| 55 |
+
|
| 56 |
+
skipped = (
|
| 57 |
+
# "datatypes/Manifest.rdf#test002",
|
| 58 |
+
# "rdf-containers-syntax-vs-schema/Manifest.rdf#test004",
|
| 59 |
+
# "rdfms-xml-literal-namespaces/Manifest.rdf#test001",
|
| 60 |
+
# "rdfms-xml-literal-namespaces/Manifest.rdf#test002",
|
| 61 |
+
# "rdfms-xmllang/Manifest.rdf#test001",
|
| 62 |
+
# "rdfms-xmllang/Manifest.rdf#test002",
|
| 63 |
+
# "xml-canon/Manifest.rdf#test001"
|
| 64 |
+
)
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
def cached_file(url):
|
| 68 |
+
fname = url2pathname(relative(url))
|
| 69 |
+
|
| 70 |
+
fpath = os.path.join(CACHE_DIR, fname)
|
| 71 |
+
if not os.path.exists(fpath):
|
| 72 |
+
print("%s does not exist, fetching from %s" % (fpath, url))
|
| 73 |
+
folder = os.path.dirname(fpath)
|
| 74 |
+
if not os.path.exists(folder):
|
| 75 |
+
os.makedirs(folder)
|
| 76 |
+
f = open(fpath, 'w')
|
| 77 |
+
try:
|
| 78 |
+
f.write(urlopen(url).read())
|
| 79 |
+
finally:
|
| 80 |
+
f.close()
|
| 81 |
+
return fpath
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
RDFCOREBASE = "http://www.w3.org/2000/10/rdf-tests/rdfcore/"
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
def relative(url):
|
| 88 |
+
return url[len(RDFCOREBASE):]
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
def resolve(rel):
|
| 92 |
+
return RDFCOREBASE + rel
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def _testPositive(uri, manifest):
|
| 96 |
+
if verbose:
|
| 97 |
+
write(u"TESTING: %s" % uri)
|
| 98 |
+
result = 0 # 1=failed, 0=passed
|
| 99 |
+
inDoc = first(manifest.objects(uri, TEST["inputDocument"]))
|
| 100 |
+
outDoc = first(manifest.objects(uri, TEST["outputDocument"]))
|
| 101 |
+
expected = Graph()
|
| 102 |
+
if outDoc[-3:] == ".nt":
|
| 103 |
+
format = "nt"
|
| 104 |
+
else:
|
| 105 |
+
format = "xml"
|
| 106 |
+
expected.parse(cached_file(outDoc), publicID=outDoc, format=format)
|
| 107 |
+
store = TestStore(expected)
|
| 108 |
+
if inDoc[-3:] == ".nt":
|
| 109 |
+
format = "nt"
|
| 110 |
+
else:
|
| 111 |
+
format = "xml"
|
| 112 |
+
|
| 113 |
+
try:
|
| 114 |
+
store.parse(cached_file(inDoc), publicID=inDoc, format=format)
|
| 115 |
+
except ParserError as pe:
|
| 116 |
+
write("Failed '")
|
| 117 |
+
write(inDoc)
|
| 118 |
+
write("' failed with")
|
| 119 |
+
raise pe
|
| 120 |
+
try:
|
| 121 |
+
write(type(pe))
|
| 122 |
+
except:
|
| 123 |
+
write("sorry could not dump out error.")
|
| 124 |
+
result = 1
|
| 125 |
+
else:
|
| 126 |
+
if not store.isomorphic(expected):
|
| 127 |
+
write(u"""Failed: '%s'""" % uri)
|
| 128 |
+
if verbose:
|
| 129 |
+
write(""" In:\n""")
|
| 130 |
+
for s, p, o in store:
|
| 131 |
+
write("%s %s %s." % (repr(s), repr(p), repr(o)))
|
| 132 |
+
write(""" Out:\n""")
|
| 133 |
+
for s, p, o in expected:
|
| 134 |
+
write("%s %s %s." % (repr(s), repr(p), repr(o)))
|
| 135 |
+
result += 1
|
| 136 |
+
return result
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
def _testNegative(uri, manifest):
|
| 140 |
+
if verbose:
|
| 141 |
+
write(u"TESTING: %s" % uri)
|
| 142 |
+
result = 0 # 1=failed, 0=passed
|
| 143 |
+
inDoc = first(manifest.objects(uri, TEST["inputDocument"]))
|
| 144 |
+
store = Graph()
|
| 145 |
+
|
| 146 |
+
test = BNode()
|
| 147 |
+
results.add((test, RESULT["test"], uri))
|
| 148 |
+
results.add((test, RESULT["system"], system))
|
| 149 |
+
|
| 150 |
+
try:
|
| 151 |
+
if inDoc[-3:] == ".nt":
|
| 152 |
+
format = "nt"
|
| 153 |
+
else:
|
| 154 |
+
format = "xml"
|
| 155 |
+
store.parse(cached_file(inDoc), publicID=inDoc, format=format)
|
| 156 |
+
except ParserError:
|
| 157 |
+
results.add((test, RDF.type, RESULT["PassingRun"]))
|
| 158 |
+
# pass
|
| 159 |
+
else:
|
| 160 |
+
write(u"""Failed: '%s'""" % uri)
|
| 161 |
+
results.add((test, RDF.type, RESULT["FailingRun"]))
|
| 162 |
+
result = 1
|
| 163 |
+
return result
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
class ParserTestCase(unittest.TestCase):
|
| 167 |
+
store = 'default'
|
| 168 |
+
path = 'store'
|
| 169 |
+
slow = True
|
| 170 |
+
|
| 171 |
+
def setUp(self):
|
| 172 |
+
self.manifest = manifest = Graph(store=self.store)
|
| 173 |
+
manifest.open(self.path)
|
| 174 |
+
manifest.load(cached_file(
|
| 175 |
+
"http://www.w3.org/2000/10/rdf-tests/rdfcore/Manifest.rdf"))
|
| 176 |
+
|
| 177 |
+
def tearDown(self):
|
| 178 |
+
self.manifest.close()
|
| 179 |
+
|
| 180 |
+
def testNegative(self):
|
| 181 |
+
manifest = self.manifest
|
| 182 |
+
num_failed = total = 0
|
| 183 |
+
negs = list(manifest.subjects(RDF.type, TEST["NegativeParserTest"]))
|
| 184 |
+
negs.sort()
|
| 185 |
+
for neg in negs:
|
| 186 |
+
status = first(manifest.objects(neg, TEST["status"]))
|
| 187 |
+
if status == Literal("APPROVED"):
|
| 188 |
+
result = _testNegative(neg, manifest)
|
| 189 |
+
total += 1
|
| 190 |
+
num_failed += result
|
| 191 |
+
self.assertEqual(
|
| 192 |
+
num_failed, 0, "Failed: %s of %s." % (num_failed, total))
|
| 193 |
+
|
| 194 |
+
def testPositive(self):
|
| 195 |
+
manifest = self.manifest
|
| 196 |
+
uris = list(manifest.subjects(RDF.type, TEST["PositiveParserTest"]))
|
| 197 |
+
uris.sort()
|
| 198 |
+
num_failed = total = 0
|
| 199 |
+
for uri in uris:
|
| 200 |
+
status = first(manifest.objects(uri, TEST["status"]))
|
| 201 |
+
# Failing tests, skipped
|
| 202 |
+
if uri[44:] in skipped:
|
| 203 |
+
status = Literal("Locally DISAPPROVED")
|
| 204 |
+
write("Skipping %s" % uri)
|
| 205 |
+
if status == Literal("APPROVED"):
|
| 206 |
+
result = _testPositive(uri, manifest)
|
| 207 |
+
test = BNode()
|
| 208 |
+
results.add((test, RESULT["test"], uri))
|
| 209 |
+
results.add((test, RESULT["system"], system))
|
| 210 |
+
if not result:
|
| 211 |
+
results.add((test, RDF.type, RESULT["PassingRun"]))
|
| 212 |
+
else:
|
| 213 |
+
results.add((test, RDF.type, RESULT["FailingRun"]))
|
| 214 |
+
total += 1
|
| 215 |
+
num_failed += result
|
| 216 |
+
self.assertEqual(
|
| 217 |
+
num_failed, 0, "Failed: %s of %s." % (num_failed, total))
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
RESULT = Namespace("http://www.w3.org/2002/03owlt/resultsOntology#")
|
| 221 |
+
FOAF = Namespace("http://xmlns.com/foaf/0.1/")
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
results = Graph()
|
| 225 |
+
|
| 226 |
+
system = BNode("system")
|
| 227 |
+
results.add((system, FOAF["homepage"], URIRef("http://rdflib.net/")))
|
| 228 |
+
results.add((system, RDFS.label, Literal("RDFLib")))
|
| 229 |
+
results.add((system, RDFS.comment, Literal("")))
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
if __name__ == "__main__":
|
| 233 |
+
manifest = Graph()
|
| 234 |
+
manifest.load(cached_file(
|
| 235 |
+
"http://www.w3.org/2000/10/rdf-tests/rdfcore/Manifest.rdf"))
|
| 236 |
+
import sys
|
| 237 |
+
import getopt
|
| 238 |
+
try:
|
| 239 |
+
optlist, args = getopt.getopt(sys.argv[1:], 'h:', ["help"])
|
| 240 |
+
except getopt.GetoptError as msg:
|
| 241 |
+
write(msg)
|
| 242 |
+
# usage()
|
| 243 |
+
|
| 244 |
+
try:
|
| 245 |
+
argv = sys.argv
|
| 246 |
+
if len(argv) > 1:
|
| 247 |
+
_logger.setLevel(logging.INFO)
|
| 248 |
+
_logger.addHandler(logging.StreamHandler())
|
| 249 |
+
|
| 250 |
+
for arg in argv[1:]:
|
| 251 |
+
verbose = 1
|
| 252 |
+
case = URIRef(arg)
|
| 253 |
+
write(u"Testing: %s" % case)
|
| 254 |
+
if (case, RDF.type, TEST["PositiveParserTest"]) in manifest:
|
| 255 |
+
result = _testPositive(case, manifest)
|
| 256 |
+
write(u"Positive test %s" % ["PASSED", "FAILED"][result])
|
| 257 |
+
elif (case, RDF.type, TEST["NegativeParserTest"]) in manifest:
|
| 258 |
+
result = _testNegative(case, manifest)
|
| 259 |
+
write(u"Negative test %s" % ["PASSED", "FAILED"][result])
|
| 260 |
+
else:
|
| 261 |
+
write(u"%s not ??" % case)
|
| 262 |
+
|
| 263 |
+
if len(argv) <= 1:
|
| 264 |
+
unittest.main()
|
| 265 |
+
finally:
|
| 266 |
+
results.serialize("results.rdf")
|
testbed/RDFLib__rdflib/test/test_roundtrip.py
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
import rdflib
|
| 3 |
+
import rdflib.compare
|
| 4 |
+
|
| 5 |
+
try:
|
| 6 |
+
from .test_nt_suite import all_nt_files
|
| 7 |
+
assert all_nt_files
|
| 8 |
+
except:
|
| 9 |
+
from test.test_nt_suite import all_nt_files
|
| 10 |
+
|
| 11 |
+
"""
|
| 12 |
+
Test round-tripping by all serializers/parser that are registerd.
|
| 13 |
+
This means, you may test more than just core rdflib!
|
| 14 |
+
|
| 15 |
+
run with no arguments to test all formats + all files
|
| 16 |
+
run with a single argument, to test only that format, i.e. "n3"
|
| 17 |
+
run with three arguments to test round-tripping in a given format
|
| 18 |
+
and reading a single file in the given format, i.e.:
|
| 19 |
+
|
| 20 |
+
python test/test_roundtrip.py xml nt test/nt/literals-02.nt
|
| 21 |
+
|
| 22 |
+
tests roundtripping through rdf/xml with only the literals-02 file
|
| 23 |
+
|
| 24 |
+
"""
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
SKIP = [
|
| 28 |
+
('xml', 'test/nt/qname-02.nt'), # uses a property that cannot be qname'd
|
| 29 |
+
# uses a property that cannot be qname'd
|
| 30 |
+
('application/rdf+xml', 'test/nt/qname-02.nt'),
|
| 31 |
+
]
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def roundtrip(e, verbose=False):
|
| 35 |
+
infmt, testfmt, source = e
|
| 36 |
+
|
| 37 |
+
g1 = rdflib.ConjunctiveGraph()
|
| 38 |
+
|
| 39 |
+
g1.parse(source, format=infmt)
|
| 40 |
+
|
| 41 |
+
s = g1.serialize(format=testfmt)
|
| 42 |
+
|
| 43 |
+
if verbose:
|
| 44 |
+
print("S:")
|
| 45 |
+
print(s)
|
| 46 |
+
|
| 47 |
+
g2 = rdflib.ConjunctiveGraph()
|
| 48 |
+
g2.parse(data=s, format=testfmt)
|
| 49 |
+
|
| 50 |
+
if verbose:
|
| 51 |
+
both, first, second = rdflib.compare.graph_diff(g1, g2)
|
| 52 |
+
print("Diff:")
|
| 53 |
+
print("%d triples in both" % len(both))
|
| 54 |
+
print("G1 Only:")
|
| 55 |
+
for t in first:
|
| 56 |
+
print(t)
|
| 57 |
+
|
| 58 |
+
print("--------------------")
|
| 59 |
+
print("G2 Only")
|
| 60 |
+
for t in second:
|
| 61 |
+
print(t)
|
| 62 |
+
|
| 63 |
+
assert rdflib.compare.isomorphic(g1, g2)
|
| 64 |
+
|
| 65 |
+
if verbose:
|
| 66 |
+
print("Ok!")
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
formats = None
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
def test_cases():
|
| 73 |
+
global formats
|
| 74 |
+
if not formats:
|
| 75 |
+
serializers = set(
|
| 76 |
+
x.name for x in rdflib.plugin.plugins(
|
| 77 |
+
None, rdflib.plugin.Serializer))
|
| 78 |
+
parsers = set(
|
| 79 |
+
x.name for x in rdflib.plugin.plugins(
|
| 80 |
+
None, rdflib.plugin.Parser))
|
| 81 |
+
formats = parsers.intersection(serializers)
|
| 82 |
+
|
| 83 |
+
for testfmt in formats:
|
| 84 |
+
if "/" in testfmt:
|
| 85 |
+
continue # skip double testing
|
| 86 |
+
for f, infmt in all_nt_files():
|
| 87 |
+
if (testfmt, f) not in SKIP:
|
| 88 |
+
yield roundtrip, (infmt, testfmt, f)
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
if __name__ == "__main__":
|
| 92 |
+
import nose
|
| 93 |
+
if len(sys.argv) == 1:
|
| 94 |
+
nose.main(defaultTest=sys.argv[0])
|
| 95 |
+
elif len(sys.argv) == 2:
|
| 96 |
+
import test.test_roundtrip
|
| 97 |
+
test.test_roundtrip.formats = [sys.argv[1]]
|
| 98 |
+
nose.main(defaultTest=sys.argv[0], argv=sys.argv[:1])
|
| 99 |
+
else:
|
| 100 |
+
roundtrip(
|
| 101 |
+
(sys.argv[2], sys.argv[1], sys.argv[3]), verbose=True)
|
testbed/RDFLib__rdflib/test/test_serializexml.py
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from rdflib.term import URIRef, BNode
|
| 2 |
+
from rdflib.namespace import RDFS
|
| 3 |
+
from six import b, BytesIO
|
| 4 |
+
|
| 5 |
+
from rdflib.plugins.serializers.rdfxml import XMLSerializer
|
| 6 |
+
|
| 7 |
+
from rdflib.graph import ConjunctiveGraph
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
class SerializerTestBase(object):
|
| 11 |
+
|
| 12 |
+
repeats = 8
|
| 13 |
+
|
| 14 |
+
def setup(self):
|
| 15 |
+
graph = ConjunctiveGraph()
|
| 16 |
+
graph.parse(data=self.testContent, format=self.testContentFormat)
|
| 17 |
+
self.sourceGraph = graph
|
| 18 |
+
|
| 19 |
+
def test_serialize_and_reparse(self):
|
| 20 |
+
reparsedGraph = serialize_and_load(self.sourceGraph, self.serializer)
|
| 21 |
+
_assert_equal_graphs(self.sourceGraph, reparsedGraph)
|
| 22 |
+
|
| 23 |
+
def test_multiple(self):
|
| 24 |
+
"""Repeats ``test_serialize`` ``self.repeats`` times, to reduce sucess based on in-memory ordering."""
|
| 25 |
+
for i in range(self.repeats):
|
| 26 |
+
self.test_serialize_and_reparse()
|
| 27 |
+
|
| 28 |
+
# test_multiple.slowtest=True # not really slow?
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def _assert_equal_graphs(g1, g2):
|
| 32 |
+
assert len(g1) == len(g2), "Serialized graph not same size as source graph."
|
| 33 |
+
g1copy = _mangled_copy(g1)
|
| 34 |
+
g2copy = _mangled_copy(g2)
|
| 35 |
+
g1copy -= _mangled_copy(g2)
|
| 36 |
+
g2copy -= _mangled_copy(g1)
|
| 37 |
+
assert len(g1copy) == 0, "Source graph larger than serialized graph."
|
| 38 |
+
assert len(g2copy) == 0, "Serialized graph larger than source graph."
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
_blank = BNode()
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def _mangled_copy(g):
|
| 45 |
+
"Makes a copy of the graph, replacing all bnodes with the bnode ``_blank``."
|
| 46 |
+
gcopy = ConjunctiveGraph()
|
| 47 |
+
|
| 48 |
+
def isbnode(v): return isinstance(v, BNode)
|
| 49 |
+
for s, p, o in g:
|
| 50 |
+
if isbnode(s):
|
| 51 |
+
s = _blank
|
| 52 |
+
if isbnode(p):
|
| 53 |
+
p = _blank
|
| 54 |
+
if isbnode(o):
|
| 55 |
+
o = _blank
|
| 56 |
+
gcopy.add((s, p, o))
|
| 57 |
+
return gcopy
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
def serialize(sourceGraph, makeSerializer, getValue=True, extra_args={}):
|
| 61 |
+
serializer = makeSerializer(sourceGraph)
|
| 62 |
+
stream = BytesIO()
|
| 63 |
+
serializer.serialize(stream, **extra_args)
|
| 64 |
+
return getValue and stream.getvalue() or stream
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
def serialize_and_load(sourceGraph, makeSerializer):
|
| 68 |
+
stream = serialize(sourceGraph, makeSerializer, False)
|
| 69 |
+
stream.seek(0)
|
| 70 |
+
reparsedGraph = ConjunctiveGraph()
|
| 71 |
+
reparsedGraph.load(stream)
|
| 72 |
+
return reparsedGraph
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
class TestXMLSerializer(SerializerTestBase):
|
| 76 |
+
|
| 77 |
+
serializer = XMLSerializer
|
| 78 |
+
|
| 79 |
+
testContent = """
|
| 80 |
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
| 81 |
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
| 82 |
+
@prefix : <http://example.org/model/test#> .
|
| 83 |
+
|
| 84 |
+
:value rdfs:domain :Test .
|
| 85 |
+
|
| 86 |
+
:Test rdfs:subClassOf
|
| 87 |
+
[ a owl:Restriction;
|
| 88 |
+
owl:onProperty :value ],
|
| 89 |
+
[ a owl:Restriction;
|
| 90 |
+
owl:onProperty :name ] .
|
| 91 |
+
|
| 92 |
+
<http://example.org/data/a> a :Test;
|
| 93 |
+
rdfs:seeAlso <http://example.org/data/b>;
|
| 94 |
+
:value "A" .
|
| 95 |
+
|
| 96 |
+
<http://example.org/data/b>
|
| 97 |
+
:name "Bee"@en, "Be"@sv;
|
| 98 |
+
:value "B" .
|
| 99 |
+
|
| 100 |
+
<http://example.org/data/c> a rdfs:Resource;
|
| 101 |
+
rdfs:seeAlso <http://example.org/data/c>;
|
| 102 |
+
:value 3 .
|
| 103 |
+
|
| 104 |
+
<http://example.org/data/d> a rdfs:Resource;
|
| 105 |
+
rdfs:seeAlso <http://example.org/data/c> ;
|
| 106 |
+
rdfs:seeAlso <http://example.org/data/b> ;
|
| 107 |
+
rdfs:seeAlso <http://example.org/data/a> .
|
| 108 |
+
|
| 109 |
+
_:bnode1 a :BNode;
|
| 110 |
+
rdfs:seeAlso _:bnode2 .
|
| 111 |
+
|
| 112 |
+
_:bnode2 a :BNode ;
|
| 113 |
+
rdfs:seeAlso _:bnode3 .
|
| 114 |
+
|
| 115 |
+
_:bnode3 a :BNode ;
|
| 116 |
+
rdfs:seeAlso _:bnode2 .
|
| 117 |
+
|
| 118 |
+
"""
|
| 119 |
+
testContentFormat = 'n3'
|
| 120 |
+
|
| 121 |
+
def test_result_fragments(self):
|
| 122 |
+
rdfXml = serialize(self.sourceGraph, self.serializer)
|
| 123 |
+
# print "--------"
|
| 124 |
+
# print rdfXml
|
| 125 |
+
# print "--------"
|
| 126 |
+
assert b('<rdf:Description rdf:about="http://example.org/data/a">') in rdfXml
|
| 127 |
+
assert b('<rdf:type rdf:resource="http://example.org/model/test#Test"/>') in rdfXml
|
| 128 |
+
assert b('<rdf:Description rdf:about="http://example.org/data/b">') in rdfXml
|
| 129 |
+
assert b('<name xml:lang="en">Bee</name>') in rdfXml
|
| 130 |
+
assert b('<value rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">3</value>') in rdfXml
|
| 131 |
+
assert b('<rdf:Description rdf:nodeID="') in rdfXml, "expected one identified bnode in serialized graph"
|
| 132 |
+
|
| 133 |
+
def test_result_fragments_with_base(self):
|
| 134 |
+
rdfXml = serialize(self.sourceGraph, self.serializer,
|
| 135 |
+
extra_args={'base': "http://example.org/", 'xml_base': "http://example.org/"})
|
| 136 |
+
# print "--------"
|
| 137 |
+
# print rdfXml
|
| 138 |
+
# print "--------"
|
| 139 |
+
assert b('xml:base="http://example.org/"') in rdfXml
|
| 140 |
+
assert b('<rdf:Description rdf:about="data/a">') in rdfXml
|
| 141 |
+
assert b('<rdf:type rdf:resource="model/test#Test"/>') in rdfXml
|
| 142 |
+
assert b('<rdf:Description rdf:about="data/b">') in rdfXml
|
| 143 |
+
assert b('<value rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">3</value>') in rdfXml
|
| 144 |
+
assert b('<rdf:Description rdf:nodeID="') in rdfXml, "expected one identified bnode in serialized graph"
|
| 145 |
+
|
| 146 |
+
def test_subClassOf_objects(self):
|
| 147 |
+
reparsedGraph = serialize_and_load(self.sourceGraph, self.serializer)
|
| 148 |
+
_assert_expected_object_types_for_predicates(reparsedGraph,
|
| 149 |
+
[RDFS.seeAlso, RDFS.subClassOf],
|
| 150 |
+
[URIRef, BNode])
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def _assert_expected_object_types_for_predicates(graph, predicates, types):
|
| 154 |
+
for s, p, o in graph:
|
| 155 |
+
if p in predicates:
|
| 156 |
+
someTrue = [isinstance(o, t) for t in types]
|
| 157 |
+
assert True in someTrue, \
|
| 158 |
+
"Bad type %s for object when predicate is <%s>." % (type(o), p)
|
testbed/RDFLib__rdflib/test/test_slice.py
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
from rdflib import Graph, URIRef
|
| 3 |
+
import unittest
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class GraphSlice(unittest.TestCase):
|
| 7 |
+
|
| 8 |
+
def testSlice(self):
|
| 9 |
+
"""
|
| 10 |
+
We pervert the slice object,
|
| 11 |
+
and use start, stop, step as subject, predicate, object
|
| 12 |
+
|
| 13 |
+
all operations return generators over full triples
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
+
def sl(x, y): return self.assertEqual(len(list(x)), y)
|
| 17 |
+
|
| 18 |
+
def soe(x, y): return self.assertEqual(
|
| 19 |
+
set([a[2] for a in x]), set(y)) # equals objects
|
| 20 |
+
g = self.graph
|
| 21 |
+
|
| 22 |
+
# Single terms are all trivial:
|
| 23 |
+
|
| 24 |
+
# single index slices by subject, i.e. return triples((x,None,None))
|
| 25 |
+
# tell me everything about "tarek"
|
| 26 |
+
sl(g[self.tarek], 2)
|
| 27 |
+
|
| 28 |
+
# single slice slices by s,p,o, with : used to split
|
| 29 |
+
# tell me everything about "tarek" (same as above)
|
| 30 |
+
sl(g[self.tarek::], 2)
|
| 31 |
+
|
| 32 |
+
# give me every "likes" relationship
|
| 33 |
+
sl(g[:self.likes:], 5)
|
| 34 |
+
|
| 35 |
+
# give me every relationship to pizza
|
| 36 |
+
sl(g[::self.pizza], 3)
|
| 37 |
+
|
| 38 |
+
# give me everyone who likes pizza
|
| 39 |
+
sl(g[:self.likes:self.pizza], 2)
|
| 40 |
+
|
| 41 |
+
# does tarek like pizza?
|
| 42 |
+
self.assertTrue(g[self.tarek:self.likes:self.pizza])
|
| 43 |
+
|
| 44 |
+
# More intesting is using paths
|
| 45 |
+
|
| 46 |
+
# everything hated or liked
|
| 47 |
+
sl(g[:self.hates | self.likes], 7)
|
| 48 |
+
|
| 49 |
+
def setUp(self):
|
| 50 |
+
self.graph = Graph()
|
| 51 |
+
|
| 52 |
+
self.michel = URIRef(u'michel')
|
| 53 |
+
self.tarek = URIRef(u'tarek')
|
| 54 |
+
self.bob = URIRef(u'bob')
|
| 55 |
+
self.likes = URIRef(u'likes')
|
| 56 |
+
self.hates = URIRef(u'hates')
|
| 57 |
+
self.pizza = URIRef(u'pizza')
|
| 58 |
+
self.cheese = URIRef(u'cheese')
|
| 59 |
+
|
| 60 |
+
self.addStuff()
|
| 61 |
+
|
| 62 |
+
def addStuff(self):
|
| 63 |
+
tarek = self.tarek
|
| 64 |
+
michel = self.michel
|
| 65 |
+
bob = self.bob
|
| 66 |
+
likes = self.likes
|
| 67 |
+
hates = self.hates
|
| 68 |
+
pizza = self.pizza
|
| 69 |
+
cheese = self.cheese
|
| 70 |
+
|
| 71 |
+
self.graph.add((tarek, likes, pizza))
|
| 72 |
+
self.graph.add((tarek, likes, cheese))
|
| 73 |
+
self.graph.add((michel, likes, pizza))
|
| 74 |
+
self.graph.add((michel, likes, cheese))
|
| 75 |
+
self.graph.add((bob, likes, cheese))
|
| 76 |
+
self.graph.add((bob, hates, pizza))
|
| 77 |
+
self.graph.add((bob, hates, michel)) # gasp!
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
if __name__ == '__main__':
|
| 81 |
+
unittest.main()
|
testbed/RDFLib__rdflib/test/test_sparql.py
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from rdflib import Graph, URIRef, Literal, BNode
|
| 2 |
+
from rdflib.plugins.sparql import prepareQuery
|
| 3 |
+
from rdflib.compare import isomorphic
|
| 4 |
+
|
| 5 |
+
from nose.tools import eq_
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
def test_graph_prefix():
|
| 9 |
+
"""
|
| 10 |
+
This is issue https://github.com/RDFLib/rdflib/issues/313
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
+
g1 = Graph()
|
| 14 |
+
g1.parse(data="""
|
| 15 |
+
@prefix : <urn:ns1:> .
|
| 16 |
+
:foo <p> 42.
|
| 17 |
+
""", format="n3")
|
| 18 |
+
|
| 19 |
+
g2 = Graph()
|
| 20 |
+
g2.parse(data="""
|
| 21 |
+
@prefix : <urn:somethingelse:> .
|
| 22 |
+
<urn:ns1:foo> <p> 42.
|
| 23 |
+
""", format="n3")
|
| 24 |
+
|
| 25 |
+
assert isomorphic(g1, g2)
|
| 26 |
+
|
| 27 |
+
q_str = ("""
|
| 28 |
+
PREFIX : <urn:ns1:>
|
| 29 |
+
SELECT ?val
|
| 30 |
+
WHERE { :foo ?p ?val }
|
| 31 |
+
""")
|
| 32 |
+
q_prepared = prepareQuery(q_str)
|
| 33 |
+
|
| 34 |
+
expected = [(Literal(42),)]
|
| 35 |
+
|
| 36 |
+
eq_(list(g1.query(q_prepared)), expected)
|
| 37 |
+
eq_(list(g2.query(q_prepared)), expected)
|
| 38 |
+
|
| 39 |
+
eq_(list(g1.query(q_str)), expected)
|
| 40 |
+
eq_(list(g2.query(q_str)), expected)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def test_variable_order():
|
| 44 |
+
|
| 45 |
+
g = Graph()
|
| 46 |
+
g.add((URIRef("http://foo"), URIRef("http://bar"), URIRef("http://baz")))
|
| 47 |
+
res = g.query("SELECT (42 AS ?a) ?b { ?b ?c ?d }")
|
| 48 |
+
|
| 49 |
+
row = list(res)[0]
|
| 50 |
+
print(row)
|
| 51 |
+
assert len(row) == 2
|
| 52 |
+
assert row[0] == Literal(42)
|
| 53 |
+
assert row[1] == URIRef("http://foo")
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
def test_sparql_bnodelist():
|
| 57 |
+
"""
|
| 58 |
+
|
| 59 |
+
syntax tests for a few corner-cases not touched by the
|
| 60 |
+
official tests.
|
| 61 |
+
|
| 62 |
+
"""
|
| 63 |
+
|
| 64 |
+
prepareQuery('select * where { ?s ?p ( [] ) . }')
|
| 65 |
+
prepareQuery('select * where { ?s ?p ( [ ?p2 ?o2 ] ) . }')
|
| 66 |
+
prepareQuery('select * where { ?s ?p ( [ ?p2 ?o2 ] [] ) . }')
|
| 67 |
+
prepareQuery('select * where { ?s ?p ( [] [ ?p2 ?o2 ] [] ) . }')
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
def test_complex_sparql_construct():
|
| 71 |
+
|
| 72 |
+
g = Graph()
|
| 73 |
+
q = '''select ?subject ?study ?id where {
|
| 74 |
+
?s a <urn:Person>;
|
| 75 |
+
<urn:partOf> ?c;
|
| 76 |
+
<urn:hasParent> ?mother, ?father;
|
| 77 |
+
<urn:id> [ a <urn:Identifier>; <urn:has-value> ?id].
|
| 78 |
+
}'''
|
| 79 |
+
g.query(q)
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
def test_sparql_update_with_bnode():
|
| 83 |
+
"""
|
| 84 |
+
Test if the blank node is inserted correctly.
|
| 85 |
+
"""
|
| 86 |
+
graph = Graph()
|
| 87 |
+
graph.update(
|
| 88 |
+
"INSERT DATA { _:blankA <urn:type> <urn:Blank> }")
|
| 89 |
+
for t in graph.triples((None, None, None)):
|
| 90 |
+
assert isinstance(t[0], BNode)
|
| 91 |
+
eq_(t[1].n3(), "<urn:type>")
|
| 92 |
+
eq_(t[2].n3(), "<urn:Blank>")
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def test_sparql_update_with_bnode_serialize_parse():
|
| 96 |
+
"""
|
| 97 |
+
Test if the blank node is inserted correctly, can be serialized and parsed.
|
| 98 |
+
"""
|
| 99 |
+
graph = Graph()
|
| 100 |
+
graph.update(
|
| 101 |
+
"INSERT DATA { _:blankA <urn:type> <urn:Blank> }")
|
| 102 |
+
string = graph.serialize(format='ntriples').decode('utf-8')
|
| 103 |
+
raised = False
|
| 104 |
+
try:
|
| 105 |
+
Graph().parse(data=string, format="ntriples")
|
| 106 |
+
except Exception as e:
|
| 107 |
+
raised = True
|
| 108 |
+
assert not raised
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
if __name__ == '__main__':
|
| 112 |
+
import nose
|
| 113 |
+
nose.main(defaultTest=__name__)
|
testbed/RDFLib__rdflib/test/test_sparql_agg_distinct.py
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from rdflib import Graph
|
| 2 |
+
|
| 3 |
+
query_tpl = '''
|
| 4 |
+
SELECT ?x (MIN(?y_) as ?y) (%s(DISTINCT ?z_) as ?z) {
|
| 5 |
+
VALUES (?x ?y_ ?z_) {
|
| 6 |
+
("x1" 10 1)
|
| 7 |
+
("x1" 11 1)
|
| 8 |
+
("x2" 20 2)
|
| 9 |
+
}
|
| 10 |
+
} GROUP BY ?x ORDER BY ?x
|
| 11 |
+
'''
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def test_group_concat_distinct():
|
| 15 |
+
g = Graph()
|
| 16 |
+
results = g.query(query_tpl % 'GROUP_CONCAT')
|
| 17 |
+
results = [[lit.toPython() for lit in line] for line in results]
|
| 18 |
+
|
| 19 |
+
# this is the tricky part
|
| 20 |
+
assert results[0][2] == "1", results[0][2]
|
| 21 |
+
|
| 22 |
+
# still check the whole result, to be on the safe side
|
| 23 |
+
assert results == [
|
| 24 |
+
["x1", 10, "1"],
|
| 25 |
+
["x2", 20, "2"],
|
| 26 |
+
], results
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def test_sum_distinct():
|
| 30 |
+
g = Graph()
|
| 31 |
+
results = g.query(query_tpl % 'SUM')
|
| 32 |
+
results = [[lit.toPython() for lit in line] for line in results]
|
| 33 |
+
|
| 34 |
+
# this is the tricky part
|
| 35 |
+
assert results[0][2] == 1, results[0][2]
|
| 36 |
+
|
| 37 |
+
# still check the whole result, to be on the safe side
|
| 38 |
+
assert results == [
|
| 39 |
+
["x1", 10, 1],
|
| 40 |
+
["x2", 20, 2],
|
| 41 |
+
], results
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def test_avg_distinct():
|
| 45 |
+
g = Graph()
|
| 46 |
+
results = g.query("""
|
| 47 |
+
SELECT ?x (MIN(?y_) as ?y) (AVG(DISTINCT ?z_) as ?z) {
|
| 48 |
+
VALUES (?x ?y_ ?z_) {
|
| 49 |
+
("x1" 10 1)
|
| 50 |
+
("x1" 11 1)
|
| 51 |
+
("x1" 12 3)
|
| 52 |
+
("x2" 20 2)
|
| 53 |
+
}
|
| 54 |
+
} GROUP BY ?x ORDER BY ?x
|
| 55 |
+
""")
|
| 56 |
+
results = [[lit.toPython() for lit in line] for line in results]
|
| 57 |
+
|
| 58 |
+
# this is the tricky part
|
| 59 |
+
assert results[0][2] == 2, results[0][2]
|
| 60 |
+
|
| 61 |
+
# still check the whole result, to be on the safe side
|
| 62 |
+
assert results == [
|
| 63 |
+
["x1", 10, 2],
|
| 64 |
+
["x2", 20, 2],
|
| 65 |
+
], results
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def test_count_distinct():
|
| 69 |
+
g = Graph()
|
| 70 |
+
|
| 71 |
+
g.parse(format="turtle", publicID="http://example.org/", data="""
|
| 72 |
+
@prefix : <> .
|
| 73 |
+
|
| 74 |
+
<#a>
|
| 75 |
+
:knows <#b>, <#c> ;
|
| 76 |
+
:age 42 .
|
| 77 |
+
|
| 78 |
+
<#b>
|
| 79 |
+
:knows <#a>, <#c> ;
|
| 80 |
+
:age 36 .
|
| 81 |
+
|
| 82 |
+
<#c>
|
| 83 |
+
:knows <#b>, <#c> ;
|
| 84 |
+
:age 20 .
|
| 85 |
+
|
| 86 |
+
""")
|
| 87 |
+
|
| 88 |
+
# Query 1: people knowing someone younger
|
| 89 |
+
results = g.query("""
|
| 90 |
+
PREFIX : <http://example.org/>
|
| 91 |
+
|
| 92 |
+
SELECT DISTINCT ?x {
|
| 93 |
+
?x :age ?ax ; :knows [ :age ?ay ].
|
| 94 |
+
FILTER( ?ax > ?ay )
|
| 95 |
+
}
|
| 96 |
+
""")
|
| 97 |
+
assert len(results) == 2
|
| 98 |
+
|
| 99 |
+
# nQuery 2: count people knowing someone younger
|
| 100 |
+
results = g.query("""
|
| 101 |
+
PREFIX : <http://example.org/>
|
| 102 |
+
|
| 103 |
+
SELECT (COUNT(DISTINCT ?x) as ?cx) {
|
| 104 |
+
?x :age ?ax ; :knows [ :age ?ay ].
|
| 105 |
+
FILTER( ?ax > ?ay )
|
| 106 |
+
}
|
| 107 |
+
""")
|
| 108 |
+
assert list(results)[0][0].toPython() == 2
|
testbed/RDFLib__rdflib/test/test_sparqlstore.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from rdflib import Graph, URIRef, Literal
|
| 2 |
+
from six.moves.urllib.request import urlopen
|
| 3 |
+
import os
|
| 4 |
+
import unittest
|
| 5 |
+
from nose import SkipTest
|
| 6 |
+
from requests import HTTPError
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
try:
|
| 10 |
+
assert len(urlopen("http://dbpedia.org/sparql").read()) > 0
|
| 11 |
+
except:
|
| 12 |
+
raise SkipTest("No HTTP connection.")
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class SPARQLStoreDBPediaTestCase(unittest.TestCase):
|
| 16 |
+
store_name = 'SPARQLStore'
|
| 17 |
+
path = "http://dbpedia.org/sparql"
|
| 18 |
+
storetest = True
|
| 19 |
+
create = False
|
| 20 |
+
|
| 21 |
+
def setUp(self):
|
| 22 |
+
self.graph = Graph(store="SPARQLStore")
|
| 23 |
+
self.graph.open(self.path, create=self.create)
|
| 24 |
+
ns = list(self.graph.namespaces())
|
| 25 |
+
assert len(ns) > 0, ns
|
| 26 |
+
|
| 27 |
+
def tearDown(self):
|
| 28 |
+
self.graph.close()
|
| 29 |
+
|
| 30 |
+
def test_Query(self):
|
| 31 |
+
query = "select distinct ?Concept where {[] a ?Concept} LIMIT 1"
|
| 32 |
+
res = self.graph.query(query, initNs={})
|
| 33 |
+
for i in res:
|
| 34 |
+
assert type(i[0]) == URIRef, i[0].n3()
|
| 35 |
+
|
| 36 |
+
def test_initNs(self):
|
| 37 |
+
query = """\
|
| 38 |
+
SELECT ?label WHERE
|
| 39 |
+
{ ?s a xyzzy:Concept ; xyzzy:prefLabel ?label . } LIMIT 10
|
| 40 |
+
"""
|
| 41 |
+
res = self.graph.query(
|
| 42 |
+
query,
|
| 43 |
+
initNs={"xyzzy": "http://www.w3.org/2004/02/skos/core#"})
|
| 44 |
+
for i in res:
|
| 45 |
+
assert type(i[0]) == Literal, i[0].n3()
|
| 46 |
+
|
| 47 |
+
def test_noinitNs(self):
|
| 48 |
+
query = """\
|
| 49 |
+
SELECT ?label WHERE
|
| 50 |
+
{ ?s a xyzzy:Concept ; xyzzy:prefLabel ?label . } LIMIT 10
|
| 51 |
+
"""
|
| 52 |
+
self.assertRaises(
|
| 53 |
+
HTTPError,
|
| 54 |
+
self.graph.query,
|
| 55 |
+
query)
|
| 56 |
+
|
| 57 |
+
def test_query_with_added_prolog(self):
|
| 58 |
+
prologue = """\
|
| 59 |
+
PREFIX xyzzy: <http://www.w3.org/2004/02/skos/core#>
|
| 60 |
+
"""
|
| 61 |
+
query = """\
|
| 62 |
+
SELECT ?label WHERE
|
| 63 |
+
{ ?s a xyzzy:Concept ; xyzzy:prefLabel ?label . } LIMIT 10
|
| 64 |
+
"""
|
| 65 |
+
res = self.graph.query(prologue + query)
|
| 66 |
+
for i in res:
|
| 67 |
+
assert type(i[0]) == Literal, i[0].n3()
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
if __name__ == '__main__':
|
| 71 |
+
unittest.main()
|
testbed/RDFLib__rdflib/test/test_sparqlupdatestore.py
ADDED
|
@@ -0,0 +1,340 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
from __future__ import unicode_literals
|
| 3 |
+
|
| 4 |
+
from nose import SkipTest
|
| 5 |
+
|
| 6 |
+
import unittest
|
| 7 |
+
import re
|
| 8 |
+
|
| 9 |
+
from rdflib import ConjunctiveGraph, URIRef, Literal, BNode, Graph
|
| 10 |
+
from six import text_type
|
| 11 |
+
from six.moves.urllib.request import urlopen
|
| 12 |
+
|
| 13 |
+
HOST = 'http://localhost:3031'
|
| 14 |
+
DB = '/db/'
|
| 15 |
+
|
| 16 |
+
# this assumes SPARQL1.1 query/update endpoints running locally at
|
| 17 |
+
# http://localhost:3031/db/
|
| 18 |
+
#
|
| 19 |
+
# The ConjunctiveGraph tests below require that the SPARQL endpoint renders its
|
| 20 |
+
# default graph as the union of all known graphs! This is incompatible with the
|
| 21 |
+
# endpoint behavior required by our Dataset tests in test_dataset.py, so you
|
| 22 |
+
# need to run a second SPARQL endpoint on a non standard port,
|
| 23 |
+
# e.g. fuseki started with:
|
| 24 |
+
# ./fuseki-server --port 3031 --memTDB --update --set tdb:unionDefaultGraph=true /db
|
| 25 |
+
|
| 26 |
+
# THIS WILL DELETE ALL DATA IN THE /db dataset
|
| 27 |
+
|
| 28 |
+
michel = URIRef(u'urn:michel')
|
| 29 |
+
tarek = URIRef(u'urn:tarek')
|
| 30 |
+
bob = URIRef(u'urn:bob')
|
| 31 |
+
likes = URIRef(u'urn:likes')
|
| 32 |
+
hates = URIRef(u'urn:hates')
|
| 33 |
+
pizza = URIRef(u'urn:pizza')
|
| 34 |
+
cheese = URIRef(u'urn:cheese')
|
| 35 |
+
|
| 36 |
+
graphuri = URIRef('urn:graph')
|
| 37 |
+
othergraphuri = URIRef('urn:othergraph')
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
class TestSparql11(unittest.TestCase):
|
| 41 |
+
|
| 42 |
+
def setUp(self):
|
| 43 |
+
self.longMessage = True
|
| 44 |
+
self.graph = ConjunctiveGraph('SPARQLUpdateStore')
|
| 45 |
+
|
| 46 |
+
root = HOST + DB
|
| 47 |
+
self.graph.open((root + "sparql", root + "update"))
|
| 48 |
+
|
| 49 |
+
# clean out the store
|
| 50 |
+
for c in self.graph.contexts():
|
| 51 |
+
c.remove((None, None, None))
|
| 52 |
+
assert len(c) == 0
|
| 53 |
+
|
| 54 |
+
def tearDown(self):
|
| 55 |
+
self.graph.close()
|
| 56 |
+
|
| 57 |
+
def testSimpleGraph(self):
|
| 58 |
+
g = self.graph.get_context(graphuri)
|
| 59 |
+
g.add((tarek, likes, pizza))
|
| 60 |
+
g.add((bob, likes, pizza))
|
| 61 |
+
g.add((bob, likes, cheese))
|
| 62 |
+
|
| 63 |
+
g2 = self.graph.get_context(othergraphuri)
|
| 64 |
+
g2.add((michel, likes, pizza))
|
| 65 |
+
|
| 66 |
+
self.assertEqual(3, len(g), 'graph contains 3 triples')
|
| 67 |
+
self.assertEqual(1, len(g2), 'other graph contains 1 triple')
|
| 68 |
+
|
| 69 |
+
r = g.query("SELECT * WHERE { ?s <urn:likes> <urn:pizza> . }")
|
| 70 |
+
self.assertEqual(2, len(list(r)), "two people like pizza")
|
| 71 |
+
|
| 72 |
+
r = g.triples((None, likes, pizza))
|
| 73 |
+
self.assertEqual(2, len(list(r)), "two people like pizza")
|
| 74 |
+
|
| 75 |
+
# Test initBindings
|
| 76 |
+
r = g.query("SELECT * WHERE { ?s <urn:likes> <urn:pizza> . }",
|
| 77 |
+
initBindings={'s': tarek})
|
| 78 |
+
self.assertEqual(1, len(list(r)), "i was asking only about tarek")
|
| 79 |
+
|
| 80 |
+
r = g.triples((tarek, likes, pizza))
|
| 81 |
+
self.assertEqual(1, len(list(r)), "i was asking only about tarek")
|
| 82 |
+
|
| 83 |
+
r = g.triples((tarek, likes, cheese))
|
| 84 |
+
self.assertEqual(0, len(list(r)), "tarek doesn't like cheese")
|
| 85 |
+
|
| 86 |
+
g2.add((tarek, likes, pizza))
|
| 87 |
+
g.remove((tarek, likes, pizza))
|
| 88 |
+
r = g.query("SELECT * WHERE { ?s <urn:likes> <urn:pizza> . }")
|
| 89 |
+
self.assertEqual(1, len(list(r)), "only bob likes pizza")
|
| 90 |
+
|
| 91 |
+
def testConjunctiveDefault(self):
|
| 92 |
+
g = self.graph.get_context(graphuri)
|
| 93 |
+
g.add((tarek, likes, pizza))
|
| 94 |
+
g2 = self.graph.get_context(othergraphuri)
|
| 95 |
+
g2.add((bob, likes, pizza))
|
| 96 |
+
g.add((tarek, hates, cheese))
|
| 97 |
+
|
| 98 |
+
self.assertEqual(2, len(g), 'graph contains 2 triples')
|
| 99 |
+
|
| 100 |
+
# the following are actually bad tests as they depend on your endpoint,
|
| 101 |
+
# as pointed out in the sparqlstore.py code:
|
| 102 |
+
#
|
| 103 |
+
# For ConjunctiveGraphs, reading is done from the "default graph" Exactly
|
| 104 |
+
# what this means depends on your endpoint, because SPARQL does not offer a
|
| 105 |
+
# simple way to query the union of all graphs as it would be expected for a
|
| 106 |
+
# ConjuntiveGraph.
|
| 107 |
+
##
|
| 108 |
+
# Fuseki/TDB has a flag for specifying that the default graph
|
| 109 |
+
# is the union of all graphs (tdb:unionDefaultGraph in the Fuseki config).
|
| 110 |
+
self.assertEqual(3, len(self.graph),
|
| 111 |
+
'default union graph should contain three triples but contains:\n'
|
| 112 |
+
'%s' % list(self.graph))
|
| 113 |
+
|
| 114 |
+
r = self.graph.query("SELECT * WHERE { ?s <urn:likes> <urn:pizza> . }")
|
| 115 |
+
self.assertEqual(2, len(list(r)), "two people like pizza")
|
| 116 |
+
|
| 117 |
+
r = self.graph.query("SELECT * WHERE { ?s <urn:likes> <urn:pizza> . }",
|
| 118 |
+
initBindings={'s': tarek})
|
| 119 |
+
self.assertEqual(1, len(list(r)), "i was asking only about tarek")
|
| 120 |
+
|
| 121 |
+
r = self.graph.triples((tarek, likes, pizza))
|
| 122 |
+
self.assertEqual(1, len(list(r)), "i was asking only about tarek")
|
| 123 |
+
|
| 124 |
+
r = self.graph.triples((tarek, likes, cheese))
|
| 125 |
+
self.assertEqual(0, len(list(r)), "tarek doesn't like cheese")
|
| 126 |
+
|
| 127 |
+
g2.remove((bob, likes, pizza))
|
| 128 |
+
|
| 129 |
+
r = self.graph.query("SELECT * WHERE { ?s <urn:likes> <urn:pizza> . }")
|
| 130 |
+
self.assertEqual(1, len(list(r)), "only tarek likes pizza")
|
| 131 |
+
|
| 132 |
+
def testUpdate(self):
|
| 133 |
+
self.graph.update("INSERT DATA { GRAPH <urn:graph> { <urn:michel> <urn:likes> <urn:pizza> . } }")
|
| 134 |
+
|
| 135 |
+
g = self.graph.get_context(graphuri)
|
| 136 |
+
self.assertEqual(1, len(g), 'graph contains 1 triples')
|
| 137 |
+
|
| 138 |
+
def testUpdateWithInitNs(self):
|
| 139 |
+
self.graph.update(
|
| 140 |
+
"INSERT DATA { GRAPH ns:graph { ns:michel ns:likes ns:pizza . } }",
|
| 141 |
+
initNs={'ns': URIRef('urn:')}
|
| 142 |
+
)
|
| 143 |
+
|
| 144 |
+
g = self.graph.get_context(graphuri)
|
| 145 |
+
self.assertEqual(
|
| 146 |
+
set(g.triples((None, None, None))),
|
| 147 |
+
set([(michel, likes, pizza)]),
|
| 148 |
+
'only michel likes pizza'
|
| 149 |
+
)
|
| 150 |
+
|
| 151 |
+
def testUpdateWithInitBindings(self):
|
| 152 |
+
self.graph.update(
|
| 153 |
+
"INSERT { GRAPH <urn:graph> { ?a ?b ?c . } } WherE { }",
|
| 154 |
+
initBindings={
|
| 155 |
+
'a': URIRef('urn:michel'),
|
| 156 |
+
'b': URIRef('urn:likes'),
|
| 157 |
+
'c': URIRef('urn:pizza'),
|
| 158 |
+
}
|
| 159 |
+
)
|
| 160 |
+
|
| 161 |
+
g = self.graph.get_context(graphuri)
|
| 162 |
+
self.assertEqual(
|
| 163 |
+
set(g.triples((None, None, None))),
|
| 164 |
+
set([(michel, likes, pizza)]),
|
| 165 |
+
'only michel likes pizza'
|
| 166 |
+
)
|
| 167 |
+
|
| 168 |
+
def testUpdateWithBlankNode(self):
|
| 169 |
+
self.graph.update(
|
| 170 |
+
"INSERT DATA { GRAPH <urn:graph> { _:blankA <urn:type> <urn:Blank> } }")
|
| 171 |
+
g = self.graph.get_context(graphuri)
|
| 172 |
+
for t in g.triples((None, None, None)):
|
| 173 |
+
self.assertTrue(isinstance(t[0], BNode))
|
| 174 |
+
self.assertEqual(t[1].n3(), "<urn:type>")
|
| 175 |
+
self.assertEqual(t[2].n3(), "<urn:Blank>")
|
| 176 |
+
|
| 177 |
+
def testUpdateWithBlankNodeSerializeAndParse(self):
|
| 178 |
+
self.graph.update(
|
| 179 |
+
"INSERT DATA { GRAPH <urn:graph> { _:blankA <urn:type> <urn:Blank> } }")
|
| 180 |
+
g = self.graph.get_context(graphuri)
|
| 181 |
+
string = g.serialize(format='ntriples').decode('utf-8')
|
| 182 |
+
raised = False
|
| 183 |
+
try:
|
| 184 |
+
Graph().parse(data=string, format="ntriples")
|
| 185 |
+
except Exception as e:
|
| 186 |
+
raised = True
|
| 187 |
+
self.assertFalse(raised, 'Exception raised when parsing: ' + string)
|
| 188 |
+
|
| 189 |
+
def testMultipleUpdateWithInitBindings(self):
|
| 190 |
+
self.graph.update(
|
| 191 |
+
"INSERT { GRAPH <urn:graph> { ?a ?b ?c . } } WHERE { };"
|
| 192 |
+
"INSERT { GRAPH <urn:graph> { ?d ?b ?c . } } WHERE { }",
|
| 193 |
+
initBindings={
|
| 194 |
+
'a': URIRef('urn:michel'),
|
| 195 |
+
'b': URIRef('urn:likes'),
|
| 196 |
+
'c': URIRef('urn:pizza'),
|
| 197 |
+
'd': URIRef('urn:bob'),
|
| 198 |
+
}
|
| 199 |
+
)
|
| 200 |
+
|
| 201 |
+
g = self.graph.get_context(graphuri)
|
| 202 |
+
self.assertEqual(
|
| 203 |
+
set(g.triples((None, None, None))),
|
| 204 |
+
set([(michel, likes, pizza), (bob, likes, pizza)]),
|
| 205 |
+
'michel and bob like pizza'
|
| 206 |
+
)
|
| 207 |
+
|
| 208 |
+
def testNamedGraphUpdate(self):
|
| 209 |
+
g = self.graph.get_context(graphuri)
|
| 210 |
+
r1 = "INSERT DATA { <urn:michel> <urn:likes> <urn:pizza> }"
|
| 211 |
+
g.update(r1)
|
| 212 |
+
self.assertEqual(
|
| 213 |
+
set(g.triples((None, None, None))),
|
| 214 |
+
set([(michel, likes, pizza)]),
|
| 215 |
+
'only michel likes pizza'
|
| 216 |
+
)
|
| 217 |
+
|
| 218 |
+
r2 = "DELETE { <urn:michel> <urn:likes> <urn:pizza> } " + \
|
| 219 |
+
"INSERT { <urn:bob> <urn:likes> <urn:pizza> } WHERE {}"
|
| 220 |
+
g.update(r2)
|
| 221 |
+
self.assertEqual(
|
| 222 |
+
set(g.triples((None, None, None))),
|
| 223 |
+
set([(bob, likes, pizza)]),
|
| 224 |
+
'only bob likes pizza'
|
| 225 |
+
)
|
| 226 |
+
says = URIRef("urn:says")
|
| 227 |
+
|
| 228 |
+
# Strings with unbalanced curly braces
|
| 229 |
+
tricky_strs = ["With an unbalanced curly brace %s " % brace
|
| 230 |
+
for brace in ["{", "}"]]
|
| 231 |
+
for tricky_str in tricky_strs:
|
| 232 |
+
r3 = """INSERT { ?b <urn:says> "%s" }
|
| 233 |
+
WHERE { ?b <urn:likes> <urn:pizza>} """ % tricky_str
|
| 234 |
+
g.update(r3)
|
| 235 |
+
|
| 236 |
+
values = set()
|
| 237 |
+
for v in g.objects(bob, says):
|
| 238 |
+
values.add(str(v))
|
| 239 |
+
self.assertEqual(values, set(tricky_strs))
|
| 240 |
+
|
| 241 |
+
# Complicated Strings
|
| 242 |
+
r4strings = []
|
| 243 |
+
r4strings.append(r'''"1: adfk { ' \\\" \" { "''')
|
| 244 |
+
r4strings.append(r'''"2: adfk } <foo> #éï \\"''')
|
| 245 |
+
|
| 246 |
+
r4strings.append(r"""'3: adfk { " \\\' \' { '""")
|
| 247 |
+
r4strings.append(r"""'4: adfk } <foo> #éï \\'""")
|
| 248 |
+
|
| 249 |
+
r4strings.append(r'''"""5: adfk { ' \\\" \" { """''')
|
| 250 |
+
r4strings.append(r'''"""6: adfk } <foo> #éï \\"""''')
|
| 251 |
+
r4strings.append('"""7: ad adsfj \n { \n sadfj"""')
|
| 252 |
+
|
| 253 |
+
r4strings.append(r"""'''8: adfk { " \\\' \' { '''""")
|
| 254 |
+
r4strings.append(r"""'''9: adfk } <foo> #éï \\'''""")
|
| 255 |
+
r4strings.append("'''10: ad adsfj \n { \n sadfj'''")
|
| 256 |
+
|
| 257 |
+
r4 = "\n".join([
|
| 258 |
+
u'INSERT DATA { <urn:michel> <urn:says> %s } ;' % s
|
| 259 |
+
for s in r4strings
|
| 260 |
+
])
|
| 261 |
+
g.update(r4)
|
| 262 |
+
values = set()
|
| 263 |
+
for v in g.objects(michel, says):
|
| 264 |
+
values.add(text_type(v))
|
| 265 |
+
self.assertEqual(values, set([re.sub(r"\\(.)", r"\1", re.sub(
|
| 266 |
+
r"^'''|'''$|^'|'$|" + r'^"""|"""$|^"|"$', r"", s)) for s in r4strings]))
|
| 267 |
+
|
| 268 |
+
# IRI Containing ' or #
|
| 269 |
+
# The fragment identifier must not be misinterpreted as a comment
|
| 270 |
+
# (commenting out the end of the block).
|
| 271 |
+
# The ' must not be interpreted as the start of a string, causing the }
|
| 272 |
+
# in the literal to be identified as the end of the block.
|
| 273 |
+
r5 = """INSERT DATA { <urn:michel> <urn:hates> <urn:foo'bar?baz;a=1&b=2#fragment>, "'}" }"""
|
| 274 |
+
|
| 275 |
+
g.update(r5)
|
| 276 |
+
values = set()
|
| 277 |
+
for v in g.objects(michel, hates):
|
| 278 |
+
values.add(text_type(v))
|
| 279 |
+
self.assertEqual(values, set([u"urn:foo'bar?baz;a=1&b=2#fragment", u"'}"]))
|
| 280 |
+
|
| 281 |
+
# Comments
|
| 282 |
+
r6 = u"""
|
| 283 |
+
INSERT DATA {
|
| 284 |
+
<urn:bob> <urn:hates> <urn:bob> . # No closing brace: }
|
| 285 |
+
<urn:bob> <urn:hates> <urn:michel>.
|
| 286 |
+
}
|
| 287 |
+
#Final { } comment"""
|
| 288 |
+
|
| 289 |
+
g.update(r6)
|
| 290 |
+
values = set()
|
| 291 |
+
for v in g.objects(bob, hates):
|
| 292 |
+
values.add(v)
|
| 293 |
+
self.assertEqual(values, set([bob, michel]))
|
| 294 |
+
|
| 295 |
+
def testNamedGraphUpdateWithInitBindings(self):
|
| 296 |
+
g = self.graph.get_context(graphuri)
|
| 297 |
+
r = "INSERT { ?a ?b ?c } WHERE {}"
|
| 298 |
+
g.update(r, initBindings={
|
| 299 |
+
'a': michel,
|
| 300 |
+
'b': likes,
|
| 301 |
+
'c': pizza
|
| 302 |
+
})
|
| 303 |
+
self.assertEqual(
|
| 304 |
+
set(g.triples((None, None, None))),
|
| 305 |
+
set([(michel, likes, pizza)]),
|
| 306 |
+
'only michel likes pizza'
|
| 307 |
+
)
|
| 308 |
+
|
| 309 |
+
def testEmptyNamedGraph(self):
|
| 310 |
+
empty_graph_iri = "urn:empty-graph-1"
|
| 311 |
+
self.graph.update("CREATE GRAPH <%s>" % empty_graph_iri)
|
| 312 |
+
named_graphs = [text_type(r[0]) for r in self.graph.query(
|
| 313 |
+
"SELECT ?name WHERE { GRAPH ?name {} }")]
|
| 314 |
+
# Some SPARQL endpoint backends (like TDB) are not able to find empty named graphs
|
| 315 |
+
# (at least with this query)
|
| 316 |
+
if empty_graph_iri in named_graphs:
|
| 317 |
+
self.assertTrue(empty_graph_iri in [text_type(g.identifier)
|
| 318 |
+
for g in self.graph.contexts()])
|
| 319 |
+
|
| 320 |
+
def testEmptyLiteral(self):
|
| 321 |
+
# test for https://github.com/RDFLib/rdflib/issues/457
|
| 322 |
+
# also see test_issue457.py which is sparql store independent!
|
| 323 |
+
g = self.graph.get_context(graphuri)
|
| 324 |
+
g.add((
|
| 325 |
+
URIRef('http://example.com/s'),
|
| 326 |
+
URIRef('http://example.com/p'),
|
| 327 |
+
Literal('')))
|
| 328 |
+
|
| 329 |
+
o = tuple(g)[0][2]
|
| 330 |
+
self.assertEqual(o, Literal(''), repr(o))
|
| 331 |
+
|
| 332 |
+
|
| 333 |
+
try:
|
| 334 |
+
assert len(urlopen(HOST).read()) > 0
|
| 335 |
+
except:
|
| 336 |
+
raise SkipTest(HOST + " is unavailable.")
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
if __name__ == '__main__':
|
| 340 |
+
unittest.main()
|
testbed/RDFLib__rdflib/test/test_swap_n3.py
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from nose.exc import SkipTest
|
| 2 |
+
import os
|
| 3 |
+
import sys
|
| 4 |
+
import unittest
|
| 5 |
+
try:
|
| 6 |
+
maketrans = str.maketrans
|
| 7 |
+
except AttributeError:
|
| 8 |
+
from string import maketrans
|
| 9 |
+
import rdflib
|
| 10 |
+
|
| 11 |
+
"""
|
| 12 |
+
SWAP N3 parser test suite
|
| 13 |
+
"""
|
| 14 |
+
|
| 15 |
+
rdf = rdflib.Namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#")
|
| 16 |
+
rdfs = rdflib.Namespace("http://www.w3.org/2000/01/rdf-schema#")
|
| 17 |
+
xsd = rdflib.Namespace("http://www.w3.org/2001/XMLSchema#")
|
| 18 |
+
owl = rdflib.Namespace("http://www.w3.org/2002/07/owl#")
|
| 19 |
+
test = rdflib.Namespace("http://www.w3.org/2000/10/swap/test.n3#")
|
| 20 |
+
n3test = rdflib.Namespace("http://www.w3.org/2004/11/n3test#")
|
| 21 |
+
rdft = rdflib.Namespace("http://www.w3.org/2000/10/rdf-tests/rdfcore/testSchema#")
|
| 22 |
+
triage = rdflib.Namespace("http://www.w3.org/2000/10/swap/test/triage#")
|
| 23 |
+
mf = rdflib.Namespace("http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#")
|
| 24 |
+
qt = rdflib.Namespace("http://www.w3.org/2001/sw/DataAccess/tests/test-query#")
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
# class TestSWAPN3(unittest.TestCase):
|
| 28 |
+
# """SWAP 2000/10/n3 tests"""
|
| 29 |
+
|
| 30 |
+
# def setUp(self):
|
| 31 |
+
|
| 32 |
+
# def test_foo(self):
|
| 33 |
+
# """footest"""
|
| 34 |
+
# self.graph.parse(os.getcwd()+'/test/swap-n3/n3-rdf.tests', format="n3")
|
| 35 |
+
# tfiles = []
|
| 36 |
+
# for tst in self.graph.subjects():
|
| 37 |
+
# files = [str(tfile).replace('http://www.w3.org/2000/10/', 'file://'+os.getcwd()+'/test/swap-n3/')
|
| 38 |
+
# for tfile in self.graph.objects(tst, rdflib.URIRef("http://www.w3.org/2004/11/n3test#inputDocument")) if tfile.endswith('n3')]
|
| 39 |
+
# tfiles += files
|
| 40 |
+
# for tfile in tfiles:
|
| 41 |
+
# self.graph.parse(tfile, format="n3")
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
skiptests = [
|
| 45 |
+
'syntax_neg_single_quote',
|
| 46 |
+
'syntax_neg_literal_predicate',
|
| 47 |
+
'syntax_this_quantifiers',
|
| 48 |
+
'syntax_trailing_semicolon',
|
| 49 |
+
'syntax_neg_thisadoc',
|
| 50 |
+
'syntax_equals1',
|
| 51 |
+
'syntax_equals2',
|
| 52 |
+
'syntax_this_rules',
|
| 53 |
+
'syntax_neg_keywords3',
|
| 54 |
+
'syntax_zero_objects',
|
| 55 |
+
'syntax_neg_formula_predicate',
|
| 56 |
+
'syntax_zero_predicates',
|
| 57 |
+
# 'syntax_qvars1',
|
| 58 |
+
# 'syntax_qvars2',
|
| 59 |
+
# 'contexts',
|
| 60 |
+
'syntax_too_nested'
|
| 61 |
+
]
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
class Envelope(object):
|
| 65 |
+
def __init__(self, n, f):
|
| 66 |
+
self.name = n
|
| 67 |
+
self.file = f
|
| 68 |
+
|
| 69 |
+
def __repr__(self):
|
| 70 |
+
return self.name
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
def generictest(e):
|
| 74 |
+
"""Documentation"""
|
| 75 |
+
if e.skip:
|
| 76 |
+
raise SkipTest("%s skipped, known issue" % e.name)
|
| 77 |
+
g = rdflib.Graph()
|
| 78 |
+
for i in [rdf, rdfs, xsd, owl, test, n3test, rdft, triage, mf, qt]:
|
| 79 |
+
g.bind(str(i), i)
|
| 80 |
+
g.parse(e.file, format="n3")
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
def dir_to_uri(directory, sep=os.path.sep):
|
| 84 |
+
'''
|
| 85 |
+
Convert a local path to a File URI.
|
| 86 |
+
|
| 87 |
+
>>> dir_to_uri('c:\\\\temp\\\\foo\\\\file.txt', sep='\\\\')
|
| 88 |
+
'file:///c:/temp/foo/file.txt'
|
| 89 |
+
|
| 90 |
+
>>> dir_to_uri('/tmp/foo/file.txt', sep='/')
|
| 91 |
+
'file:///tmp/foo/file.txt'
|
| 92 |
+
'''
|
| 93 |
+
items = directory.split(sep)
|
| 94 |
+
path = '/'.join(items)
|
| 95 |
+
if path.startswith('/'):
|
| 96 |
+
path = path[1:]
|
| 97 |
+
return 'file:///%s' % (path,)
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
def test_cases():
|
| 101 |
+
from copy import deepcopy
|
| 102 |
+
g = rdflib.Graph()
|
| 103 |
+
swap_dir = os.path.join(os.getcwd(), 'test', 'swap-n3')
|
| 104 |
+
g.parse(os.path.join(swap_dir, 'n3-rdf.tests'), format="n3")
|
| 105 |
+
g.parse(os.path.join(swap_dir, 'n3-full.tests'), format="n3")
|
| 106 |
+
tfiles = []
|
| 107 |
+
swap_dir_uri = dir_to_uri(swap_dir) + '/'
|
| 108 |
+
for tst in g.subjects():
|
| 109 |
+
files = [str(tfile).replace('http://www.w3.org/2000/10/', swap_dir_uri)
|
| 110 |
+
for tfile in g.objects(tst, rdflib.URIRef("http://www.w3.org/2004/11/n3test#inputDocument")) if tfile.endswith('n3')]
|
| 111 |
+
tfiles += files
|
| 112 |
+
for tfile in set(tfiles):
|
| 113 |
+
gname = tfile.split('/swap-n3/swap/test/')[1][:-3].translate(maketrans('-/','__'))
|
| 114 |
+
e = Envelope(gname, tfile)
|
| 115 |
+
if gname in skiptests:
|
| 116 |
+
e.skip = True
|
| 117 |
+
else:
|
| 118 |
+
e.skip = False
|
| 119 |
+
# e.skip = True
|
| 120 |
+
if sys.version_info[:2] == (2, 4):
|
| 121 |
+
import pickle
|
| 122 |
+
gjt = pickle.dumps(generictest)
|
| 123 |
+
gt = pickle.loads(gjt)
|
| 124 |
+
else:
|
| 125 |
+
gt = deepcopy(generictest)
|
| 126 |
+
gt.__doc__ = tfile
|
| 127 |
+
yield gt, e
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
if __name__ == "__main__":
|
| 131 |
+
test_cases()
|
| 132 |
+
# unittest.main()
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
"""
|
| 136 |
+
Interesting failure in Python 2.4 ...
|
| 137 |
+
|
| 138 |
+
======================================================================
|
| 139 |
+
ERROR: Failure: TypeError (function() takes at least 2 arguments (0 given))
|
| 140 |
+
----------------------------------------------------------------------
|
| 141 |
+
Traceback (most recent call last):
|
| 142 |
+
File ".../python2.4/site-packages/nose/loader.py", line 231, in generate
|
| 143 |
+
for test in g():
|
| 144 |
+
File ".../rdflib/test/test_swap_n3.py", line 95, in test_cases
|
| 145 |
+
gt = deepcopy(generictest)
|
| 146 |
+
File "/usr/local/python2.4/lib/python2.4/copy.py", line 204, in deepcopy
|
| 147 |
+
y = _reconstruct(x, rv, 1, memo)
|
| 148 |
+
File "/usr/local/python2.4/lib/python2.4/copy.py", line 336, in _reconstruct
|
| 149 |
+
y = callable(*args)
|
| 150 |
+
File "...py24/lib/python2.4/copy_reg.py", line 92, in __newobj__
|
| 151 |
+
return cls.__new__(cls, *args)
|
| 152 |
+
TypeError: function() takes at least 2 arguments (0 given)
|
| 153 |
+
|
| 154 |
+
"""
|
testbed/RDFLib__rdflib/test/test_term.py
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
some more specific Literal tests are in test_literal.py
|
| 3 |
+
"""
|
| 4 |
+
|
| 5 |
+
import base64
|
| 6 |
+
import unittest
|
| 7 |
+
import random
|
| 8 |
+
|
| 9 |
+
from rdflib.term import URIRef, BNode, Literal, _is_valid_unicode
|
| 10 |
+
from rdflib.graph import QuotedGraph, Graph
|
| 11 |
+
from rdflib.namespace import XSD
|
| 12 |
+
|
| 13 |
+
from six import PY3
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def uformat(s):
|
| 17 |
+
if PY3:
|
| 18 |
+
return s.replace("u'", "'")
|
| 19 |
+
return s
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
class TestURIRefRepr(unittest.TestCase):
|
| 23 |
+
"""
|
| 24 |
+
see also test_literal.TestRepr
|
| 25 |
+
"""
|
| 26 |
+
|
| 27 |
+
def testSubclassNameAppearsInRepr(self):
|
| 28 |
+
class MyURIRef(URIRef):
|
| 29 |
+
pass
|
| 30 |
+
x = MyURIRef('http://example.com/')
|
| 31 |
+
self.assertEqual(repr(x), uformat("MyURIRef(u'http://example.com/')"))
|
| 32 |
+
|
| 33 |
+
def testGracefulOrdering(self):
|
| 34 |
+
u = URIRef('cake')
|
| 35 |
+
g = Graph()
|
| 36 |
+
a = u > u
|
| 37 |
+
a = u > BNode()
|
| 38 |
+
a = u > QuotedGraph(g.store, u)
|
| 39 |
+
a = u > g
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
class TestBNodeRepr(unittest.TestCase):
|
| 43 |
+
|
| 44 |
+
def testSubclassNameAppearsInRepr(self):
|
| 45 |
+
class MyBNode(BNode):
|
| 46 |
+
pass
|
| 47 |
+
x = MyBNode()
|
| 48 |
+
self.assertTrue(repr(x).startswith("MyBNode("))
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
class TestLiteral(unittest.TestCase):
|
| 52 |
+
|
| 53 |
+
def test_base64_values(self):
|
| 54 |
+
b64msg = 'cmRmbGliIGlzIGNvb2whIGFsc28gaGVyZSdzIHNvbWUgYmluYXJ5IAAR83UC'
|
| 55 |
+
decoded_b64msg = base64.b64decode(b64msg)
|
| 56 |
+
lit = Literal(b64msg, datatype=XSD.base64Binary)
|
| 57 |
+
self.assertEqual(lit.value, decoded_b64msg)
|
| 58 |
+
self.assertEqual(str(lit), b64msg)
|
| 59 |
+
|
| 60 |
+
def test_total_order(self):
|
| 61 |
+
types = {
|
| 62 |
+
XSD.dateTime: (
|
| 63 |
+
'2001-01-01T00:00:00',
|
| 64 |
+
'2001-01-01T00:00:00Z',
|
| 65 |
+
'2001-01-01T00:00:00-00:00'
|
| 66 |
+
),
|
| 67 |
+
XSD.date: (
|
| 68 |
+
'2001-01-01',
|
| 69 |
+
'2001-01-01Z',
|
| 70 |
+
'2001-01-01-00:00'
|
| 71 |
+
),
|
| 72 |
+
XSD.time: (
|
| 73 |
+
'00:00:00',
|
| 74 |
+
'00:00:00Z',
|
| 75 |
+
'00:00:00-00:00'
|
| 76 |
+
),
|
| 77 |
+
XSD.gYear: (
|
| 78 |
+
'2001',
|
| 79 |
+
'2001Z',
|
| 80 |
+
'2001-00:00'
|
| 81 |
+
), # interval
|
| 82 |
+
XSD.gYearMonth: (
|
| 83 |
+
'2001-01',
|
| 84 |
+
'2001-01Z',
|
| 85 |
+
'2001-01-00:00'
|
| 86 |
+
),
|
| 87 |
+
}
|
| 88 |
+
literals = [
|
| 89 |
+
Literal(literal, datatype=t)
|
| 90 |
+
for t, literals in types.items()
|
| 91 |
+
for literal in literals
|
| 92 |
+
]
|
| 93 |
+
try:
|
| 94 |
+
sorted(literals)
|
| 95 |
+
orderable = True
|
| 96 |
+
except TypeError as e:
|
| 97 |
+
for l in literals:
|
| 98 |
+
print(repr(l), repr(l.value))
|
| 99 |
+
print(e)
|
| 100 |
+
orderable = False
|
| 101 |
+
self.assertTrue(orderable)
|
| 102 |
+
|
| 103 |
+
# also make sure that within a datetime things are still ordered:
|
| 104 |
+
l1 = [
|
| 105 |
+
Literal(l, datatype=XSD.dateTime)
|
| 106 |
+
for l in [
|
| 107 |
+
'2001-01-01T00:00:00',
|
| 108 |
+
'2001-01-01T01:00:00',
|
| 109 |
+
'2001-01-01T01:00:01',
|
| 110 |
+
'2001-01-02T01:00:01',
|
| 111 |
+
'2001-01-01T00:00:00Z',
|
| 112 |
+
'2001-01-01T00:00:00-00:00',
|
| 113 |
+
'2001-01-01T01:00:00Z',
|
| 114 |
+
'2001-01-01T01:00:00-00:00',
|
| 115 |
+
'2001-01-01T00:00:00-01:30',
|
| 116 |
+
'2001-01-01T01:00:00-01:30',
|
| 117 |
+
'2001-01-02T01:00:01Z',
|
| 118 |
+
'2001-01-02T01:00:01-00:00',
|
| 119 |
+
'2001-01-02T01:00:01-01:30'
|
| 120 |
+
]
|
| 121 |
+
]
|
| 122 |
+
l2 = list(l1)
|
| 123 |
+
random.shuffle(l2)
|
| 124 |
+
self.assertListEqual(l1, sorted(l2))
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
class TestValidityFunctions(unittest.TestCase):
|
| 128 |
+
|
| 129 |
+
def test_is_valid_unicode(self):
|
| 130 |
+
testcase_list = (
|
| 131 |
+
(None, True),
|
| 132 |
+
(1, True),
|
| 133 |
+
(['foo'], True),
|
| 134 |
+
({'foo': b'bar'}, True),
|
| 135 |
+
('foo', True),
|
| 136 |
+
(b'foo\x00', True),
|
| 137 |
+
(b'foo\xf3\x02', False)
|
| 138 |
+
)
|
| 139 |
+
for val, expected in testcase_list:
|
| 140 |
+
self.assertEqual(_is_valid_unicode(val), expected)
|
testbed/RDFLib__rdflib/test/test_trig_w3c.py
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Runs the tests for the W3C RDF Working Group's TriG test suite.
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
|
| 5 |
+
from rdflib import ConjunctiveGraph
|
| 6 |
+
from rdflib.namespace import split_uri
|
| 7 |
+
from rdflib.compare import graph_diff, isomorphic
|
| 8 |
+
|
| 9 |
+
from .manifest import nose_tests, RDFT
|
| 10 |
+
from .testutils import nose_tst_earl_report
|
| 11 |
+
|
| 12 |
+
verbose = False
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def trig(test):
|
| 16 |
+
g = ConjunctiveGraph()
|
| 17 |
+
|
| 18 |
+
try:
|
| 19 |
+
base = 'http://www.w3.org/2013/TriGTests/' + split_uri(test.action)[1]
|
| 20 |
+
|
| 21 |
+
g.parse(test.action, publicID=base, format='trig')
|
| 22 |
+
if not test.syntax:
|
| 23 |
+
raise AssertionError("Input shouldn't have parsed!")
|
| 24 |
+
|
| 25 |
+
if test.result: # eval test
|
| 26 |
+
res = ConjunctiveGraph()
|
| 27 |
+
res.parse(test.result, format='nquads')
|
| 28 |
+
|
| 29 |
+
if verbose:
|
| 30 |
+
|
| 31 |
+
both, first, second = graph_diff(g, res)
|
| 32 |
+
if not first and not second:
|
| 33 |
+
return
|
| 34 |
+
|
| 35 |
+
print('===============================')
|
| 36 |
+
print('TriG')
|
| 37 |
+
print(g.serialize(format='nquads'))
|
| 38 |
+
print('===============================')
|
| 39 |
+
print('NQuads')
|
| 40 |
+
print(res.serialize(format='nquads'))
|
| 41 |
+
print('===============================')
|
| 42 |
+
|
| 43 |
+
print("Diff:")
|
| 44 |
+
# print "%d triples in both"%len(both)
|
| 45 |
+
print("TriG Only:")
|
| 46 |
+
for t in first:
|
| 47 |
+
print(t)
|
| 48 |
+
|
| 49 |
+
print("--------------------")
|
| 50 |
+
print("NQuads Only")
|
| 51 |
+
for t in second:
|
| 52 |
+
print(t)
|
| 53 |
+
raise Exception('Graphs do not match!')
|
| 54 |
+
|
| 55 |
+
assert isomorphic(g, res), 'graphs must be the same'
|
| 56 |
+
|
| 57 |
+
except:
|
| 58 |
+
if test.syntax:
|
| 59 |
+
raise
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
testers = {
|
| 63 |
+
RDFT.TestTrigPositiveSyntax: trig,
|
| 64 |
+
RDFT.TestTrigNegativeSyntax: trig,
|
| 65 |
+
RDFT.TestTrigEval: trig,
|
| 66 |
+
RDFT.TestTrigNegativeEval: trig
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
def test_trig(tests=None):
|
| 71 |
+
for t in nose_tests(testers, 'test/w3c/trig/manifest.ttl'):
|
| 72 |
+
if tests:
|
| 73 |
+
for test in tests:
|
| 74 |
+
if test in t[1].uri:
|
| 75 |
+
break
|
| 76 |
+
else:
|
| 77 |
+
continue
|
| 78 |
+
|
| 79 |
+
yield t
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
if __name__ == '__main__':
|
| 83 |
+
verbose = True
|
| 84 |
+
|
| 85 |
+
nose_tst_earl_report(test_trig, 'rdflib_trig')
|
testbed/RDFLib__rdflib/test/test_trix_parse.py
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
from rdflib.graph import ConjunctiveGraph
|
| 5 |
+
import unittest
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class TestTrixParse(unittest.TestCase):
|
| 9 |
+
|
| 10 |
+
def setUp(self):
|
| 11 |
+
pass
|
| 12 |
+
|
| 13 |
+
def tearDown(self):
|
| 14 |
+
pass
|
| 15 |
+
|
| 16 |
+
def testAperture(self):
|
| 17 |
+
|
| 18 |
+
g = ConjunctiveGraph()
|
| 19 |
+
|
| 20 |
+
g.parse("test/trix/aperture.trix", format="trix")
|
| 21 |
+
c = list(g.contexts())
|
| 22 |
+
|
| 23 |
+
# print list(g.contexts())
|
| 24 |
+
t = sum(map(len, g.contexts()))
|
| 25 |
+
|
| 26 |
+
self.assertEqual(t, 24)
|
| 27 |
+
self.assertEqual(len(c), 4)
|
| 28 |
+
|
| 29 |
+
# print "Parsed %d triples"%t
|
| 30 |
+
|
| 31 |
+
def testSpec(self):
|
| 32 |
+
|
| 33 |
+
g = ConjunctiveGraph()
|
| 34 |
+
|
| 35 |
+
g.parse("test/trix/nokia_example.trix", format="trix")
|
| 36 |
+
|
| 37 |
+
# print "Parsed %d triples"%len(g)
|
| 38 |
+
|
| 39 |
+
def testNG4j(self):
|
| 40 |
+
|
| 41 |
+
g = ConjunctiveGraph()
|
| 42 |
+
|
| 43 |
+
g.parse("test/trix/ng4jtest.trix", format="trix")
|
| 44 |
+
|
| 45 |
+
# print "Parsed %d triples"%len(g)
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
if __name__ == '__main__':
|
| 49 |
+
unittest.main()
|
testbed/RDFLib__rdflib/test/test_trix_serialize.py
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
|
| 3 |
+
import unittest
|
| 4 |
+
|
| 5 |
+
from rdflib.graph import ConjunctiveGraph
|
| 6 |
+
from rdflib.term import URIRef, Literal
|
| 7 |
+
from rdflib.graph import Graph
|
| 8 |
+
from six import BytesIO
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
class TestTrixSerialize(unittest.TestCase):
|
| 12 |
+
|
| 13 |
+
def setUp(self):
|
| 14 |
+
pass
|
| 15 |
+
|
| 16 |
+
def tearDown(self):
|
| 17 |
+
pass
|
| 18 |
+
|
| 19 |
+
def testSerialize(self):
|
| 20 |
+
|
| 21 |
+
s1 = URIRef('store:1')
|
| 22 |
+
r1 = URIRef('resource:1')
|
| 23 |
+
r2 = URIRef('resource:2')
|
| 24 |
+
|
| 25 |
+
label = URIRef('predicate:label')
|
| 26 |
+
|
| 27 |
+
g1 = Graph(identifier=s1)
|
| 28 |
+
g1.add((r1, label, Literal("label 1", lang="en")))
|
| 29 |
+
g1.add((r1, label, Literal("label 2")))
|
| 30 |
+
|
| 31 |
+
s2 = URIRef('store:2')
|
| 32 |
+
g2 = Graph(identifier=s2)
|
| 33 |
+
g2.add((r2, label, Literal("label 3")))
|
| 34 |
+
|
| 35 |
+
g = ConjunctiveGraph()
|
| 36 |
+
for s, p, o in g1.triples((None, None, None)):
|
| 37 |
+
g.addN([(s, p, o, g1)])
|
| 38 |
+
for s, p, o in g2.triples((None, None, None)):
|
| 39 |
+
g.addN([(s, p, o, g2)])
|
| 40 |
+
r3 = URIRef('resource:3')
|
| 41 |
+
g.add((r3, label, Literal(4)))
|
| 42 |
+
|
| 43 |
+
r = g.serialize(format='trix')
|
| 44 |
+
g3 = ConjunctiveGraph()
|
| 45 |
+
|
| 46 |
+
g3.parse(BytesIO(r), format='trix')
|
| 47 |
+
|
| 48 |
+
for q in g3.quads((None, None, None)):
|
| 49 |
+
# TODO: Fix once getGraph/getContext is in conjunctive graph
|
| 50 |
+
if isinstance(q[3].identifier, URIRef):
|
| 51 |
+
tg = Graph(store=g.store, identifier=q[3].identifier)
|
| 52 |
+
else:
|
| 53 |
+
# BNode, this is a bit ugly
|
| 54 |
+
# we cannot match the bnode to the right graph automagically
|
| 55 |
+
# here I know there is only one anonymous graph,
|
| 56 |
+
# and that is the default one, but this is not always the case
|
| 57 |
+
tg = g.default_context
|
| 58 |
+
self.assertTrue(q[0:3] in tg)
|
| 59 |
+
|
| 60 |
+
def test_issue_250(self):
|
| 61 |
+
"""
|
| 62 |
+
|
| 63 |
+
https://github.com/RDFLib/rdflib/issues/250
|
| 64 |
+
|
| 65 |
+
When I have a ConjunctiveGraph with the default namespace set,
|
| 66 |
+
for example
|
| 67 |
+
|
| 68 |
+
import rdflib
|
| 69 |
+
g = rdflib.ConjunctiveGraph()
|
| 70 |
+
g.bind(None, "http://defaultnamespace")
|
| 71 |
+
|
| 72 |
+
then the Trix serializer binds the default namespace twice in its XML
|
| 73 |
+
output, once for the Trix namespace and once for the namespace I used:
|
| 74 |
+
|
| 75 |
+
print(g.serialize(format='trix').decode('UTF-8'))
|
| 76 |
+
|
| 77 |
+
<?xml version="1.0" encoding="utf-8"?>
|
| 78 |
+
<TriX
|
| 79 |
+
xmlns:xml="http://www.w3.org/XML/1998/namespace"
|
| 80 |
+
xmlns="http://defaultnamespace"
|
| 81 |
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
| 82 |
+
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
|
| 83 |
+
xmlns="http://www.w3.org/2004/03/trix/trix-1/"
|
| 84 |
+
/>
|
| 85 |
+
|
| 86 |
+
"""
|
| 87 |
+
|
| 88 |
+
graph = ConjunctiveGraph()
|
| 89 |
+
graph.bind(None, "http://defaultnamespace")
|
| 90 |
+
sg = graph.serialize(format='trix').decode('UTF-8')
|
| 91 |
+
self.assertTrue(
|
| 92 |
+
'xmlns="http://defaultnamespace"' not in sg, sg)
|
| 93 |
+
self.assertTrue(
|
| 94 |
+
'xmlns="http://www.w3.org/2004/03/trix/trix-1/' in sg, sg)
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
if __name__ == '__main__':
|
| 98 |
+
unittest.main()
|
testbed/RDFLib__rdflib/test/test_tsvresults.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import unittest
|
| 2 |
+
from six import StringIO
|
| 3 |
+
from rdflib.plugins.sparql.results.tsvresults import TSVResultParser
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class TestTSVResults(unittest.TestCase):
|
| 7 |
+
|
| 8 |
+
def test_empty_tsvresults_bindings(self):
|
| 9 |
+
# check that optional bindings are ordered properly
|
| 10 |
+
source = """?s\t?p\t?o
|
| 11 |
+
\t<urn:p>\t<urn:o>
|
| 12 |
+
<urn:s>\t\t<urn:o>
|
| 13 |
+
<urn:s>\t<urn:p>\t"""
|
| 14 |
+
|
| 15 |
+
parser = TSVResultParser()
|
| 16 |
+
source = StringIO(source)
|
| 17 |
+
result = parser.parse(source)
|
| 18 |
+
|
| 19 |
+
for idx, row in enumerate(result):
|
| 20 |
+
self.assertTrue(row[idx] is None)
|
testbed/RDFLib__rdflib/test/test_turtle_serialize.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from rdflib import Graph, URIRef, BNode, RDF, Literal, Namespace
|
| 2 |
+
from rdflib.collection import Collection
|
| 3 |
+
from rdflib.plugins.serializers.turtle import TurtleSerializer
|
| 4 |
+
from six import b
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
def testTurtleFinalDot():
|
| 8 |
+
"""
|
| 9 |
+
https://github.com/RDFLib/rdflib/issues/282
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
g = Graph()
|
| 13 |
+
u = URIRef("http://ex.org/bob.")
|
| 14 |
+
g.bind("ns", "http://ex.org/")
|
| 15 |
+
g.add((u, u, u))
|
| 16 |
+
s = g.serialize(format='turtle')
|
| 17 |
+
assert b("ns:bob.") not in s
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def testTurtleBoolList():
|
| 21 |
+
subject = URIRef("http://localhost/user")
|
| 22 |
+
predicate = URIRef("http://localhost/vocab#hasList")
|
| 23 |
+
g1 = Graph()
|
| 24 |
+
list_item1 = BNode()
|
| 25 |
+
list_item2 = BNode()
|
| 26 |
+
list_item3 = BNode()
|
| 27 |
+
g1.add((subject, predicate, list_item1))
|
| 28 |
+
g1.add((list_item1, RDF.first, Literal(True)))
|
| 29 |
+
g1.add((list_item1, RDF.rest, list_item2))
|
| 30 |
+
g1.add((list_item2, RDF.first, Literal(False)))
|
| 31 |
+
g1.add((list_item2, RDF.rest, list_item3))
|
| 32 |
+
g1.add((list_item3, RDF.first, Literal(True)))
|
| 33 |
+
g1.add((list_item3, RDF.rest, RDF.nil))
|
| 34 |
+
|
| 35 |
+
ttl_dump = g1.serialize(format="turtle")
|
| 36 |
+
g2 = Graph()
|
| 37 |
+
g2.parse(data=ttl_dump, format="turtle")
|
| 38 |
+
|
| 39 |
+
list_id = g2.value(subject, predicate)
|
| 40 |
+
bool_list = [i.toPython() for i in Collection(g2, list_id)]
|
| 41 |
+
assert bool_list == [True, False, True]
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def testUnicodeEscaping():
|
| 45 |
+
turtle_string = " <http://example.com/A> <http://example.com/B> <http://example.com/aaa\u00F3bbbb> . <http://example.com/A> <http://example.com/C> <http://example.com/zzz\U00100000zzz> . <http://example.com/A> <http://example.com/D> <http://example.com/aaa\u00f3bbb> ."
|
| 46 |
+
g = Graph()
|
| 47 |
+
|
| 48 |
+
# shouldn't get an exception
|
| 49 |
+
g.parse(data=turtle_string, format="turtle")
|
| 50 |
+
triples = sorted(list(g))
|
| 51 |
+
assert len(triples) == 3
|
| 52 |
+
print(triples)
|
| 53 |
+
# Now check that was decoded into python values properly
|
| 54 |
+
assert triples[0][2] == URIRef(u'http://example.com/aaa\xf3bbbb')
|
| 55 |
+
assert triples[1][2] == URIRef(u'http://example.com/zzz\U00100000zzz')
|
| 56 |
+
assert triples[2][2] == URIRef(u'http://example.com/aaa\xf3bbb')
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def test_turtle_valid_list():
|
| 60 |
+
NS = Namespace('http://example.org/ns/')
|
| 61 |
+
g = Graph()
|
| 62 |
+
g.parse(data="""
|
| 63 |
+
@prefix : <{0}> .
|
| 64 |
+
:s :p (""), (0), (false) .
|
| 65 |
+
""".format(NS), format='turtle')
|
| 66 |
+
|
| 67 |
+
turtle_serializer = TurtleSerializer(g)
|
| 68 |
+
|
| 69 |
+
for o in g.objects(NS.s, NS.p):
|
| 70 |
+
assert turtle_serializer.isValidList(o)
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
if __name__ == "__main__":
|
| 74 |
+
import nose
|
| 75 |
+
import sys
|
| 76 |
+
nose.main(defaultTest=sys.argv[0])
|
testbed/RDFLib__rdflib/test/test_turtle_sort_issue613.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import rdflib
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
In py3, some objects are not comparable. When the turtle serializer tries to sort them everything breaks.
|
| 5 |
+
|
| 6 |
+
* Timezone aware datetime objects and "naive" datetime objects are not comparable
|
| 7 |
+
|
| 8 |
+
https://github.com/RDFLib/rdflib/issues/648
|
| 9 |
+
https://github.com/RDFLib/rdflib/issues/613
|
| 10 |
+
|
| 11 |
+
* DocumentFragment
|
| 12 |
+
https://github.com/RDFLib/rdflib/issues/676
|
| 13 |
+
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def test_sort_dates():
|
| 18 |
+
|
| 19 |
+
g = rdflib.Graph()
|
| 20 |
+
y = '''@prefix ex: <http://ex.org> .
|
| 21 |
+
ex:X ex:p "2016-01-01T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime>, "2016-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> . '''
|
| 22 |
+
|
| 23 |
+
p = g.parse(data=y, format="turtle")
|
| 24 |
+
p.serialize(format="turtle")
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def test_sort_docfrag():
|
| 28 |
+
|
| 29 |
+
g = rdflib.Graph()
|
| 30 |
+
y = '''@prefix ex: <http://ex.org> .
|
| 31 |
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
| 32 |
+
ex:X ex:p "<h1>hi</h1>"^^rdf:HTML, "<h1>ho</h1>"^^rdf:HTML . '''
|
| 33 |
+
|
| 34 |
+
p = g.parse(data=y, format="turtle")
|
| 35 |
+
p.serialize(format="turtle")
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
if __name__ == '__main__':
|
| 39 |
+
|
| 40 |
+
test_sort_docfrag()
|
testbed/RDFLib__rdflib/test/test_turtle_w3c.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""This runs the turtle tests for the W3C RDF Working Group's N-Quads
|
| 2 |
+
test suite."""
|
| 3 |
+
|
| 4 |
+
from rdflib import Graph
|
| 5 |
+
from rdflib.namespace import split_uri
|
| 6 |
+
from rdflib.compare import graph_diff, isomorphic
|
| 7 |
+
|
| 8 |
+
from .manifest import nose_tests, RDFT
|
| 9 |
+
from .testutils import nose_tst_earl_report
|
| 10 |
+
|
| 11 |
+
verbose = False
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def turtle(test):
|
| 15 |
+
g = Graph()
|
| 16 |
+
|
| 17 |
+
try:
|
| 18 |
+
base = 'http://www.w3.org/2013/TurtleTests/' + split_uri(test.action)[1]
|
| 19 |
+
|
| 20 |
+
g.parse(test.action, publicID=base, format='turtle')
|
| 21 |
+
if not test.syntax:
|
| 22 |
+
raise AssertionError("Input shouldn't have parsed!")
|
| 23 |
+
|
| 24 |
+
if test.result: # eval test
|
| 25 |
+
res = Graph()
|
| 26 |
+
res.parse(test.result, format='nt')
|
| 27 |
+
|
| 28 |
+
if verbose:
|
| 29 |
+
both, first, second = graph_diff(g, res)
|
| 30 |
+
if not first and not second:
|
| 31 |
+
return
|
| 32 |
+
print("Diff:")
|
| 33 |
+
# print "%d triples in both"%len(both)
|
| 34 |
+
print("Turtle Only:")
|
| 35 |
+
for t in first:
|
| 36 |
+
print(t)
|
| 37 |
+
|
| 38 |
+
print("--------------------")
|
| 39 |
+
print("NT Only")
|
| 40 |
+
for t in second:
|
| 41 |
+
print(t)
|
| 42 |
+
raise Exception('Graphs do not match!')
|
| 43 |
+
|
| 44 |
+
assert isomorphic(g, res), 'graphs must be the same'
|
| 45 |
+
|
| 46 |
+
except:
|
| 47 |
+
if test.syntax:
|
| 48 |
+
raise
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
testers = {
|
| 52 |
+
RDFT.TestTurtlePositiveSyntax: turtle,
|
| 53 |
+
RDFT.TestTurtleNegativeSyntax: turtle,
|
| 54 |
+
RDFT.TestTurtleEval: turtle,
|
| 55 |
+
RDFT.TestTurtleNegativeEval: turtle
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def test_turtle(tests=None):
|
| 60 |
+
for t in nose_tests(testers,
|
| 61 |
+
'test/w3c/turtle/manifest.ttl'):
|
| 62 |
+
if tests:
|
| 63 |
+
for test in tests:
|
| 64 |
+
if test in t[1].uri:
|
| 65 |
+
break
|
| 66 |
+
else:
|
| 67 |
+
continue
|
| 68 |
+
|
| 69 |
+
yield t
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
if __name__ == '__main__':
|
| 73 |
+
|
| 74 |
+
verbose = True
|
| 75 |
+
|
| 76 |
+
nose_tst_earl_report(test_turtle, 'rdflib_turtle')
|
testbed/RDFLib__rdflib/test/test_util.py
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
import time
|
| 3 |
+
from rdflib.graph import Graph
|
| 4 |
+
from rdflib.graph import QuotedGraph
|
| 5 |
+
from rdflib.graph import ConjunctiveGraph
|
| 6 |
+
from rdflib.term import BNode
|
| 7 |
+
from rdflib.term import Literal
|
| 8 |
+
from rdflib.term import URIRef
|
| 9 |
+
from rdflib import util
|
| 10 |
+
from rdflib import XSD
|
| 11 |
+
from rdflib.exceptions import SubjectTypeError
|
| 12 |
+
from rdflib.exceptions import PredicateTypeError
|
| 13 |
+
from rdflib.exceptions import ObjectTypeError
|
| 14 |
+
from rdflib.exceptions import ContextTypeError
|
| 15 |
+
|
| 16 |
+
n3source = """\
|
| 17 |
+
@prefix : <http://www.w3.org/2000/10/swap/Primer#>.
|
| 18 |
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
| 19 |
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
| 20 |
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
| 21 |
+
@prefix dc: <http://purl.org/dc/elements/1.1/> .
|
| 22 |
+
@prefix foo: <http://www.w3.org/2000/10/swap/Primer#>.
|
| 23 |
+
@prefix swap: <http://www.w3.org/2000/10/swap/>.
|
| 24 |
+
|
| 25 |
+
<> dc:title
|
| 26 |
+
"Primer - Getting into the Semantic Web and RDF using N3".
|
| 27 |
+
|
| 28 |
+
<#pat> <#knows> <#jo> .
|
| 29 |
+
<#pat> <#age> 24 .
|
| 30 |
+
<#al> is <#child> of <#pat> .
|
| 31 |
+
|
| 32 |
+
<#pat> <#child> <#al>, <#chaz>, <#mo> ;
|
| 33 |
+
<#age> 24 ;
|
| 34 |
+
<#eyecolor> "blue" .
|
| 35 |
+
|
| 36 |
+
:Person a rdfs:Class.
|
| 37 |
+
|
| 38 |
+
:Pat a :Person.
|
| 39 |
+
|
| 40 |
+
:Woman a rdfs:Class; rdfs:subClassOf :Person .
|
| 41 |
+
|
| 42 |
+
:sister a rdf:Property.
|
| 43 |
+
|
| 44 |
+
:sister rdfs:domain :Person;
|
| 45 |
+
rdfs:range :Woman.
|
| 46 |
+
|
| 47 |
+
:Woman = foo:FemaleAdult .
|
| 48 |
+
:Title a rdf:Property; = dc:title .
|
| 49 |
+
|
| 50 |
+
""" # --- End of primer code
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
class TestUtilMisc(unittest.TestCase):
|
| 54 |
+
def setUp(self):
|
| 55 |
+
self.x = Literal("2008-12-01T18:02:00Z",
|
| 56 |
+
datatype=URIRef('http://www.w3.org/2001/XMLSchema#dateTime'))
|
| 57 |
+
|
| 58 |
+
def test_util_list2set(self):
|
| 59 |
+
base = [Literal('foo'), self.x]
|
| 60 |
+
r = util.list2set(base + base)
|
| 61 |
+
self.assertTrue(r == base)
|
| 62 |
+
|
| 63 |
+
def test_util_uniq(self):
|
| 64 |
+
base = ["michel", "hates", "pizza"]
|
| 65 |
+
r = util.uniq(base + base)
|
| 66 |
+
self.assertEqual(sorted(r), sorted(base))
|
| 67 |
+
base = ["michel", "hates", "pizza"]
|
| 68 |
+
r = util.uniq(base + base, strip=True)
|
| 69 |
+
self.assertEqual(sorted(r), sorted(base))
|
| 70 |
+
|
| 71 |
+
def test_coverage_dodge(self):
|
| 72 |
+
util.test()
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
class TestUtilDateTime(unittest.TestCase):
|
| 76 |
+
|
| 77 |
+
def setUp(self):
|
| 78 |
+
self.x = Literal("2008-12-01T18:02:00Z",
|
| 79 |
+
datatype=URIRef('http://www.w3.org/2001/XMLSchema#dateTime'))
|
| 80 |
+
|
| 81 |
+
def test_util_date_time_tisnoneandnotz(self):
|
| 82 |
+
t = None
|
| 83 |
+
res = util.date_time(t, local_time_zone=False)
|
| 84 |
+
self.assertTrue(res[4:5] == "-")
|
| 85 |
+
|
| 86 |
+
def test_util_date_time_tisnonebuttz(self):
|
| 87 |
+
t = None
|
| 88 |
+
res = util.date_time(t, local_time_zone=True)
|
| 89 |
+
self.assertTrue(res[4:5] == "-")
|
| 90 |
+
|
| 91 |
+
def test_util_date_time_tistime(self):
|
| 92 |
+
t = time.time()
|
| 93 |
+
res = util.date_time(t, local_time_zone=False)
|
| 94 |
+
self.assertTrue(res[4:5] == "-")
|
| 95 |
+
|
| 96 |
+
def test_util_date_time_tistimewithtz(self):
|
| 97 |
+
t = time.time()
|
| 98 |
+
res = util.date_time(t, local_time_zone=True)
|
| 99 |
+
self.assertTrue(res[4:5] == "-")
|
| 100 |
+
|
| 101 |
+
def test_util_parse_date_time(self):
|
| 102 |
+
t = time.time()
|
| 103 |
+
res = util.parse_date_time("1970-01-01")
|
| 104 |
+
self.assertTrue(res is not t)
|
| 105 |
+
|
| 106 |
+
def test_util_parse_date_timewithtz(self):
|
| 107 |
+
t = time.time()
|
| 108 |
+
res = util.parse_date_time("1970-01-01")
|
| 109 |
+
self.assertTrue(res is not t)
|
| 110 |
+
|
| 111 |
+
def test_util_date_timewithtoutz(self):
|
| 112 |
+
t = time.time()
|
| 113 |
+
|
| 114 |
+
def ablocaltime(t):
|
| 115 |
+
from time import gmtime
|
| 116 |
+
res = gmtime(t)
|
| 117 |
+
return res
|
| 118 |
+
util.localtime = ablocaltime
|
| 119 |
+
res = util.date_time(t, local_time_zone=True)
|
| 120 |
+
self.assertTrue(res is not t)
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
class TestUtilTermConvert(unittest.TestCase):
|
| 124 |
+
def setUp(self):
|
| 125 |
+
self.x = Literal("2008-12-01T18:02:00Z",
|
| 126 |
+
datatype=URIRef('http://www.w3.org/2001/XMLSchema#dateTime'))
|
| 127 |
+
|
| 128 |
+
def test_util_to_term_sisNone(self):
|
| 129 |
+
s = None
|
| 130 |
+
self.assertEqual(util.to_term(s), s)
|
| 131 |
+
self.assertEqual(util.to_term(s, default=""), "")
|
| 132 |
+
|
| 133 |
+
def test_util_to_term_sisstr(self):
|
| 134 |
+
s = '"http://example.com"'
|
| 135 |
+
res = util.to_term(s)
|
| 136 |
+
self.assertTrue(isinstance(res, Literal))
|
| 137 |
+
self.assertEqual(str(res), s[1:-1])
|
| 138 |
+
|
| 139 |
+
def test_util_to_term_sisurl(self):
|
| 140 |
+
s = "<http://example.com>"
|
| 141 |
+
res = util.to_term(s)
|
| 142 |
+
self.assertTrue(isinstance(res, URIRef))
|
| 143 |
+
self.assertEqual(str(res), s[1:-1])
|
| 144 |
+
|
| 145 |
+
def test_util_to_term_sisbnode(self):
|
| 146 |
+
s = '_http%23%4F%4Fexample%33com'
|
| 147 |
+
res = util.to_term(s)
|
| 148 |
+
self.assertTrue(isinstance(res, BNode))
|
| 149 |
+
|
| 150 |
+
def test_util_to_term_sisunknown(self):
|
| 151 |
+
s = 'http://example.com'
|
| 152 |
+
self.assertRaises(Exception, util.to_term, s)
|
| 153 |
+
|
| 154 |
+
def test_util_to_term_sisnotstr(self):
|
| 155 |
+
s = self.x
|
| 156 |
+
self.assertRaises(Exception, util.to_term, s)
|
| 157 |
+
|
| 158 |
+
def test_util_from_n3_sisnonenodefault(self):
|
| 159 |
+
s = None
|
| 160 |
+
default = None
|
| 161 |
+
res = util.from_n3(s, default=default, backend=None)
|
| 162 |
+
self.assertTrue(res == default)
|
| 163 |
+
|
| 164 |
+
def test_util_from_n3_sisnonewithdefault(self):
|
| 165 |
+
s = None
|
| 166 |
+
default = "TestofDefault"
|
| 167 |
+
res = util.from_n3(s, default=default, backend=None)
|
| 168 |
+
self.assertTrue(res == default)
|
| 169 |
+
|
| 170 |
+
def test_util_from_n3_expectdefaultbnode(self):
|
| 171 |
+
s = "michel"
|
| 172 |
+
res = util.from_n3(s, default=None, backend=None)
|
| 173 |
+
self.assertTrue(isinstance(res, BNode))
|
| 174 |
+
|
| 175 |
+
def test_util_from_n3_expectbnode(self):
|
| 176 |
+
s = "_:michel"
|
| 177 |
+
res = util.from_n3(s, default=None, backend=None)
|
| 178 |
+
self.assertTrue(isinstance(res, BNode))
|
| 179 |
+
|
| 180 |
+
def test_util_from_n3_expectliteral(self):
|
| 181 |
+
s = '"michel"'
|
| 182 |
+
res = util.from_n3(s, default=None, backend=None)
|
| 183 |
+
self.assertTrue(isinstance(res, Literal))
|
| 184 |
+
|
| 185 |
+
def test_util_from_n3_expecturiref(self):
|
| 186 |
+
s = '<http://example.org/schema>'
|
| 187 |
+
res = util.from_n3(s, default=None, backend=None)
|
| 188 |
+
self.assertTrue(isinstance(res, URIRef))
|
| 189 |
+
|
| 190 |
+
def test_util_from_n3_expectliteralandlang(self):
|
| 191 |
+
s = '"michel"@fr'
|
| 192 |
+
res = util.from_n3(s, default=None, backend=None)
|
| 193 |
+
self.assertTrue(isinstance(res, Literal))
|
| 194 |
+
|
| 195 |
+
def test_util_from_n3_expectliteralandlangdtype(self):
|
| 196 |
+
s = '"michel"@fr^^xsd:fr'
|
| 197 |
+
res = util.from_n3(s, default=None, backend=None)
|
| 198 |
+
self.assertTrue(isinstance(res, Literal))
|
| 199 |
+
self.assertEqual(res, Literal('michel',
|
| 200 |
+
datatype=XSD['fr']))
|
| 201 |
+
|
| 202 |
+
def test_util_from_n3_expectliteralanddtype(self):
|
| 203 |
+
s = '"true"^^xsd:boolean'
|
| 204 |
+
res = util.from_n3(s, default=None, backend=None)
|
| 205 |
+
self.assertTrue(res.eq(Literal('true', datatype=XSD['boolean'])))
|
| 206 |
+
|
| 207 |
+
def test_util_from_n3_expectliteralwithdatatypefromint(self):
|
| 208 |
+
s = '42'
|
| 209 |
+
res = util.from_n3(s)
|
| 210 |
+
self.assertEqual(res, Literal(42))
|
| 211 |
+
|
| 212 |
+
def test_util_from_n3_expectliteralwithdatatypefrombool(self):
|
| 213 |
+
s = 'true'
|
| 214 |
+
res = util.from_n3(s)
|
| 215 |
+
self.assertEqual(res, Literal(True))
|
| 216 |
+
s = 'false'
|
| 217 |
+
res = util.from_n3(s)
|
| 218 |
+
self.assertEqual(res, Literal(False))
|
| 219 |
+
|
| 220 |
+
def test_util_from_n3_expectliteralmultiline(self):
|
| 221 |
+
s = '"""multi\nline\nstring"""@en'
|
| 222 |
+
res = util.from_n3(s, default=None, backend=None)
|
| 223 |
+
self.assertTrue(res, Literal('multi\nline\nstring', lang='en'))
|
| 224 |
+
|
| 225 |
+
def test_util_from_n3_expectliteralwithescapedquote(self):
|
| 226 |
+
s = '"\\""'
|
| 227 |
+
res = util.from_n3(s, default=None, backend=None)
|
| 228 |
+
self.assertTrue(res, Literal('\\"', lang='en'))
|
| 229 |
+
|
| 230 |
+
def test_util_from_n3_expectliteralwithtrailingbackslash(self):
|
| 231 |
+
s = '"trailing\\\\"^^<http://www.w3.org/2001/XMLSchema#string>'
|
| 232 |
+
res = util.from_n3(s)
|
| 233 |
+
self.assertTrue(res, Literal('trailing\\', datatype=XSD['string']))
|
| 234 |
+
self.assertTrue(res.n3(), s)
|
| 235 |
+
|
| 236 |
+
def test_util_from_n3_expectpartialidempotencewithn3(self):
|
| 237 |
+
for n3 in ('<http://ex.com/foo>',
|
| 238 |
+
'"foo"@de',
|
| 239 |
+
# '"\\""', # exception as '\\"' --> '"' by orig parser as well
|
| 240 |
+
'"""multi\n"line"\nstring"""@en'):
|
| 241 |
+
self.assertEqual(util.from_n3(n3).n3(), n3,
|
| 242 |
+
'from_n3(%(n3e)r).n3() != %(n3e)r' % {'n3e': n3})
|
| 243 |
+
|
| 244 |
+
def test_util_from_n3_expectsameasn3parser(self):
|
| 245 |
+
def parse_n3(term_n3):
|
| 246 |
+
''' Disclaimer: Quick and dirty hack using the n3 parser. '''
|
| 247 |
+
prepstr = ("@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n"
|
| 248 |
+
"<urn:no_use> <urn:no_use> %s.\n" % term_n3)
|
| 249 |
+
g = ConjunctiveGraph()
|
| 250 |
+
g.parse(data=prepstr, format='n3')
|
| 251 |
+
return [t for t in g.triples((None, None, None))][0][2]
|
| 252 |
+
|
| 253 |
+
for n3 in ( # "michel", # won't parse in original parser
|
| 254 |
+
# "_:michel", # BNodes won't be the same
|
| 255 |
+
'"michel"',
|
| 256 |
+
'<http://example.org/schema>',
|
| 257 |
+
'"michel"@fr',
|
| 258 |
+
# '"michel"@fr^^xsd:fr', # FIXME: invalid n3, orig parser will prefer datatype
|
| 259 |
+
# '"true"^^xsd:boolean', # FIXME: orig parser will expand xsd prefix
|
| 260 |
+
'42',
|
| 261 |
+
'true',
|
| 262 |
+
'false',
|
| 263 |
+
'"""multi\nline\nstring"""@en',
|
| 264 |
+
'<http://ex.com/foo>',
|
| 265 |
+
'"foo"@de',
|
| 266 |
+
'"\\""@en',
|
| 267 |
+
'"""multi\n"line"\nstring"""@en'):
|
| 268 |
+
res, exp = util.from_n3(n3), parse_n3(n3)
|
| 269 |
+
self.assertEqual(res, exp,
|
| 270 |
+
'from_n3(%(n3e)r): %(res)r != parser.notation3: %(exp)r' % {
|
| 271 |
+
'res': res, 'exp': exp, 'n3e': n3})
|
| 272 |
+
|
| 273 |
+
def test_util_from_n3_expectquotedgraph(self):
|
| 274 |
+
s = '{<http://example.com/schema>}'
|
| 275 |
+
res = util.from_n3(s, default=None, backend="IOMemory")
|
| 276 |
+
self.assertTrue(isinstance(res, QuotedGraph))
|
| 277 |
+
|
| 278 |
+
def test_util_from_n3_expectgraph(self):
|
| 279 |
+
s = '[<http://example.com/schema>]'
|
| 280 |
+
res = util.from_n3(s, default=None, backend="IOMemory")
|
| 281 |
+
self.assertTrue(isinstance(res, Graph))
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
class TestUtilCheckers(unittest.TestCase):
|
| 285 |
+
def setUp(self):
|
| 286 |
+
self.c = URIRef("http://example.com")
|
| 287 |
+
self.s = BNode("http://example.com")
|
| 288 |
+
self.p = URIRef("http://example.com/predicates/isa")
|
| 289 |
+
self.o = Literal("Objectification")
|
| 290 |
+
|
| 291 |
+
def test_util_checker_exceptions(self):
|
| 292 |
+
c = "http://example.com"
|
| 293 |
+
self.assertRaises(ContextTypeError, util.check_context, c)
|
| 294 |
+
self.assertRaises(SubjectTypeError, util.check_subject, c)
|
| 295 |
+
self.assertRaises(PredicateTypeError, util.check_predicate, c)
|
| 296 |
+
self.assertRaises(ObjectTypeError, util.check_object, c)
|
| 297 |
+
|
| 298 |
+
def test_util_check_context(self):
|
| 299 |
+
res = util.check_context(self.c)
|
| 300 |
+
self.assertTrue(res == None)
|
| 301 |
+
|
| 302 |
+
def test_util_check_subject(self):
|
| 303 |
+
res = util.check_subject(self.s)
|
| 304 |
+
self.assertTrue(res == None)
|
| 305 |
+
|
| 306 |
+
def test_util_check_predicate(self):
|
| 307 |
+
res = util.check_predicate(self.p)
|
| 308 |
+
self.assertTrue(res == None)
|
| 309 |
+
|
| 310 |
+
def test_util_check_object(self):
|
| 311 |
+
res = util.check_object(self.o)
|
| 312 |
+
self.assertTrue(res == None)
|
| 313 |
+
|
| 314 |
+
def test_util_check_statement(self):
|
| 315 |
+
c = "http://example.com"
|
| 316 |
+
self.assertRaises(
|
| 317 |
+
SubjectTypeError,
|
| 318 |
+
util.check_statement,
|
| 319 |
+
(c, self.p, self.o))
|
| 320 |
+
self.assertRaises(
|
| 321 |
+
PredicateTypeError,
|
| 322 |
+
util.check_statement,
|
| 323 |
+
(self.s, c, self.o))
|
| 324 |
+
self.assertRaises(
|
| 325 |
+
ObjectTypeError,
|
| 326 |
+
util.check_statement,
|
| 327 |
+
(self.s, self.p, c))
|
| 328 |
+
res = util.check_statement((self.s, self.p, self.o))
|
| 329 |
+
self.assertTrue(res == None)
|
| 330 |
+
|
| 331 |
+
def test_util_check_pattern(self):
|
| 332 |
+
c = "http://example.com"
|
| 333 |
+
self.assertRaises(
|
| 334 |
+
SubjectTypeError,
|
| 335 |
+
util.check_pattern,
|
| 336 |
+
(c, self.p, self.o))
|
| 337 |
+
self.assertRaises(
|
| 338 |
+
PredicateTypeError,
|
| 339 |
+
util.check_pattern,
|
| 340 |
+
(self.s, c, self.o))
|
| 341 |
+
self.assertRaises(
|
| 342 |
+
ObjectTypeError,
|
| 343 |
+
util.check_pattern,
|
| 344 |
+
(self.s, self.p, c))
|
| 345 |
+
res = util.check_pattern((self.s, self.p, self.o))
|
| 346 |
+
self.assertTrue(res == None)
|
| 347 |
+
|
| 348 |
+
|
| 349 |
+
if __name__ == "__main__":
|
| 350 |
+
unittest.main()
|
testbed/RDFLib__rdflib/test/test_wide_python.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
def test_wide_python_build():
|
| 3 |
+
"""This test is meant to fail on narrow python builds (common on Mac OS X).
|
| 4 |
+
|
| 5 |
+
See https://github.com/RDFLib/rdflib/issues/456 for more information.
|
| 6 |
+
"""
|
| 7 |
+
assert len(u'\U0010FFFF') == 1, (
|
| 8 |
+
'You are using a narrow Python build!\n'
|
| 9 |
+
'This means that your Python does not properly support chars > 16bit.\n'
|
| 10 |
+
'On your system chars like c=u"\\U0010FFFF" will have a len(c)==2.\n'
|
| 11 |
+
'As this can cause hard to debug problems with string processing\n'
|
| 12 |
+
'(slicing, regexp, ...) later on, we strongly advise to use a wide\n'
|
| 13 |
+
'Python build in production systems.'
|
| 14 |
+
)
|
testbed/RDFLib__rdflib/test/test_xmlliterals.py
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import rdflib
|
| 2 |
+
from rdflib import RDF, Graph, Literal
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
def testPythonRoundtrip():
|
| 6 |
+
l1 = Literal('<msg>hello</msg>', datatype=RDF.XMLLiteral)
|
| 7 |
+
assert l1.value is not None, 'xml must have been parsed'
|
| 8 |
+
assert l1.datatype == RDF.XMLLiteral, 'literal must have right datatype'
|
| 9 |
+
|
| 10 |
+
l2 = Literal('<msg>good morning</msg>', datatype=RDF.XMLLiteral)
|
| 11 |
+
assert l2.value is not None, 'xml must have been parsed'
|
| 12 |
+
assert not l1.eq(l2), 'literals must NOT be equal'
|
| 13 |
+
|
| 14 |
+
l3 = Literal(l1.value)
|
| 15 |
+
assert l1.eq(l3), 'roundtripped literals must be equal'
|
| 16 |
+
assert l3.datatype == RDF.XMLLiteral, 'literal must have right datatype'
|
| 17 |
+
|
| 18 |
+
l4 = Literal('<msg >hello</msg>', datatype=RDF.XMLLiteral)
|
| 19 |
+
assert l1 == l4
|
| 20 |
+
assert l1.eq(l4)
|
| 21 |
+
|
| 22 |
+
rdflib.NORMALIZE_LITERALS = False
|
| 23 |
+
l4 = Literal('<msg >hello</msg>', datatype=RDF.XMLLiteral)
|
| 24 |
+
assert l1 != l4
|
| 25 |
+
assert l1.eq(l4)
|
| 26 |
+
rdflib.NORMALIZE_LITERALS = True
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def testRDFXMLParse():
|
| 30 |
+
rdfxml = """\
|
| 31 |
+
<rdf:RDF
|
| 32 |
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
| 33 |
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
| 34 |
+
>
|
| 35 |
+
|
| 36 |
+
<rdf:Description rdf:about="http://example.org/">
|
| 37 |
+
<dc:description rdf:parseType="Literal">
|
| 38 |
+
<p xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"></p>
|
| 39 |
+
</dc:description>
|
| 40 |
+
</rdf:Description>
|
| 41 |
+
|
| 42 |
+
</rdf:RDF>"""
|
| 43 |
+
|
| 44 |
+
g = rdflib.Graph()
|
| 45 |
+
g.parse(data=rdfxml)
|
| 46 |
+
l1 = list(g)[0][2]
|
| 47 |
+
assert l1.datatype == RDF.XMLLiteral
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def graph():
|
| 51 |
+
g = rdflib.Graph()
|
| 52 |
+
g.add((rdflib.URIRef('http://example.org/a'),
|
| 53 |
+
rdflib.URIRef('http://example.org/p'),
|
| 54 |
+
rdflib.Literal('<msg>hei</hei>', datatype=RDF.XMLLiteral)))
|
| 55 |
+
return g
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
def roundtrip(fmt):
|
| 59 |
+
g1 = graph()
|
| 60 |
+
l1 = list(g1)[0][2]
|
| 61 |
+
g2 = rdflib.Graph()
|
| 62 |
+
g2.parse(data=g1.serialize(format=fmt), format=fmt)
|
| 63 |
+
l2 = list(g2)[0][2]
|
| 64 |
+
assert l1.eq(l2)
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
def testRoundtrip():
|
| 68 |
+
roundtrip('xml')
|
| 69 |
+
roundtrip('n3')
|
| 70 |
+
roundtrip('nt')
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
def testHTML():
|
| 74 |
+
|
| 75 |
+
l1 = Literal('<msg>hello</msg>', datatype=RDF.XMLLiteral)
|
| 76 |
+
assert l1.value is not None, 'xml must have been parsed'
|
| 77 |
+
assert l1.datatype == RDF.XMLLiteral, 'literal must have right datatype'
|
| 78 |
+
|
| 79 |
+
l2 = Literal('<msg>hello</msg>', datatype=RDF.HTML)
|
| 80 |
+
assert l2.value is not None, 'xml must have been parsed'
|
| 81 |
+
assert l2.datatype == RDF.HTML, 'literal must have right datatype'
|
| 82 |
+
|
| 83 |
+
assert l1 != l2
|
| 84 |
+
assert not l1.eq(l2)
|
testbed/RDFLib__rdflib/test/testutils.py
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import print_function
|
| 2 |
+
|
| 3 |
+
import sys
|
| 4 |
+
import isodate
|
| 5 |
+
import datetime
|
| 6 |
+
|
| 7 |
+
from traceback import print_exc
|
| 8 |
+
from nose import SkipTest
|
| 9 |
+
from .earl import add_test, report
|
| 10 |
+
|
| 11 |
+
from rdflib import BNode, Graph, ConjunctiveGraph
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
# TODO: make an introspective version (like this one) of
|
| 15 |
+
# rdflib.graphutils.isomorphic and use instead.
|
| 16 |
+
def crapCompare(g1, g2):
|
| 17 |
+
"""A really crappy way to 'check' if two graphs are equal. It ignores blank
|
| 18 |
+
nodes completely and ignores subgraphs."""
|
| 19 |
+
if len(g1) != len(g2):
|
| 20 |
+
raise Exception("Graphs dont have same length")
|
| 21 |
+
for t in g1:
|
| 22 |
+
s = _no_blank(t[0])
|
| 23 |
+
o = _no_blank(t[2])
|
| 24 |
+
if not (s, t[1], o) in g2:
|
| 25 |
+
e = "(%s, %s, %s) is not in both graphs!" % (s, t[1], o)
|
| 26 |
+
raise Exception(e)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def _no_blank(node):
|
| 30 |
+
if isinstance(node, BNode):
|
| 31 |
+
return None
|
| 32 |
+
if isinstance(node, Graph):
|
| 33 |
+
return None # node._Graph__identifier = _SQUASHED_NODE
|
| 34 |
+
return node
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def check_serialize_parse(fpath, infmt, testfmt, verbose=False):
|
| 38 |
+
g = ConjunctiveGraph()
|
| 39 |
+
_parse_or_report(verbose, g, fpath, format=infmt)
|
| 40 |
+
if verbose:
|
| 41 |
+
for t in g:
|
| 42 |
+
print(t)
|
| 43 |
+
print("========================================")
|
| 44 |
+
print("Parsed OK!")
|
| 45 |
+
s = g.serialize(format=testfmt)
|
| 46 |
+
if verbose:
|
| 47 |
+
print(s)
|
| 48 |
+
g2 = ConjunctiveGraph()
|
| 49 |
+
_parse_or_report(verbose, g2, data=s, format=testfmt)
|
| 50 |
+
if verbose:
|
| 51 |
+
print(g2.serialize())
|
| 52 |
+
crapCompare(g, g2)
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def _parse_or_report(verbose, graph, *args, **kwargs):
|
| 56 |
+
try:
|
| 57 |
+
graph.parse(*args, **kwargs)
|
| 58 |
+
except:
|
| 59 |
+
if verbose:
|
| 60 |
+
print("========================================")
|
| 61 |
+
print("Error in parsing serialization:")
|
| 62 |
+
print(args, kwargs)
|
| 63 |
+
raise
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
def nose_tst_earl_report(generator, earl_report_name=None):
|
| 67 |
+
from optparse import OptionParser
|
| 68 |
+
p = OptionParser()
|
| 69 |
+
(options, args) = p.parse_args()
|
| 70 |
+
|
| 71 |
+
skip = 0
|
| 72 |
+
tests = 0
|
| 73 |
+
success = 0
|
| 74 |
+
|
| 75 |
+
for t in generator(args):
|
| 76 |
+
tests += 1
|
| 77 |
+
print('Running ', t[1].uri)
|
| 78 |
+
try:
|
| 79 |
+
t[0](t[1])
|
| 80 |
+
add_test(t[1].uri, "passed")
|
| 81 |
+
success += 1
|
| 82 |
+
except SkipTest as e:
|
| 83 |
+
add_test(t[1].uri, "untested", e.message)
|
| 84 |
+
print("skipping %s - %s" % (t[1].uri, e.message))
|
| 85 |
+
skip += 1
|
| 86 |
+
|
| 87 |
+
except KeyboardInterrupt:
|
| 88 |
+
raise
|
| 89 |
+
except AssertionError:
|
| 90 |
+
add_test(t[1].uri, "failed")
|
| 91 |
+
except:
|
| 92 |
+
add_test(t[1].uri, "failed", "error")
|
| 93 |
+
print_exc()
|
| 94 |
+
sys.stderr.write("%s\n" % t[1].uri)
|
| 95 |
+
|
| 96 |
+
print("Ran %d tests, %d skipped, %d failed. "%(tests, skip, tests-skip-success))
|
| 97 |
+
if earl_report_name:
|
| 98 |
+
now = isodate.datetime_isoformat(datetime.datetime.utcnow())
|
| 99 |
+
earl_report = 'test_reports/%s-%s.ttl' % (earl_report_name, now)
|
| 100 |
+
|
| 101 |
+
report.serialize(earl_report, format='n3')
|
| 102 |
+
report.serialize('test_reports/%s-latest.ttl'%earl_report_name, format='n3')
|
| 103 |
+
print("Wrote EARL-report to '%s'" % earl_report)
|
testbed/RDFLib__rdflib/test/triple_store.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import unittest
|
| 2 |
+
|
| 3 |
+
from rdflib.term import BNode, Literal
|
| 4 |
+
from rdflib.namespace import RDFS
|
| 5 |
+
from rdflib.graph import Graph
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class GraphTest(unittest.TestCase):
|
| 9 |
+
backend = 'default'
|
| 10 |
+
path = 'store'
|
| 11 |
+
|
| 12 |
+
def setUp(self):
|
| 13 |
+
self.store = Graph(store=self.backend)
|
| 14 |
+
self.store.open(self.path)
|
| 15 |
+
self.remove_me = (BNode(), RDFS.label, Literal("remove_me"))
|
| 16 |
+
self.store.add(self.remove_me)
|
| 17 |
+
|
| 18 |
+
def tearDown(self):
|
| 19 |
+
self.store.close()
|
| 20 |
+
|
| 21 |
+
def testAdd(self):
|
| 22 |
+
subject = BNode()
|
| 23 |
+
self.store.add((subject, RDFS.label, Literal("foo")))
|
| 24 |
+
|
| 25 |
+
def testRemove(self):
|
| 26 |
+
self.store.remove(self.remove_me)
|
| 27 |
+
self.store.remove((None, None, None))
|
| 28 |
+
|
| 29 |
+
def testTriples(self):
|
| 30 |
+
for s, p, o in self.store:
|
| 31 |
+
pass
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
if __name__ == "__main__":
|
| 35 |
+
unittest.main()
|
testbed/RDFLib__rdflib/test/type_check.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import unittest
|
| 2 |
+
|
| 3 |
+
from rdflib.graph import Graph
|
| 4 |
+
from rdflib.exceptions import SubjectTypeError
|
| 5 |
+
from rdflib.exceptions import PredicateTypeError
|
| 6 |
+
from rdflib.exceptions import ObjectTypeError
|
| 7 |
+
from rdflib.term import URIRef
|
| 8 |
+
|
| 9 |
+
foo = URIRef("foo")
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
class TypeCheckCase(unittest.TestCase):
|
| 13 |
+
unstable = True # TODO: until we decide if we want to add type checking back to rdflib
|
| 14 |
+
backend = 'default'
|
| 15 |
+
path = 'store'
|
| 16 |
+
|
| 17 |
+
def setUp(self):
|
| 18 |
+
self.store = Graph(backend=self.backend)
|
| 19 |
+
self.store.open(self.path)
|
| 20 |
+
|
| 21 |
+
def tearDown(self):
|
| 22 |
+
self.store.close()
|
| 23 |
+
|
| 24 |
+
def testSubjectTypeCheck(self):
|
| 25 |
+
self.assertRaises(SubjectTypeError,
|
| 26 |
+
self.store.add, (None, foo, foo))
|
| 27 |
+
|
| 28 |
+
def testPredicateTypeCheck(self):
|
| 29 |
+
self.assertRaises(PredicateTypeError,
|
| 30 |
+
self.store.add, (foo, None, foo))
|
| 31 |
+
|
| 32 |
+
def testObjectTypeCheck(self):
|
| 33 |
+
self.assertRaises(ObjectTypeError,
|
| 34 |
+
self.store.add, (foo, foo, None))
|
testbed/RDFLib__rdflib/test_reports/rdflib_nquads-2013-12-22T19:22:34.ttl
ADDED
|
@@ -0,0 +1,697 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
| 6 |
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
| 7 |
+
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
|
| 8 |
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
| 9 |
+
|
| 10 |
+
<http://gromgull.net/me> a foaf:Person ;
|
| 11 |
+
foaf:homepage <http://gromgull.net> ;
|
| 12 |
+
foaf:name "Gunnar Aastrand Grimnes" .
|
| 13 |
+
|
| 14 |
+
<https://github.com/RDFLib/rdflib> a doap:Project ;
|
| 15 |
+
doap:homepage <https://github.com/RDFLib/rdflib> ;
|
| 16 |
+
doap:name "rdflib" .
|
| 17 |
+
|
| 18 |
+
[] a earl:Assertion ;
|
| 19 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 20 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 21 |
+
earl:result [ a earl:TestResult ;
|
| 22 |
+
earl:outcome earl:passed ] ;
|
| 23 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 24 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#minimal_whitespace> .
|
| 25 |
+
|
| 26 |
+
[] a earl:Assertion ;
|
| 27 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 28 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 29 |
+
earl:result [ a earl:TestResult ;
|
| 30 |
+
earl:outcome earl:passed ] ;
|
| 31 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 32 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-string-03> .
|
| 33 |
+
|
| 34 |
+
[] a earl:Assertion ;
|
| 35 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 36 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 37 |
+
earl:result [ a earl:TestResult ;
|
| 38 |
+
earl:outcome earl:passed ] ;
|
| 39 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 40 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-uri-03> .
|
| 41 |
+
|
| 42 |
+
[] a earl:Assertion ;
|
| 43 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 44 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 45 |
+
earl:result [ a earl:TestResult ;
|
| 46 |
+
earl:outcome earl:passed ] ;
|
| 47 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 48 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-bad-uri-01> .
|
| 49 |
+
|
| 50 |
+
[] a earl:Assertion ;
|
| 51 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 52 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 53 |
+
earl:result [ a earl:TestResult ;
|
| 54 |
+
earl:outcome earl:passed ] ;
|
| 55 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 56 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_numeric_escape4> .
|
| 57 |
+
|
| 58 |
+
[] a earl:Assertion ;
|
| 59 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 60 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 61 |
+
earl:result [ a earl:TestResult ;
|
| 62 |
+
earl:outcome earl:passed ] ;
|
| 63 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 64 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-uri-01> .
|
| 65 |
+
|
| 66 |
+
[] a earl:Assertion ;
|
| 67 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 68 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 69 |
+
earl:result [ a earl:TestResult ;
|
| 70 |
+
earl:outcome earl:passed ] ;
|
| 71 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 72 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-file-02> .
|
| 73 |
+
|
| 74 |
+
[] a earl:Assertion ;
|
| 75 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 76 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 77 |
+
earl:result [ a earl:TestResult ;
|
| 78 |
+
earl:outcome earl:passed ] ;
|
| 79 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 80 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-bnode-01> .
|
| 81 |
+
|
| 82 |
+
[] a earl:Assertion ;
|
| 83 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 84 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 85 |
+
earl:result [ a earl:TestResult ;
|
| 86 |
+
earl:outcome earl:passed ] ;
|
| 87 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 88 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_ascii_boundaries> .
|
| 89 |
+
|
| 90 |
+
[] a earl:Assertion ;
|
| 91 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 92 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 93 |
+
earl:result [ a earl:TestResult ;
|
| 94 |
+
earl:outcome earl:passed ] ;
|
| 95 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 96 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-bnode-06> .
|
| 97 |
+
|
| 98 |
+
[] a earl:Assertion ;
|
| 99 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 100 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 101 |
+
earl:result [ a earl:TestResult ;
|
| 102 |
+
earl:outcome earl:passed ] ;
|
| 103 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 104 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-bnode-05> .
|
| 105 |
+
|
| 106 |
+
[] a earl:Assertion ;
|
| 107 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 108 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 109 |
+
earl:result [ a earl:TestResult ;
|
| 110 |
+
earl:outcome earl:passed ] ;
|
| 111 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 112 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-string-04> .
|
| 113 |
+
|
| 114 |
+
[] a earl:Assertion ;
|
| 115 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 116 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 117 |
+
earl:result [ a earl:TestResult ;
|
| 118 |
+
earl:outcome earl:passed ] ;
|
| 119 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 120 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-uri-04> .
|
| 121 |
+
|
| 122 |
+
[] a earl:Assertion ;
|
| 123 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 124 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 125 |
+
earl:result [ a earl:TestResult ;
|
| 126 |
+
earl:outcome earl:passed ] ;
|
| 127 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 128 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-esc-01> .
|
| 129 |
+
|
| 130 |
+
[] a earl:Assertion ;
|
| 131 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 132 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 133 |
+
earl:result [ a earl:TestResult ;
|
| 134 |
+
earl:outcome earl:passed ] ;
|
| 135 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 136 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-uri-05> .
|
| 137 |
+
|
| 138 |
+
[] a earl:Assertion ;
|
| 139 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 140 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 141 |
+
earl:result [ a earl:TestResult ;
|
| 142 |
+
earl:outcome earl:passed ] ;
|
| 143 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 144 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-uri-02> .
|
| 145 |
+
|
| 146 |
+
[] a earl:Assertion ;
|
| 147 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 148 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 149 |
+
earl:result [ a earl:TestResult ;
|
| 150 |
+
earl:outcome earl:passed ] ;
|
| 151 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 152 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-esc-02> .
|
| 153 |
+
|
| 154 |
+
[] a earl:Assertion ;
|
| 155 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 156 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 157 |
+
earl:result [ a earl:TestResult ;
|
| 158 |
+
earl:outcome earl:passed ] ;
|
| 159 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 160 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_REVERSE_SOLIDUS> .
|
| 161 |
+
|
| 162 |
+
[] a earl:Assertion ;
|
| 163 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 164 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 165 |
+
earl:result [ a earl:TestResult ;
|
| 166 |
+
earl:outcome earl:passed ] ;
|
| 167 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 168 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bnode-03> .
|
| 169 |
+
|
| 170 |
+
[] a earl:Assertion ;
|
| 171 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 172 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 173 |
+
earl:result [ a earl:TestResult ;
|
| 174 |
+
earl:outcome earl:passed ] ;
|
| 175 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 176 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#comment_following_triple> .
|
| 177 |
+
|
| 178 |
+
[] a earl:Assertion ;
|
| 179 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 180 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 181 |
+
earl:result [ a earl:TestResult ;
|
| 182 |
+
earl:outcome earl:passed ] ;
|
| 183 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 184 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-num-03> .
|
| 185 |
+
|
| 186 |
+
[] a earl:Assertion ;
|
| 187 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 188 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 189 |
+
earl:result [ a earl:TestResult ;
|
| 190 |
+
earl:outcome earl:passed ] ;
|
| 191 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 192 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-string-02> .
|
| 193 |
+
|
| 194 |
+
[] a earl:Assertion ;
|
| 195 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 196 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 197 |
+
earl:result [ a earl:TestResult ;
|
| 198 |
+
earl:outcome earl:passed ] ;
|
| 199 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 200 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-uri-06> .
|
| 201 |
+
|
| 202 |
+
[] a earl:Assertion ;
|
| 203 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 204 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 205 |
+
earl:result [ a earl:TestResult ;
|
| 206 |
+
earl:outcome earl:passed ] ;
|
| 207 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 208 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-bad-quint-01> .
|
| 209 |
+
|
| 210 |
+
[] a earl:Assertion ;
|
| 211 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 212 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 213 |
+
earl:result [ a earl:TestResult ;
|
| 214 |
+
earl:outcome earl:passed ] ;
|
| 215 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 216 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_BACKSPACE> .
|
| 217 |
+
|
| 218 |
+
[] a earl:Assertion ;
|
| 219 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 220 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 221 |
+
earl:result [ a earl:TestResult ;
|
| 222 |
+
earl:outcome earl:passed ] ;
|
| 223 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 224 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-string-07> .
|
| 225 |
+
|
| 226 |
+
[] a earl:Assertion ;
|
| 227 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 228 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 229 |
+
earl:result [ a earl:TestResult ;
|
| 230 |
+
earl:outcome earl:passed ] ;
|
| 231 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 232 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-file-03> .
|
| 233 |
+
|
| 234 |
+
[] a earl:Assertion ;
|
| 235 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 236 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 237 |
+
earl:result [ a earl:TestResult ;
|
| 238 |
+
earl:outcome earl:passed ] ;
|
| 239 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 240 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_UTF8_boundaries> .
|
| 241 |
+
|
| 242 |
+
[] a earl:Assertion ;
|
| 243 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 244 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 245 |
+
earl:result [ a earl:TestResult ;
|
| 246 |
+
earl:outcome earl:passed ] ;
|
| 247 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 248 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-num-01> .
|
| 249 |
+
|
| 250 |
+
[] a earl:Assertion ;
|
| 251 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 252 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 253 |
+
earl:result [ a earl:TestResult ;
|
| 254 |
+
earl:outcome earl:passed ] ;
|
| 255 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 256 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-esc-03> .
|
| 257 |
+
|
| 258 |
+
[] a earl:Assertion ;
|
| 259 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 260 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 261 |
+
earl:result [ a earl:TestResult ;
|
| 262 |
+
earl:outcome earl:passed ] ;
|
| 263 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 264 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-prefix-01> .
|
| 265 |
+
|
| 266 |
+
[] a earl:Assertion ;
|
| 267 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 268 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 269 |
+
earl:result [ a earl:TestResult ;
|
| 270 |
+
earl:outcome earl:passed ] ;
|
| 271 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 272 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-uri-02> .
|
| 273 |
+
|
| 274 |
+
[] a earl:Assertion ;
|
| 275 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 276 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 277 |
+
earl:result [ a earl:TestResult ;
|
| 278 |
+
earl:outcome earl:passed ] ;
|
| 279 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 280 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-struct-01> .
|
| 281 |
+
|
| 282 |
+
[] a earl:Assertion ;
|
| 283 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 284 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 285 |
+
earl:result [ a earl:TestResult ;
|
| 286 |
+
earl:outcome earl:passed ] ;
|
| 287 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 288 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#lantag_with_subtag> .
|
| 289 |
+
|
| 290 |
+
[] a earl:Assertion ;
|
| 291 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 292 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 293 |
+
earl:result [ a earl:TestResult ;
|
| 294 |
+
earl:outcome earl:passed ] ;
|
| 295 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 296 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-string-02> .
|
| 297 |
+
|
| 298 |
+
[] a earl:Assertion ;
|
| 299 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 300 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 301 |
+
earl:result [ a earl:TestResult ;
|
| 302 |
+
earl:outcome earl:passed ] ;
|
| 303 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 304 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_REVERSE_SOLIDUS2> .
|
| 305 |
+
|
| 306 |
+
[] a earl:Assertion ;
|
| 307 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 308 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 309 |
+
earl:result [ a earl:TestResult ;
|
| 310 |
+
earl:outcome earl:passed ] ;
|
| 311 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 312 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-uri-09> .
|
| 313 |
+
|
| 314 |
+
[] a earl:Assertion ;
|
| 315 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 316 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 317 |
+
earl:result [ a earl:TestResult ;
|
| 318 |
+
earl:outcome earl:passed ] ;
|
| 319 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 320 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#langtagged_string> .
|
| 321 |
+
|
| 322 |
+
[] a earl:Assertion ;
|
| 323 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 324 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 325 |
+
earl:result [ a earl:TestResult ;
|
| 326 |
+
earl:outcome earl:passed ] ;
|
| 327 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 328 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-str-esc-02> .
|
| 329 |
+
|
| 330 |
+
[] a earl:Assertion ;
|
| 331 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 332 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 333 |
+
earl:result [ a earl:TestResult ;
|
| 334 |
+
earl:outcome earl:passed ] ;
|
| 335 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 336 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-uri-04> .
|
| 337 |
+
|
| 338 |
+
[] a earl:Assertion ;
|
| 339 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 340 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 341 |
+
earl:result [ a earl:TestResult ;
|
| 342 |
+
earl:outcome earl:passed ] ;
|
| 343 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 344 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-string-05> .
|
| 345 |
+
|
| 346 |
+
[] a earl:Assertion ;
|
| 347 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 348 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 349 |
+
earl:result [ a earl:TestResult ;
|
| 350 |
+
earl:outcome earl:passed ] ;
|
| 351 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 352 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_all_punctuation> .
|
| 353 |
+
|
| 354 |
+
[] a earl:Assertion ;
|
| 355 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 356 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 357 |
+
earl:result [ a earl:TestResult ;
|
| 358 |
+
earl:outcome earl:passed ] ;
|
| 359 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 360 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-base-01> .
|
| 361 |
+
|
| 362 |
+
[] a earl:Assertion ;
|
| 363 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 364 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 365 |
+
earl:result [ a earl:TestResult ;
|
| 366 |
+
earl:outcome earl:passed ] ;
|
| 367 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 368 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_numeric_escape8> .
|
| 369 |
+
|
| 370 |
+
[] a earl:Assertion ;
|
| 371 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 372 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 373 |
+
earl:result [ a earl:TestResult ;
|
| 374 |
+
earl:outcome earl:passed ] ;
|
| 375 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 376 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-string-03> .
|
| 377 |
+
|
| 378 |
+
[] a earl:Assertion ;
|
| 379 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 380 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 381 |
+
earl:result [ a earl:TestResult ;
|
| 382 |
+
earl:outcome earl:passed ] ;
|
| 383 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 384 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-bad-literal-02> .
|
| 385 |
+
|
| 386 |
+
[] a earl:Assertion ;
|
| 387 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 388 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 389 |
+
earl:result [ a earl:TestResult ;
|
| 390 |
+
earl:outcome earl:passed ] ;
|
| 391 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 392 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_CHARACTER_TABULATION> .
|
| 393 |
+
|
| 394 |
+
[] a earl:Assertion ;
|
| 395 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 396 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 397 |
+
earl:result [ a earl:TestResult ;
|
| 398 |
+
earl:outcome earl:passed ] ;
|
| 399 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 400 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bnode-01> .
|
| 401 |
+
|
| 402 |
+
[] a earl:Assertion ;
|
| 403 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 404 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 405 |
+
earl:result [ a earl:TestResult ;
|
| 406 |
+
earl:outcome earl:passed ] ;
|
| 407 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 408 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-bad-literal-01> .
|
| 409 |
+
|
| 410 |
+
[] a earl:Assertion ;
|
| 411 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 412 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 413 |
+
earl:result [ a earl:TestResult ;
|
| 414 |
+
earl:outcome earl:passed ] ;
|
| 415 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 416 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-uri-04> .
|
| 417 |
+
|
| 418 |
+
[] a earl:Assertion ;
|
| 419 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 420 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 421 |
+
earl:result [ a earl:TestResult ;
|
| 422 |
+
earl:outcome earl:passed ] ;
|
| 423 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 424 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-subm-01> .
|
| 425 |
+
|
| 426 |
+
[] a earl:Assertion ;
|
| 427 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 428 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 429 |
+
earl:result [ a earl:TestResult ;
|
| 430 |
+
earl:outcome earl:passed ] ;
|
| 431 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 432 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_2_squotes> .
|
| 433 |
+
|
| 434 |
+
[] a earl:Assertion ;
|
| 435 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 436 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 437 |
+
earl:result [ a earl:TestResult ;
|
| 438 |
+
earl:outcome earl:passed ] ;
|
| 439 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 440 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-uri-01> .
|
| 441 |
+
|
| 442 |
+
[] a earl:Assertion ;
|
| 443 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 444 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 445 |
+
earl:result [ a earl:TestResult ;
|
| 446 |
+
earl:outcome earl:passed ] ;
|
| 447 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 448 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-uri-03> .
|
| 449 |
+
|
| 450 |
+
[] a earl:Assertion ;
|
| 451 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 452 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 453 |
+
earl:result [ a earl:TestResult ;
|
| 454 |
+
earl:outcome earl:passed ] ;
|
| 455 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 456 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_all_controls> .
|
| 457 |
+
|
| 458 |
+
[] a earl:Assertion ;
|
| 459 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 460 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 461 |
+
earl:result [ a earl:TestResult ;
|
| 462 |
+
earl:outcome earl:passed ] ;
|
| 463 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 464 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-uri-03> .
|
| 465 |
+
|
| 466 |
+
[] a earl:Assertion ;
|
| 467 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 468 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 469 |
+
earl:result [ a earl:TestResult ;
|
| 470 |
+
earl:outcome earl:passed ] ;
|
| 471 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 472 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-lang-01> .
|
| 473 |
+
|
| 474 |
+
[] a earl:Assertion ;
|
| 475 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 476 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 477 |
+
earl:result [ a earl:TestResult ;
|
| 478 |
+
earl:outcome earl:passed ] ;
|
| 479 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 480 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-struct-02> .
|
| 481 |
+
|
| 482 |
+
[] a earl:Assertion ;
|
| 483 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 484 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 485 |
+
earl:result [ a earl:TestResult ;
|
| 486 |
+
earl:outcome earl:passed ] ;
|
| 487 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 488 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_FORM_FEED> .
|
| 489 |
+
|
| 490 |
+
[] a earl:Assertion ;
|
| 491 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 492 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 493 |
+
earl:result [ a earl:TestResult ;
|
| 494 |
+
earl:outcome earl:passed ] ;
|
| 495 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 496 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bnode-02> .
|
| 497 |
+
|
| 498 |
+
[] a earl:Assertion ;
|
| 499 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 500 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 501 |
+
earl:result [ a earl:TestResult ;
|
| 502 |
+
earl:outcome earl:passed ] ;
|
| 503 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 504 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-bnode-03> .
|
| 505 |
+
|
| 506 |
+
[] a earl:Assertion ;
|
| 507 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 508 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 509 |
+
earl:result [ a earl:TestResult ;
|
| 510 |
+
earl:outcome earl:passed ] ;
|
| 511 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 512 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_dquote> .
|
| 513 |
+
|
| 514 |
+
[] a earl:Assertion ;
|
| 515 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 516 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 517 |
+
earl:result [ a earl:TestResult ;
|
| 518 |
+
earl:outcome earl:passed ] ;
|
| 519 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 520 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-datatypes-01> .
|
| 521 |
+
|
| 522 |
+
[] a earl:Assertion ;
|
| 523 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 524 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 525 |
+
earl:result [ a earl:TestResult ;
|
| 526 |
+
earl:outcome earl:passed ] ;
|
| 527 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 528 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-uri-08> .
|
| 529 |
+
|
| 530 |
+
[] a earl:Assertion ;
|
| 531 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 532 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 533 |
+
earl:result [ a earl:TestResult ;
|
| 534 |
+
earl:outcome earl:passed ] ;
|
| 535 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 536 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-file-01> .
|
| 537 |
+
|
| 538 |
+
[] a earl:Assertion ;
|
| 539 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 540 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 541 |
+
earl:result [ a earl:TestResult ;
|
| 542 |
+
earl:outcome earl:passed ] ;
|
| 543 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 544 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-uri-06> .
|
| 545 |
+
|
| 546 |
+
[] a earl:Assertion ;
|
| 547 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 548 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 549 |
+
earl:result [ a earl:TestResult ;
|
| 550 |
+
earl:outcome earl:passed ] ;
|
| 551 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 552 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-bad-literal-03> .
|
| 553 |
+
|
| 554 |
+
[] a earl:Assertion ;
|
| 555 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 556 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 557 |
+
earl:result [ a earl:TestResult ;
|
| 558 |
+
earl:outcome earl:passed ] ;
|
| 559 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 560 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-uri-01> .
|
| 561 |
+
|
| 562 |
+
[] a earl:Assertion ;
|
| 563 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 564 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 565 |
+
earl:result [ a earl:TestResult ;
|
| 566 |
+
earl:outcome earl:passed ] ;
|
| 567 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 568 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-uri-05> .
|
| 569 |
+
|
| 570 |
+
[] a earl:Assertion ;
|
| 571 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 572 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 573 |
+
earl:result [ a earl:TestResult ;
|
| 574 |
+
earl:outcome earl:passed ] ;
|
| 575 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 576 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-uri-02> .
|
| 577 |
+
|
| 578 |
+
[] a earl:Assertion ;
|
| 579 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 580 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 581 |
+
earl:result [ a earl:TestResult ;
|
| 582 |
+
earl:outcome earl:passed ] ;
|
| 583 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 584 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal> .
|
| 585 |
+
|
| 586 |
+
[] a earl:Assertion ;
|
| 587 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 588 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 589 |
+
earl:result [ a earl:TestResult ;
|
| 590 |
+
earl:outcome earl:passed ] ;
|
| 591 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 592 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-bnode-04> .
|
| 593 |
+
|
| 594 |
+
[] a earl:Assertion ;
|
| 595 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 596 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 597 |
+
earl:result [ a earl:TestResult ;
|
| 598 |
+
earl:outcome earl:passed ] ;
|
| 599 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 600 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_2_dquotes> .
|
| 601 |
+
|
| 602 |
+
[] a earl:Assertion ;
|
| 603 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 604 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 605 |
+
earl:result [ a earl:TestResult ;
|
| 606 |
+
earl:outcome earl:passed ] ;
|
| 607 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 608 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_CARRIAGE_RETURN> .
|
| 609 |
+
|
| 610 |
+
[] a earl:Assertion ;
|
| 611 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 612 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 613 |
+
earl:result [ a earl:TestResult ;
|
| 614 |
+
earl:outcome earl:passed ] ;
|
| 615 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 616 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-uri-07> .
|
| 617 |
+
|
| 618 |
+
[] a earl:Assertion ;
|
| 619 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 620 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 621 |
+
earl:result [ a earl:TestResult ;
|
| 622 |
+
earl:outcome earl:passed ] ;
|
| 623 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 624 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-str-esc-01> .
|
| 625 |
+
|
| 626 |
+
[] a earl:Assertion ;
|
| 627 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 628 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 629 |
+
earl:result [ a earl:TestResult ;
|
| 630 |
+
earl:outcome earl:passed ] ;
|
| 631 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 632 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_LINE_FEED> .
|
| 633 |
+
|
| 634 |
+
[] a earl:Assertion ;
|
| 635 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 636 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 637 |
+
earl:result [ a earl:TestResult ;
|
| 638 |
+
earl:outcome earl:passed ] ;
|
| 639 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 640 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nq-syntax-bnode-02> .
|
| 641 |
+
|
| 642 |
+
[] a earl:Assertion ;
|
| 643 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 644 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 645 |
+
earl:result [ a earl:TestResult ;
|
| 646 |
+
earl:outcome earl:passed ] ;
|
| 647 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 648 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-string-01> .
|
| 649 |
+
|
| 650 |
+
[] a earl:Assertion ;
|
| 651 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 652 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 653 |
+
earl:result [ a earl:TestResult ;
|
| 654 |
+
earl:outcome earl:passed ] ;
|
| 655 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 656 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-string-06> .
|
| 657 |
+
|
| 658 |
+
[] a earl:Assertion ;
|
| 659 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 660 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 661 |
+
earl:result [ a earl:TestResult ;
|
| 662 |
+
earl:outcome earl:passed ] ;
|
| 663 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 664 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-num-02> .
|
| 665 |
+
|
| 666 |
+
[] a earl:Assertion ;
|
| 667 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 668 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 669 |
+
earl:result [ a earl:TestResult ;
|
| 670 |
+
earl:outcome earl:passed ] ;
|
| 671 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 672 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#literal_with_squote> .
|
| 673 |
+
|
| 674 |
+
[] a earl:Assertion ;
|
| 675 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 676 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 677 |
+
earl:result [ a earl:TestResult ;
|
| 678 |
+
earl:outcome earl:passed ] ;
|
| 679 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 680 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-str-esc-03> .
|
| 681 |
+
|
| 682 |
+
[] a earl:Assertion ;
|
| 683 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 684 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 685 |
+
earl:result [ a earl:TestResult ;
|
| 686 |
+
earl:outcome earl:passed ] ;
|
| 687 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 688 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-bad-string-01> .
|
| 689 |
+
|
| 690 |
+
[] a earl:Assertion ;
|
| 691 |
+
dc:date "2013-12-22T20:22:33.975728"^^xsd:dateTime ;
|
| 692 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 693 |
+
earl:result [ a earl:TestResult ;
|
| 694 |
+
earl:outcome earl:passed ] ;
|
| 695 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 696 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl#nt-syntax-datatypes-02> .
|
| 697 |
+
|
testbed/RDFLib__rdflib/test_reports/rdflib_nt-2013-12-22T19:12:25.ttl
ADDED
|
@@ -0,0 +1,401 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@prefix dc: <http://purl.org/dc/elements/1.1/> .
|
| 2 |
+
@prefix doap: <http://usefulinc.com/ns/doap#> .
|
| 3 |
+
@prefix earl: <http://www.w3.org/ns/earl#> .
|
| 4 |
+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
| 5 |
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
| 6 |
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
| 7 |
+
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
|
| 8 |
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
| 9 |
+
|
| 10 |
+
<http://gromgull.net/me> a foaf:Person ;
|
| 11 |
+
foaf:homepage <http://gromgull.net> ;
|
| 12 |
+
foaf:name "Gunnar Aastrand Grimnes" .
|
| 13 |
+
|
| 14 |
+
<https://github.com/RDFLib/rdflib> a doap:Project ;
|
| 15 |
+
doap:homepage <https://github.com/RDFLib/rdflib> ;
|
| 16 |
+
doap:name "rdflib" .
|
| 17 |
+
|
| 18 |
+
[] a earl:Assertion ;
|
| 19 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 20 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 21 |
+
earl:result [ a earl:TestResult ;
|
| 22 |
+
earl:outcome earl:passed ] ;
|
| 23 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 24 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-lang-01> .
|
| 25 |
+
|
| 26 |
+
[] a earl:Assertion ;
|
| 27 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 28 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 29 |
+
earl:result [ a earl:TestResult ;
|
| 30 |
+
earl:outcome earl:passed ] ;
|
| 31 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 32 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-str-esc-03> .
|
| 33 |
+
|
| 34 |
+
[] a earl:Assertion ;
|
| 35 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 36 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 37 |
+
earl:result [ a earl:TestResult ;
|
| 38 |
+
earl:outcome earl:passed ] ;
|
| 39 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 40 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-subm-01> .
|
| 41 |
+
|
| 42 |
+
[] a earl:Assertion ;
|
| 43 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 44 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 45 |
+
earl:result [ a earl:TestResult ;
|
| 46 |
+
earl:outcome earl:passed ] ;
|
| 47 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 48 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-string-02> .
|
| 49 |
+
|
| 50 |
+
[] a earl:Assertion ;
|
| 51 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 52 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 53 |
+
earl:result [ a earl:TestResult ;
|
| 54 |
+
earl:outcome earl:passed ] ;
|
| 55 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 56 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-uri-04> .
|
| 57 |
+
|
| 58 |
+
[] a earl:Assertion ;
|
| 59 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 60 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 61 |
+
earl:result [ a earl:TestResult ;
|
| 62 |
+
earl:outcome earl:passed ] ;
|
| 63 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 64 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-datatypes-01> .
|
| 65 |
+
|
| 66 |
+
[] a earl:Assertion ;
|
| 67 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 68 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 69 |
+
earl:result [ a earl:TestResult ;
|
| 70 |
+
earl:outcome earl:passed ] ;
|
| 71 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 72 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-uri-05> .
|
| 73 |
+
|
| 74 |
+
[] a earl:Assertion ;
|
| 75 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 76 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 77 |
+
earl:result [ a earl:TestResult ;
|
| 78 |
+
earl:outcome earl:passed ] ;
|
| 79 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 80 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bnode-02> .
|
| 81 |
+
|
| 82 |
+
[] a earl:Assertion ;
|
| 83 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 84 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 85 |
+
earl:result [ a earl:TestResult ;
|
| 86 |
+
earl:outcome earl:passed ] ;
|
| 87 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 88 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-uri-01> .
|
| 89 |
+
|
| 90 |
+
[] a earl:Assertion ;
|
| 91 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 92 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 93 |
+
earl:result [ a earl:TestResult ;
|
| 94 |
+
earl:outcome earl:passed ] ;
|
| 95 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 96 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-string-01> .
|
| 97 |
+
|
| 98 |
+
[] a earl:Assertion ;
|
| 99 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 100 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 101 |
+
earl:result [ a earl:TestResult ;
|
| 102 |
+
earl:outcome earl:passed ] ;
|
| 103 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 104 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-esc-01> .
|
| 105 |
+
|
| 106 |
+
[] a earl:Assertion ;
|
| 107 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 108 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 109 |
+
earl:result [ a earl:TestResult ;
|
| 110 |
+
earl:outcome earl:passed ] ;
|
| 111 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 112 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-esc-02> .
|
| 113 |
+
|
| 114 |
+
[] a earl:Assertion ;
|
| 115 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 116 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 117 |
+
earl:result [ a earl:TestResult ;
|
| 118 |
+
earl:outcome earl:passed ] ;
|
| 119 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 120 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-struct-02> .
|
| 121 |
+
|
| 122 |
+
[] a earl:Assertion ;
|
| 123 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 124 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 125 |
+
earl:result [ a earl:TestResult ;
|
| 126 |
+
earl:outcome earl:passed ] ;
|
| 127 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 128 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-uri-01> .
|
| 129 |
+
|
| 130 |
+
[] a earl:Assertion ;
|
| 131 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 132 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 133 |
+
earl:result [ a earl:TestResult ;
|
| 134 |
+
earl:outcome earl:passed ] ;
|
| 135 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 136 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-str-esc-01> .
|
| 137 |
+
|
| 138 |
+
[] a earl:Assertion ;
|
| 139 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 140 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 141 |
+
earl:result [ a earl:TestResult ;
|
| 142 |
+
earl:outcome earl:passed ] ;
|
| 143 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 144 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-struct-01> .
|
| 145 |
+
|
| 146 |
+
[] a earl:Assertion ;
|
| 147 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 148 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 149 |
+
earl:result [ a earl:TestResult ;
|
| 150 |
+
earl:outcome earl:passed ] ;
|
| 151 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 152 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-uri-04> .
|
| 153 |
+
|
| 154 |
+
[] a earl:Assertion ;
|
| 155 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 156 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 157 |
+
earl:result [ a earl:TestResult ;
|
| 158 |
+
earl:outcome earl:passed ] ;
|
| 159 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 160 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-num-01> .
|
| 161 |
+
|
| 162 |
+
[] a earl:Assertion ;
|
| 163 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 164 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 165 |
+
earl:result [ a earl:TestResult ;
|
| 166 |
+
earl:outcome earl:passed ] ;
|
| 167 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 168 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-uri-03> .
|
| 169 |
+
|
| 170 |
+
[] a earl:Assertion ;
|
| 171 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 172 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 173 |
+
earl:result [ a earl:TestResult ;
|
| 174 |
+
earl:outcome earl:passed ] ;
|
| 175 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 176 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-datatypes-02> .
|
| 177 |
+
|
| 178 |
+
[] a earl:Assertion ;
|
| 179 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 180 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 181 |
+
earl:result [ a earl:TestResult ;
|
| 182 |
+
earl:outcome earl:passed ] ;
|
| 183 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 184 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-file-01> .
|
| 185 |
+
|
| 186 |
+
[] a earl:Assertion ;
|
| 187 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 188 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 189 |
+
earl:result [ a earl:TestResult ;
|
| 190 |
+
earl:outcome earl:passed ] ;
|
| 191 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 192 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#literal_all_controls> .
|
| 193 |
+
|
| 194 |
+
[] a earl:Assertion ;
|
| 195 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 196 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 197 |
+
earl:result [ a earl:TestResult ;
|
| 198 |
+
earl:outcome earl:passed ] ;
|
| 199 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 200 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-string-02> .
|
| 201 |
+
|
| 202 |
+
[] a earl:Assertion ;
|
| 203 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 204 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 205 |
+
earl:result [ a earl:TestResult ;
|
| 206 |
+
earl:outcome earl:passed ] ;
|
| 207 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 208 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-string-03> .
|
| 209 |
+
|
| 210 |
+
[] a earl:Assertion ;
|
| 211 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 212 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 213 |
+
earl:result [ a earl:TestResult ;
|
| 214 |
+
earl:outcome earl:passed ] ;
|
| 215 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 216 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-file-03> .
|
| 217 |
+
|
| 218 |
+
[] a earl:Assertion ;
|
| 219 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 220 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 221 |
+
earl:result [ a earl:TestResult ;
|
| 222 |
+
earl:outcome earl:passed ] ;
|
| 223 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 224 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-uri-08> .
|
| 225 |
+
|
| 226 |
+
[] a earl:Assertion ;
|
| 227 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 228 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 229 |
+
earl:result [ a earl:TestResult ;
|
| 230 |
+
earl:outcome earl:passed ] ;
|
| 231 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 232 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bnode-03> .
|
| 233 |
+
|
| 234 |
+
[] a earl:Assertion ;
|
| 235 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 236 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 237 |
+
earl:result [ a earl:TestResult ;
|
| 238 |
+
earl:outcome earl:passed ] ;
|
| 239 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 240 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-string-05> .
|
| 241 |
+
|
| 242 |
+
[] a earl:Assertion ;
|
| 243 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 244 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 245 |
+
earl:result [ a earl:TestResult ;
|
| 246 |
+
earl:outcome earl:passed ] ;
|
| 247 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 248 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-prefix-01> .
|
| 249 |
+
|
| 250 |
+
[] a earl:Assertion ;
|
| 251 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 252 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 253 |
+
earl:result [ a earl:TestResult ;
|
| 254 |
+
earl:outcome earl:passed ] ;
|
| 255 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 256 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-string-04> .
|
| 257 |
+
|
| 258 |
+
[] a earl:Assertion ;
|
| 259 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 260 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 261 |
+
earl:result [ a earl:TestResult ;
|
| 262 |
+
earl:outcome earl:passed ] ;
|
| 263 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 264 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-uri-06> .
|
| 265 |
+
|
| 266 |
+
[] a earl:Assertion ;
|
| 267 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 268 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 269 |
+
earl:result [ a earl:TestResult ;
|
| 270 |
+
earl:outcome earl:passed ] ;
|
| 271 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 272 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-esc-03> .
|
| 273 |
+
|
| 274 |
+
[] a earl:Assertion ;
|
| 275 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 276 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 277 |
+
earl:result [ a earl:TestResult ;
|
| 278 |
+
earl:outcome earl:passed ] ;
|
| 279 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 280 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-num-02> .
|
| 281 |
+
|
| 282 |
+
[] a earl:Assertion ;
|
| 283 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 284 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 285 |
+
earl:result [ a earl:TestResult ;
|
| 286 |
+
earl:outcome earl:passed ] ;
|
| 287 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 288 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-string-03> .
|
| 289 |
+
|
| 290 |
+
[] a earl:Assertion ;
|
| 291 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 292 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 293 |
+
earl:result [ a earl:TestResult ;
|
| 294 |
+
earl:outcome earl:passed ] ;
|
| 295 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 296 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#literal_all_punctuation> .
|
| 297 |
+
|
| 298 |
+
[] a earl:Assertion ;
|
| 299 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 300 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 301 |
+
earl:result [ a earl:TestResult ;
|
| 302 |
+
earl:outcome earl:passed ] ;
|
| 303 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 304 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-num-03> .
|
| 305 |
+
|
| 306 |
+
[] a earl:Assertion ;
|
| 307 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 308 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 309 |
+
earl:result [ a earl:TestResult ;
|
| 310 |
+
earl:outcome earl:passed ] ;
|
| 311 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 312 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-uri-07> .
|
| 313 |
+
|
| 314 |
+
[] a earl:Assertion ;
|
| 315 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 316 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 317 |
+
earl:result [ a earl:TestResult ;
|
| 318 |
+
earl:outcome earl:passed ] ;
|
| 319 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 320 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-string-01> .
|
| 321 |
+
|
| 322 |
+
[] a earl:Assertion ;
|
| 323 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 324 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 325 |
+
earl:result [ a earl:TestResult ;
|
| 326 |
+
earl:outcome earl:passed ] ;
|
| 327 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 328 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-uri-03> .
|
| 329 |
+
|
| 330 |
+
[] a earl:Assertion ;
|
| 331 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 332 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 333 |
+
earl:result [ a earl:TestResult ;
|
| 334 |
+
earl:outcome earl:passed ] ;
|
| 335 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 336 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bnode-01> .
|
| 337 |
+
|
| 338 |
+
[] a earl:Assertion ;
|
| 339 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 340 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 341 |
+
earl:result [ a earl:TestResult ;
|
| 342 |
+
earl:outcome earl:passed ] ;
|
| 343 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 344 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-str-esc-02> .
|
| 345 |
+
|
| 346 |
+
[] a earl:Assertion ;
|
| 347 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 348 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 349 |
+
earl:result [ a earl:TestResult ;
|
| 350 |
+
earl:outcome earl:passed ] ;
|
| 351 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 352 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-string-07> .
|
| 353 |
+
|
| 354 |
+
[] a earl:Assertion ;
|
| 355 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 356 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 357 |
+
earl:result [ a earl:TestResult ;
|
| 358 |
+
earl:outcome earl:passed ] ;
|
| 359 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 360 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-uri-02> .
|
| 361 |
+
|
| 362 |
+
[] a earl:Assertion ;
|
| 363 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 364 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 365 |
+
earl:result [ a earl:TestResult ;
|
| 366 |
+
earl:outcome earl:passed ] ;
|
| 367 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 368 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-string-06> .
|
| 369 |
+
|
| 370 |
+
[] a earl:Assertion ;
|
| 371 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 372 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 373 |
+
earl:result [ a earl:TestResult ;
|
| 374 |
+
earl:outcome earl:passed ] ;
|
| 375 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 376 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-uri-02> .
|
| 377 |
+
|
| 378 |
+
[] a earl:Assertion ;
|
| 379 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 380 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 381 |
+
earl:result [ a earl:TestResult ;
|
| 382 |
+
earl:outcome earl:passed ] ;
|
| 383 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 384 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-uri-09> .
|
| 385 |
+
|
| 386 |
+
[] a earl:Assertion ;
|
| 387 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 388 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 389 |
+
earl:result [ a earl:TestResult ;
|
| 390 |
+
earl:outcome earl:passed ] ;
|
| 391 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 392 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-file-02> .
|
| 393 |
+
|
| 394 |
+
[] a earl:Assertion ;
|
| 395 |
+
dc:date "2013-12-22T20:12:25.300887"^^xsd:dateTime ;
|
| 396 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 397 |
+
earl:result [ a earl:TestResult ;
|
| 398 |
+
earl:outcome earl:passed ] ;
|
| 399 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 400 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl#nt-syntax-bad-base-01> .
|
| 401 |
+
|
testbed/RDFLib__rdflib/test_reports/rdflib_sparql-2013-12-22T19:36:48.ttl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
testbed/RDFLib__rdflib/test_reports/rdflib_trig-2013-12-22T19:31:52.ttl
ADDED
|
@@ -0,0 +1,1609 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@prefix dc: <http://purl.org/dc/elements/1.1/> .
|
| 2 |
+
@prefix doap: <http://usefulinc.com/ns/doap#> .
|
| 3 |
+
@prefix earl: <http://www.w3.org/ns/earl#> .
|
| 4 |
+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
| 5 |
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
| 6 |
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
| 7 |
+
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
|
| 8 |
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
| 9 |
+
|
| 10 |
+
<http://gromgull.net/me> a foaf:Person ;
|
| 11 |
+
foaf:homepage <http://gromgull.net> ;
|
| 12 |
+
foaf:name "Gunnar Aastrand Grimnes" .
|
| 13 |
+
|
| 14 |
+
<https://github.com/RDFLib/rdflib> a doap:Project ;
|
| 15 |
+
doap:homepage <https://github.com/RDFLib/rdflib> ;
|
| 16 |
+
doap:name "rdflib" .
|
| 17 |
+
|
| 18 |
+
[] a earl:Assertion ;
|
| 19 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 20 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 21 |
+
earl:result [ a earl:TestResult ;
|
| 22 |
+
earl:outcome earl:passed ] ;
|
| 23 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 24 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-number-01> .
|
| 25 |
+
|
| 26 |
+
[] a earl:Assertion ;
|
| 27 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 28 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 29 |
+
earl:result [ a earl:TestResult ;
|
| 30 |
+
earl:outcome earl:passed ] ;
|
| 31 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 32 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-struct-04> .
|
| 33 |
+
|
| 34 |
+
[] a earl:Assertion ;
|
| 35 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 36 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 37 |
+
earl:result [ a earl:TestResult ;
|
| 38 |
+
earl:outcome earl:passed ] ;
|
| 39 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 40 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-prefix-07> .
|
| 41 |
+
|
| 42 |
+
[] a earl:Assertion ;
|
| 43 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 44 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 45 |
+
earl:result [ a earl:TestResult ;
|
| 46 |
+
earl:outcome earl:passed ] ;
|
| 47 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 48 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-number-11> .
|
| 49 |
+
|
| 50 |
+
[] a earl:Assertion ;
|
| 51 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 52 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 53 |
+
earl:result [ a earl:TestResult ;
|
| 54 |
+
earl:outcome earl:passed ] ;
|
| 55 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 56 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-prefix-04> .
|
| 57 |
+
|
| 58 |
+
[] a earl:Assertion ;
|
| 59 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 60 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 61 |
+
earl:result [ a earl:TestResult ;
|
| 62 |
+
earl:outcome earl:passed ] ;
|
| 63 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 64 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-graph-bad-11> .
|
| 65 |
+
|
| 66 |
+
[] a earl:Assertion ;
|
| 67 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 68 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 69 |
+
earl:result [ a earl:TestResult ;
|
| 70 |
+
earl:outcome earl:passed ] ;
|
| 71 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 72 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-ns-dot-start> .
|
| 73 |
+
|
| 74 |
+
[] a earl:Assertion ;
|
| 75 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 76 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 77 |
+
earl:result [ a earl:TestResult ;
|
| 78 |
+
earl:outcome earl:passed ] ;
|
| 79 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 80 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-number-05> .
|
| 81 |
+
|
| 82 |
+
[] a earl:Assertion ;
|
| 83 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 84 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 85 |
+
earl:result [ a earl:TestResult ;
|
| 86 |
+
earl:outcome earl:passed ] ;
|
| 87 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 88 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-list-03> .
|
| 89 |
+
|
| 90 |
+
[] a earl:Assertion ;
|
| 91 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 92 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 93 |
+
earl:result [ a earl:TestResult ;
|
| 94 |
+
earl:outcome earl:passed ] ;
|
| 95 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 96 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-uri-02> .
|
| 97 |
+
|
| 98 |
+
[] a earl:Assertion ;
|
| 99 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 100 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 101 |
+
earl:result [ a earl:TestResult ;
|
| 102 |
+
earl:outcome earl:passed ] ;
|
| 103 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 104 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-uri-02> .
|
| 105 |
+
|
| 106 |
+
[] a earl:Assertion ;
|
| 107 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 108 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 109 |
+
earl:result [ a earl:TestResult ;
|
| 110 |
+
earl:outcome earl:passed ] ;
|
| 111 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 112 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-kw-graph-01> .
|
| 113 |
+
|
| 114 |
+
[] a earl:Assertion ;
|
| 115 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 116 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 117 |
+
earl:result [ a earl:TestResult ;
|
| 118 |
+
earl:outcome earl:passed ] ;
|
| 119 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 120 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-string-10> .
|
| 121 |
+
|
| 122 |
+
[] a earl:Assertion ;
|
| 123 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 124 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 125 |
+
earl:result [ a earl:TestResult ;
|
| 126 |
+
earl:outcome earl:passed ] ;
|
| 127 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 128 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-ns-dot-end> .
|
| 129 |
+
|
| 130 |
+
[] a earl:Assertion ;
|
| 131 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 132 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 133 |
+
earl:result [ a earl:TestResult ;
|
| 134 |
+
earl:outcome earl:passed ] ;
|
| 135 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 136 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-kw-01> .
|
| 137 |
+
|
| 138 |
+
[] a earl:Assertion ;
|
| 139 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 140 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 141 |
+
earl:result [ a earl:TestResult ;
|
| 142 |
+
earl:outcome earl:passed ] ;
|
| 143 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 144 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-base-02> .
|
| 145 |
+
|
| 146 |
+
[] a earl:Assertion ;
|
| 147 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 148 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 149 |
+
earl:result [ a earl:TestResult ;
|
| 150 |
+
earl:outcome earl:passed ] ;
|
| 151 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 152 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-number-06> .
|
| 153 |
+
|
| 154 |
+
[] a earl:Assertion ;
|
| 155 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 156 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 157 |
+
earl:result [ a earl:TestResult ;
|
| 158 |
+
earl:outcome earl:passed ] ;
|
| 159 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 160 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-LITERAL2_with_langtag_and_datatype> .
|
| 161 |
+
|
| 162 |
+
[] a earl:Assertion ;
|
| 163 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 164 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 165 |
+
earl:result [ a earl:TestResult ;
|
| 166 |
+
earl:outcome earl:passed ] ;
|
| 167 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 168 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-struct-06> .
|
| 169 |
+
|
| 170 |
+
[] a earl:Assertion ;
|
| 171 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 172 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 173 |
+
earl:result [ a earl:TestResult ;
|
| 174 |
+
earl:outcome earl:passed ] ;
|
| 175 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 176 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-02> .
|
| 177 |
+
|
| 178 |
+
[] a earl:Assertion ;
|
| 179 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 180 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 181 |
+
earl:result [ a earl:TestResult ;
|
| 182 |
+
earl:outcome earl:passed ] ;
|
| 183 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 184 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-kw-graph-04> .
|
| 185 |
+
|
| 186 |
+
[] a earl:Assertion ;
|
| 187 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 188 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 189 |
+
earl:result [ a earl:TestResult ;
|
| 190 |
+
earl:outcome earl:passed ] ;
|
| 191 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 192 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-05> .
|
| 193 |
+
|
| 194 |
+
[] a earl:Assertion ;
|
| 195 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 196 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 197 |
+
earl:result [ a earl:TestResult ;
|
| 198 |
+
earl:outcome earl:passed ] ;
|
| 199 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 200 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-turtle-05> .
|
| 201 |
+
|
| 202 |
+
[] a earl:Assertion ;
|
| 203 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 204 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 205 |
+
earl:result [ a earl:TestResult ;
|
| 206 |
+
earl:outcome earl:passed ] ;
|
| 207 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 208 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-prefix-03> .
|
| 209 |
+
|
| 210 |
+
[] a earl:Assertion ;
|
| 211 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 212 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 213 |
+
earl:result [ a earl:TestResult ;
|
| 214 |
+
earl:outcome earl:passed ] ;
|
| 215 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 216 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bnode-01> .
|
| 217 |
+
|
| 218 |
+
[] a earl:Assertion ;
|
| 219 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 220 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 221 |
+
earl:result [ a earl:TestResult ;
|
| 222 |
+
earl:outcome earl:passed ] ;
|
| 223 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 224 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-lists-04> .
|
| 225 |
+
|
| 226 |
+
[] a earl:Assertion ;
|
| 227 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 228 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 229 |
+
earl:result [ a earl:TestResult ;
|
| 230 |
+
earl:outcome earl:passed ] ;
|
| 231 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 232 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-lang-01> .
|
| 233 |
+
|
| 234 |
+
[] a earl:Assertion ;
|
| 235 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 236 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 237 |
+
earl:result [ a earl:TestResult ;
|
| 238 |
+
earl:outcome earl:passed ] ;
|
| 239 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 240 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-kw-02> .
|
| 241 |
+
|
| 242 |
+
[] a earl:Assertion ;
|
| 243 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 244 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 245 |
+
earl:result [ a earl:TestResult ;
|
| 246 |
+
earl:outcome earl:passed ] ;
|
| 247 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 248 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-file-02> .
|
| 249 |
+
|
| 250 |
+
[] a earl:Assertion ;
|
| 251 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 252 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 253 |
+
earl:result [ a earl:TestResult ;
|
| 254 |
+
earl:outcome earl:passed ] ;
|
| 255 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 256 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-04> .
|
| 257 |
+
|
| 258 |
+
[] a earl:Assertion ;
|
| 259 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 260 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 261 |
+
earl:result [ a earl:TestResult ;
|
| 262 |
+
earl:outcome earl:passed ] ;
|
| 263 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 264 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-07> .
|
| 265 |
+
|
| 266 |
+
[] a earl:Assertion ;
|
| 267 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 268 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 269 |
+
earl:result [ a earl:TestResult ;
|
| 270 |
+
earl:outcome earl:passed ] ;
|
| 271 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 272 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-turtle-02> .
|
| 273 |
+
|
| 274 |
+
[] a earl:Assertion ;
|
| 275 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 276 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 277 |
+
earl:result [ a earl:TestResult ;
|
| 278 |
+
earl:outcome earl:passed ] ;
|
| 279 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 280 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-list-02> .
|
| 281 |
+
|
| 282 |
+
[] a earl:Assertion ;
|
| 283 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 284 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 285 |
+
earl:result [ a earl:TestResult ;
|
| 286 |
+
earl:outcome earl:passed ] ;
|
| 287 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 288 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-graph-bad-07> .
|
| 289 |
+
|
| 290 |
+
[] a earl:Assertion ;
|
| 291 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 292 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 293 |
+
earl:result [ a earl:TestResult ;
|
| 294 |
+
earl:outcome earl:passed ] ;
|
| 295 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 296 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-03> .
|
| 297 |
+
|
| 298 |
+
[] a earl:Assertion ;
|
| 299 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 300 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 301 |
+
earl:result [ a earl:TestResult ;
|
| 302 |
+
earl:outcome earl:passed ] ;
|
| 303 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 304 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-eval-bad-03> .
|
| 305 |
+
|
| 306 |
+
[] a earl:Assertion ;
|
| 307 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 308 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 309 |
+
earl:result [ a earl:TestResult ;
|
| 310 |
+
earl:outcome earl:passed ] ;
|
| 311 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 312 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-09> .
|
| 313 |
+
|
| 314 |
+
[] a earl:Assertion ;
|
| 315 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 316 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 317 |
+
earl:result [ a earl:TestResult ;
|
| 318 |
+
earl:outcome earl:passed ] ;
|
| 319 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 320 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-turtle-03> .
|
| 321 |
+
|
| 322 |
+
[] a earl:Assertion ;
|
| 323 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 324 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 325 |
+
earl:result [ a earl:TestResult ;
|
| 326 |
+
earl:outcome earl:passed ] ;
|
| 327 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 328 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-10> .
|
| 329 |
+
|
| 330 |
+
[] a earl:Assertion ;
|
| 331 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 332 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 333 |
+
earl:result [ a earl:TestResult ;
|
| 334 |
+
earl:outcome earl:passed ] ;
|
| 335 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 336 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-struct-02> .
|
| 337 |
+
|
| 338 |
+
[] a earl:Assertion ;
|
| 339 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 340 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 341 |
+
earl:result [ a earl:TestResult ;
|
| 342 |
+
earl:outcome earl:passed ] ;
|
| 343 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 344 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-string-11> .
|
| 345 |
+
|
| 346 |
+
[] a earl:Assertion ;
|
| 347 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 348 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 349 |
+
earl:result [ a earl:TestResult ;
|
| 350 |
+
earl:outcome earl:passed ] ;
|
| 351 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 352 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-kw-03> .
|
| 353 |
+
|
| 354 |
+
[] a earl:Assertion ;
|
| 355 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 356 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 357 |
+
earl:result [ a earl:TestResult ;
|
| 358 |
+
earl:outcome earl:passed ] ;
|
| 359 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 360 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-prefix-04> .
|
| 361 |
+
|
| 362 |
+
[] a earl:Assertion ;
|
| 363 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 364 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 365 |
+
earl:result [ a earl:TestResult ;
|
| 366 |
+
earl:outcome earl:passed ] ;
|
| 367 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 368 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-prefix-03> .
|
| 369 |
+
|
| 370 |
+
[] a earl:Assertion ;
|
| 371 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 372 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 373 |
+
earl:result [ a earl:TestResult ;
|
| 374 |
+
earl:outcome earl:passed ] ;
|
| 375 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 376 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-string-05> .
|
| 377 |
+
|
| 378 |
+
[] a earl:Assertion ;
|
| 379 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 380 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 381 |
+
earl:result [ a earl:TestResult ;
|
| 382 |
+
earl:outcome earl:passed ] ;
|
| 383 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 384 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-string-03> .
|
| 385 |
+
|
| 386 |
+
[] a earl:Assertion ;
|
| 387 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 388 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 389 |
+
earl:result [ a earl:TestResult ;
|
| 390 |
+
earl:outcome earl:passed ] ;
|
| 391 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 392 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-06> .
|
| 393 |
+
|
| 394 |
+
[] a earl:Assertion ;
|
| 395 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 396 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 397 |
+
earl:result [ a earl:TestResult ;
|
| 398 |
+
earl:outcome earl:passed ] ;
|
| 399 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 400 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-datatypes-02> .
|
| 401 |
+
|
| 402 |
+
[] a earl:Assertion ;
|
| 403 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 404 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 405 |
+
earl:result [ a earl:TestResult ;
|
| 406 |
+
earl:outcome earl:passed ] ;
|
| 407 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 408 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-uri-01> .
|
| 409 |
+
|
| 410 |
+
[] a earl:Assertion ;
|
| 411 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 412 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 413 |
+
earl:result [ a earl:TestResult ;
|
| 414 |
+
earl:outcome earl:passed ] ;
|
| 415 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 416 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-base-01> .
|
| 417 |
+
|
| 418 |
+
[] a earl:Assertion ;
|
| 419 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 420 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 421 |
+
earl:result [ a earl:TestResult ;
|
| 422 |
+
earl:outcome earl:passed ] ;
|
| 423 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 424 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-kw-04> .
|
| 425 |
+
|
| 426 |
+
[] a earl:Assertion ;
|
| 427 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 428 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 429 |
+
earl:result [ a earl:TestResult ;
|
| 430 |
+
earl:outcome earl:passed ] ;
|
| 431 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 432 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-kw-05> .
|
| 433 |
+
|
| 434 |
+
[] a earl:Assertion ;
|
| 435 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 436 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 437 |
+
earl:result [ a earl:TestResult ;
|
| 438 |
+
earl:outcome earl:passed ] ;
|
| 439 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 440 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-graph-bad-06> .
|
| 441 |
+
|
| 442 |
+
[] a earl:Assertion ;
|
| 443 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 444 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 445 |
+
earl:result [ a earl:TestResult ;
|
| 446 |
+
earl:outcome earl:passed ] ;
|
| 447 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 448 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-02> .
|
| 449 |
+
|
| 450 |
+
[] a earl:Assertion ;
|
| 451 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 452 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 453 |
+
earl:result [ a earl:TestResult ;
|
| 454 |
+
earl:outcome earl:passed ] ;
|
| 455 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 456 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-ln-escape> .
|
| 457 |
+
|
| 458 |
+
[] a earl:Assertion ;
|
| 459 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 460 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 461 |
+
earl:result [ a earl:TestResult ;
|
| 462 |
+
earl:outcome earl:passed ] ;
|
| 463 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 464 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-15> .
|
| 465 |
+
|
| 466 |
+
[] a earl:Assertion ;
|
| 467 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 468 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 469 |
+
earl:result [ a earl:TestResult ;
|
| 470 |
+
earl:outcome earl:passed ] ;
|
| 471 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 472 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-kw-graph-09> .
|
| 473 |
+
|
| 474 |
+
[] a earl:Assertion ;
|
| 475 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 476 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 477 |
+
earl:result [ a earl:TestResult ;
|
| 478 |
+
earl:outcome earl:passed ] ;
|
| 479 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 480 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-missing-ns-dot-end> .
|
| 481 |
+
|
| 482 |
+
[] a earl:Assertion ;
|
| 483 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 484 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 485 |
+
earl:result [ a earl:TestResult ;
|
| 486 |
+
earl:outcome earl:passed ] ;
|
| 487 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 488 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-turtle-bad-02> .
|
| 489 |
+
|
| 490 |
+
[] a earl:Assertion ;
|
| 491 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 492 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 493 |
+
earl:result [ a earl:TestResult ;
|
| 494 |
+
earl:outcome earl:passed ] ;
|
| 495 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 496 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-ns-dots> .
|
| 497 |
+
|
| 498 |
+
[] a earl:Assertion ;
|
| 499 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 500 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 501 |
+
earl:result [ a earl:TestResult ;
|
| 502 |
+
earl:outcome earl:passed ] ;
|
| 503 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 504 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-num-04> .
|
| 505 |
+
|
| 506 |
+
[] a earl:Assertion ;
|
| 507 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 508 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 509 |
+
earl:result [ a earl:TestResult ;
|
| 510 |
+
earl:outcome earl:passed ] ;
|
| 511 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 512 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bnode-10> .
|
| 513 |
+
|
| 514 |
+
[] a earl:Assertion ;
|
| 515 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 516 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 517 |
+
earl:result [ a earl:TestResult ;
|
| 518 |
+
earl:outcome earl:passed ] ;
|
| 519 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 520 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-string-02> .
|
| 521 |
+
|
| 522 |
+
[] a earl:Assertion ;
|
| 523 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 524 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 525 |
+
earl:result [ a earl:TestResult ;
|
| 526 |
+
earl:outcome earl:passed ] ;
|
| 527 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 528 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-ln-colons> .
|
| 529 |
+
|
| 530 |
+
[] a earl:Assertion ;
|
| 531 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 532 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 533 |
+
earl:result [ a earl:TestResult ;
|
| 534 |
+
earl:outcome earl:passed ] ;
|
| 535 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 536 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-string-02> .
|
| 537 |
+
|
| 538 |
+
[] a earl:Assertion ;
|
| 539 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 540 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 541 |
+
earl:result [ a earl:TestResult ;
|
| 542 |
+
earl:outcome earl:passed ] ;
|
| 543 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 544 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-prefix-07> .
|
| 545 |
+
|
| 546 |
+
[] a earl:Assertion ;
|
| 547 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 548 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 549 |
+
earl:result [ a earl:TestResult ;
|
| 550 |
+
earl:outcome earl:passed ] ;
|
| 551 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 552 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-11> .
|
| 553 |
+
|
| 554 |
+
[] a earl:Assertion ;
|
| 555 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 556 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 557 |
+
earl:result [ a earl:TestResult ;
|
| 558 |
+
earl:outcome earl:passed ] ;
|
| 559 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 560 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-string-04> .
|
| 561 |
+
|
| 562 |
+
[] a earl:Assertion ;
|
| 563 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 564 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 565 |
+
earl:result [ a earl:TestResult ;
|
| 566 |
+
earl:outcome earl:passed ] ;
|
| 567 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 568 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-09> .
|
| 569 |
+
|
| 570 |
+
[] a earl:Assertion ;
|
| 571 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 572 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 573 |
+
earl:result [ a earl:TestResult ;
|
| 574 |
+
earl:outcome earl:passed ] ;
|
| 575 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 576 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-graph-bad-08> .
|
| 577 |
+
|
| 578 |
+
[] a earl:Assertion ;
|
| 579 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 580 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 581 |
+
earl:result [ a earl:TestResult ;
|
| 582 |
+
earl:outcome earl:passed ] ;
|
| 583 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 584 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-bnodeplist-graph-01> .
|
| 585 |
+
|
| 586 |
+
[] a earl:Assertion ;
|
| 587 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 588 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 589 |
+
earl:result [ a earl:TestResult ;
|
| 590 |
+
earl:outcome earl:passed ] ;
|
| 591 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 592 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-string-03> .
|
| 593 |
+
|
| 594 |
+
[] a earl:Assertion ;
|
| 595 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 596 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 597 |
+
earl:result [ a earl:TestResult ;
|
| 598 |
+
earl:outcome earl:passed ] ;
|
| 599 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 600 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-uri-04> .
|
| 601 |
+
|
| 602 |
+
[] a earl:Assertion ;
|
| 603 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 604 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 605 |
+
earl:result [ a earl:TestResult ;
|
| 606 |
+
earl:outcome earl:passed ] ;
|
| 607 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 608 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bnode-05> .
|
| 609 |
+
|
| 610 |
+
[] a earl:Assertion ;
|
| 611 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 612 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 613 |
+
earl:result [ a earl:TestResult ;
|
| 614 |
+
earl:outcome earl:passed ] ;
|
| 615 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 616 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-turtle-04> .
|
| 617 |
+
|
| 618 |
+
[] a earl:Assertion ;
|
| 619 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 620 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 621 |
+
earl:result [ a earl:TestResult ;
|
| 622 |
+
earl:outcome earl:passed ] ;
|
| 623 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 624 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bnode-09> .
|
| 625 |
+
|
| 626 |
+
[] a earl:Assertion ;
|
| 627 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 628 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 629 |
+
earl:result [ a earl:TestResult ;
|
| 630 |
+
earl:outcome earl:passed ] ;
|
| 631 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 632 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-str-esc-02> .
|
| 633 |
+
|
| 634 |
+
[] a earl:Assertion ;
|
| 635 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 636 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 637 |
+
earl:result [ a earl:TestResult ;
|
| 638 |
+
earl:outcome earl:passed ] ;
|
| 639 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 640 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-file-01> .
|
| 641 |
+
|
| 642 |
+
[] a earl:Assertion ;
|
| 643 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 644 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 645 |
+
earl:result [ a earl:TestResult ;
|
| 646 |
+
earl:outcome earl:passed ] ;
|
| 647 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 648 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-blank-label-dot-end> .
|
| 649 |
+
|
| 650 |
+
[] a earl:Assertion ;
|
| 651 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 652 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 653 |
+
earl:result [ a earl:TestResult ;
|
| 654 |
+
earl:outcome earl:passed ] ;
|
| 655 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 656 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-12> .
|
| 657 |
+
|
| 658 |
+
[] a earl:Assertion ;
|
| 659 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 660 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 661 |
+
earl:result [ a earl:TestResult ;
|
| 662 |
+
earl:outcome earl:passed ] ;
|
| 663 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 664 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-03> .
|
| 665 |
+
|
| 666 |
+
[] a earl:Assertion ;
|
| 667 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 668 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 669 |
+
earl:result [ a earl:TestResult ;
|
| 670 |
+
earl:outcome earl:passed ] ;
|
| 671 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 672 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-string-01> .
|
| 673 |
+
|
| 674 |
+
[] a earl:Assertion ;
|
| 675 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 676 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 677 |
+
earl:result [ a earl:TestResult ;
|
| 678 |
+
earl:outcome earl:passed ] ;
|
| 679 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 680 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-string-08> .
|
| 681 |
+
|
| 682 |
+
[] a earl:Assertion ;
|
| 683 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 684 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 685 |
+
earl:result [ a earl:TestResult ;
|
| 686 |
+
earl:outcome earl:passed ] ;
|
| 687 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 688 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-str-esc-03> .
|
| 689 |
+
|
| 690 |
+
[] a earl:Assertion ;
|
| 691 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 692 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 693 |
+
earl:result [ a earl:TestResult ;
|
| 694 |
+
earl:outcome earl:passed ] ;
|
| 695 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 696 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-graph-bad-05> .
|
| 697 |
+
|
| 698 |
+
[] a earl:Assertion ;
|
| 699 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 700 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 701 |
+
earl:result [ a earl:TestResult ;
|
| 702 |
+
earl:outcome earl:passed ] ;
|
| 703 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 704 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-graph-bad-02> .
|
| 705 |
+
|
| 706 |
+
[] a earl:Assertion ;
|
| 707 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 708 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 709 |
+
earl:result [ a earl:TestResult ;
|
| 710 |
+
earl:outcome earl:passed ] ;
|
| 711 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 712 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-turtle-01> .
|
| 713 |
+
|
| 714 |
+
[] a earl:Assertion ;
|
| 715 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 716 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 717 |
+
earl:result [ a earl:TestResult ;
|
| 718 |
+
earl:outcome earl:passed ] ;
|
| 719 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 720 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-01> .
|
| 721 |
+
|
| 722 |
+
[] a earl:Assertion ;
|
| 723 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 724 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 725 |
+
earl:result [ a earl:TestResult ;
|
| 726 |
+
earl:outcome earl:passed ] ;
|
| 727 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 728 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-missing-ns-dot-start> .
|
| 729 |
+
|
| 730 |
+
[] a earl:Assertion ;
|
| 731 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 732 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 733 |
+
earl:result [ a earl:TestResult ;
|
| 734 |
+
earl:outcome earl:passed ] ;
|
| 735 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 736 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-graph-bad-09> .
|
| 737 |
+
|
| 738 |
+
[] a earl:Assertion ;
|
| 739 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 740 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 741 |
+
earl:result [ a earl:TestResult ;
|
| 742 |
+
earl:outcome earl:passed ] ;
|
| 743 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 744 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-struct-03> .
|
| 745 |
+
|
| 746 |
+
[] a earl:Assertion ;
|
| 747 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 748 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 749 |
+
earl:result [ a earl:TestResult ;
|
| 750 |
+
earl:outcome earl:passed ] ;
|
| 751 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 752 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-13> .
|
| 753 |
+
|
| 754 |
+
[] a earl:Assertion ;
|
| 755 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 756 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 757 |
+
earl:result [ a earl:TestResult ;
|
| 758 |
+
earl:outcome earl:passed ] ;
|
| 759 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 760 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-04> .
|
| 761 |
+
|
| 762 |
+
[] a earl:Assertion ;
|
| 763 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 764 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 765 |
+
earl:result [ a earl:TestResult ;
|
| 766 |
+
earl:outcome earl:passed ] ;
|
| 767 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 768 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-list-01> .
|
| 769 |
+
|
| 770 |
+
[] a earl:Assertion ;
|
| 771 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 772 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 773 |
+
earl:result [ a earl:TestResult ;
|
| 774 |
+
earl:outcome earl:passed ] ;
|
| 775 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 776 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-06> .
|
| 777 |
+
|
| 778 |
+
[] a earl:Assertion ;
|
| 779 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 780 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 781 |
+
earl:result [ a earl:TestResult ;
|
| 782 |
+
earl:outcome earl:passed ] ;
|
| 783 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 784 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-number-dot-in-anon> .
|
| 785 |
+
|
| 786 |
+
[] a earl:Assertion ;
|
| 787 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 788 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 789 |
+
earl:result [ a earl:TestResult ;
|
| 790 |
+
earl:outcome earl:passed ] ;
|
| 791 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 792 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-string-06> .
|
| 793 |
+
|
| 794 |
+
[] a earl:Assertion ;
|
| 795 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 796 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 797 |
+
earl:result [ a earl:TestResult ;
|
| 798 |
+
earl:outcome earl:passed ] ;
|
| 799 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 800 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-lists-01> .
|
| 801 |
+
|
| 802 |
+
[] a earl:Assertion ;
|
| 803 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 804 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 805 |
+
earl:result [ a earl:TestResult ;
|
| 806 |
+
earl:outcome earl:passed ] ;
|
| 807 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 808 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bnode-06> .
|
| 809 |
+
|
| 810 |
+
[] a earl:Assertion ;
|
| 811 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 812 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 813 |
+
earl:result [ a earl:TestResult ;
|
| 814 |
+
earl:outcome earl:passed ] ;
|
| 815 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 816 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-struct-01> .
|
| 817 |
+
|
| 818 |
+
[] a earl:Assertion ;
|
| 819 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 820 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 821 |
+
earl:result [ a earl:TestResult ;
|
| 822 |
+
earl:outcome earl:passed ] ;
|
| 823 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 824 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-pname-esc-03> .
|
| 825 |
+
|
| 826 |
+
[] a earl:Assertion ;
|
| 827 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 828 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 829 |
+
earl:result [ a earl:TestResult ;
|
| 830 |
+
earl:outcome earl:passed ] ;
|
| 831 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 832 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-kw-graph-06> .
|
| 833 |
+
|
| 834 |
+
[] a earl:Assertion ;
|
| 835 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 836 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 837 |
+
earl:result [ a earl:TestResult ;
|
| 838 |
+
earl:outcome earl:passed ] ;
|
| 839 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 840 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-lists-03> .
|
| 841 |
+
|
| 842 |
+
[] a earl:Assertion ;
|
| 843 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 844 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 845 |
+
earl:result [ a earl:TestResult ;
|
| 846 |
+
earl:outcome earl:passed ] ;
|
| 847 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 848 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-prefix-06> .
|
| 849 |
+
|
| 850 |
+
[] a earl:Assertion ;
|
| 851 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 852 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 853 |
+
earl:result [ a earl:TestResult ;
|
| 854 |
+
earl:outcome earl:passed ] ;
|
| 855 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 856 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-struct-07> .
|
| 857 |
+
|
| 858 |
+
[] a earl:Assertion ;
|
| 859 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 860 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 861 |
+
earl:result [ a earl:TestResult ;
|
| 862 |
+
earl:outcome earl:passed ] ;
|
| 863 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 864 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-num-05> .
|
| 865 |
+
|
| 866 |
+
[] a earl:Assertion ;
|
| 867 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 868 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 869 |
+
earl:result [ a earl:TestResult ;
|
| 870 |
+
earl:outcome earl:passed ] ;
|
| 871 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 872 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-ln-escape-start> .
|
| 873 |
+
|
| 874 |
+
[] a earl:Assertion ;
|
| 875 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 876 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 877 |
+
earl:result [ a earl:TestResult ;
|
| 878 |
+
earl:outcome earl:passed ] ;
|
| 879 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 880 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-kw-01> .
|
| 881 |
+
|
| 882 |
+
[] a earl:Assertion ;
|
| 883 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 884 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 885 |
+
earl:result [ a earl:TestResult ;
|
| 886 |
+
earl:outcome earl:passed ] ;
|
| 887 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 888 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-pname-01> .
|
| 889 |
+
|
| 890 |
+
[] a earl:Assertion ;
|
| 891 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 892 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 893 |
+
earl:result [ a earl:TestResult ;
|
| 894 |
+
earl:outcome earl:passed ] ;
|
| 895 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 896 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-prefix-08> .
|
| 897 |
+
|
| 898 |
+
[] a earl:Assertion ;
|
| 899 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 900 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 901 |
+
earl:result [ a earl:TestResult ;
|
| 902 |
+
earl:outcome earl:passed ] ;
|
| 903 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 904 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-07> .
|
| 905 |
+
|
| 906 |
+
[] a earl:Assertion ;
|
| 907 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 908 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 909 |
+
earl:result [ a earl:TestResult ;
|
| 910 |
+
earl:outcome earl:passed ] ;
|
| 911 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 912 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-graph-bad-04> .
|
| 913 |
+
|
| 914 |
+
[] a earl:Assertion ;
|
| 915 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 916 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 917 |
+
earl:result [ a earl:TestResult ;
|
| 918 |
+
earl:outcome earl:passed ] ;
|
| 919 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 920 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-ln-dash-start> .
|
| 921 |
+
|
| 922 |
+
[] a earl:Assertion ;
|
| 923 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 924 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 925 |
+
earl:result [ a earl:TestResult ;
|
| 926 |
+
earl:outcome earl:passed ] ;
|
| 927 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 928 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-number-02> .
|
| 929 |
+
|
| 930 |
+
[] a earl:Assertion ;
|
| 931 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 932 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 933 |
+
earl:result [ a earl:TestResult ;
|
| 934 |
+
earl:outcome earl:passed ] ;
|
| 935 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 936 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-num-03> .
|
| 937 |
+
|
| 938 |
+
[] a earl:Assertion ;
|
| 939 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 940 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 941 |
+
earl:result [ a earl:TestResult ;
|
| 942 |
+
earl:outcome earl:passed ] ;
|
| 943 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 944 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-ln-dots> .
|
| 945 |
+
|
| 946 |
+
[] a earl:Assertion ;
|
| 947 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 948 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 949 |
+
earl:result [ a earl:TestResult ;
|
| 950 |
+
earl:outcome earl:passed ] ;
|
| 951 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 952 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-prefix-01> .
|
| 953 |
+
|
| 954 |
+
[] a earl:Assertion ;
|
| 955 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 956 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 957 |
+
earl:result [ a earl:TestResult ;
|
| 958 |
+
earl:outcome earl:passed ] ;
|
| 959 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 960 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-list-04> .
|
| 961 |
+
|
| 962 |
+
[] a earl:Assertion ;
|
| 963 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 964 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 965 |
+
earl:result [ a earl:TestResult ;
|
| 966 |
+
earl:outcome earl:passed ] ;
|
| 967 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 968 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-prefix-02> .
|
| 969 |
+
|
| 970 |
+
[] a earl:Assertion ;
|
| 971 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 972 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 973 |
+
earl:result [ a earl:TestResult ;
|
| 974 |
+
earl:outcome earl:passed ] ;
|
| 975 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 976 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-prefix-06> .
|
| 977 |
+
|
| 978 |
+
[] a earl:Assertion ;
|
| 979 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 980 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 981 |
+
earl:result [ a earl:TestResult ;
|
| 982 |
+
earl:outcome earl:passed ] ;
|
| 983 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 984 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-uri-03> .
|
| 985 |
+
|
| 986 |
+
[] a earl:Assertion ;
|
| 987 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 988 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 989 |
+
earl:result [ a earl:TestResult ;
|
| 990 |
+
earl:outcome earl:passed ] ;
|
| 991 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 992 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-collection-graph-01> .
|
| 993 |
+
|
| 994 |
+
[] a earl:Assertion ;
|
| 995 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 996 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 997 |
+
earl:result [ a earl:TestResult ;
|
| 998 |
+
earl:outcome earl:passed ] ;
|
| 999 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1000 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-pname-esc-01> .
|
| 1001 |
+
|
| 1002 |
+
[] a earl:Assertion ;
|
| 1003 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1004 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1005 |
+
earl:result [ a earl:TestResult ;
|
| 1006 |
+
earl:outcome earl:passed ] ;
|
| 1007 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1008 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-kw-03> .
|
| 1009 |
+
|
| 1010 |
+
[] a earl:Assertion ;
|
| 1011 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1012 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1013 |
+
earl:result [ a earl:TestResult ;
|
| 1014 |
+
earl:outcome earl:passed ] ;
|
| 1015 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1016 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-pname-02> .
|
| 1017 |
+
|
| 1018 |
+
[] a earl:Assertion ;
|
| 1019 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1020 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1021 |
+
earl:result [ a earl:TestResult ;
|
| 1022 |
+
earl:outcome earl:passed ] ;
|
| 1023 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1024 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-base-04> .
|
| 1025 |
+
|
| 1026 |
+
[] a earl:Assertion ;
|
| 1027 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1028 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1029 |
+
earl:result [ a earl:TestResult ;
|
| 1030 |
+
earl:outcome earl:passed ] ;
|
| 1031 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1032 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-string-09> .
|
| 1033 |
+
|
| 1034 |
+
[] a earl:Assertion ;
|
| 1035 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1036 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1037 |
+
earl:result [ a earl:TestResult ;
|
| 1038 |
+
earl:outcome earl:passed ] ;
|
| 1039 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1040 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-prefix-05> .
|
| 1041 |
+
|
| 1042 |
+
[] a earl:Assertion ;
|
| 1043 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1044 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1045 |
+
earl:result [ a earl:TestResult ;
|
| 1046 |
+
earl:outcome earl:passed ] ;
|
| 1047 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1048 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-kw-graph-10> .
|
| 1049 |
+
|
| 1050 |
+
[] a earl:Assertion ;
|
| 1051 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1052 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1053 |
+
earl:result [ a earl:TestResult ;
|
| 1054 |
+
earl:outcome earl:passed ] ;
|
| 1055 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1056 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-num-01> .
|
| 1057 |
+
|
| 1058 |
+
[] a earl:Assertion ;
|
| 1059 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1060 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1061 |
+
earl:result [ a earl:TestResult ;
|
| 1062 |
+
earl:outcome earl:passed ] ;
|
| 1063 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1064 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-number-07> .
|
| 1065 |
+
|
| 1066 |
+
[] a earl:Assertion ;
|
| 1067 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1068 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1069 |
+
earl:result [ a earl:TestResult ;
|
| 1070 |
+
earl:outcome earl:passed ] ;
|
| 1071 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1072 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-uri-05> .
|
| 1073 |
+
|
| 1074 |
+
[] a earl:Assertion ;
|
| 1075 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1076 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1077 |
+
earl:result [ a earl:TestResult ;
|
| 1078 |
+
earl:outcome earl:passed ] ;
|
| 1079 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1080 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-number-08> .
|
| 1081 |
+
|
| 1082 |
+
[] a earl:Assertion ;
|
| 1083 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1084 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1085 |
+
earl:result [ a earl:TestResult ;
|
| 1086 |
+
earl:outcome earl:passed ] ;
|
| 1087 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1088 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-17> .
|
| 1089 |
+
|
| 1090 |
+
[] a earl:Assertion ;
|
| 1091 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1092 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1093 |
+
earl:result [ a earl:TestResult ;
|
| 1094 |
+
earl:outcome earl:passed ] ;
|
| 1095 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1096 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-turtle-bad-01> .
|
| 1097 |
+
|
| 1098 |
+
[] a earl:Assertion ;
|
| 1099 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1100 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1101 |
+
earl:result [ a earl:TestResult ;
|
| 1102 |
+
earl:outcome earl:passed ] ;
|
| 1103 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1104 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-string-01> .
|
| 1105 |
+
|
| 1106 |
+
[] a earl:Assertion ;
|
| 1107 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1108 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1109 |
+
earl:result [ a earl:TestResult ;
|
| 1110 |
+
earl:outcome earl:passed ] ;
|
| 1111 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1112 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-string-05> .
|
| 1113 |
+
|
| 1114 |
+
[] a earl:Assertion ;
|
| 1115 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1116 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1117 |
+
earl:result [ a earl:TestResult ;
|
| 1118 |
+
earl:outcome earl:passed ] ;
|
| 1119 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1120 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-collection-graph-02> .
|
| 1121 |
+
|
| 1122 |
+
[] a earl:Assertion ;
|
| 1123 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1124 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1125 |
+
earl:result [ a earl:TestResult ;
|
| 1126 |
+
earl:outcome earl:passed ] ;
|
| 1127 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1128 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-pname-esc-02> .
|
| 1129 |
+
|
| 1130 |
+
[] a earl:Assertion ;
|
| 1131 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1132 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1133 |
+
earl:result [ a earl:TestResult ;
|
| 1134 |
+
earl:outcome earl:passed ] ;
|
| 1135 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1136 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-prefix-02> .
|
| 1137 |
+
|
| 1138 |
+
[] a earl:Assertion ;
|
| 1139 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1140 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1141 |
+
earl:result [ a earl:TestResult ;
|
| 1142 |
+
earl:outcome earl:passed ] ;
|
| 1143 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1144 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-graph-bad-03> .
|
| 1145 |
+
|
| 1146 |
+
[] a earl:Assertion ;
|
| 1147 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1148 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1149 |
+
earl:result [ a earl:TestResult ;
|
| 1150 |
+
earl:outcome earl:passed ] ;
|
| 1151 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1152 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-esc-03> .
|
| 1153 |
+
|
| 1154 |
+
[] a earl:Assertion ;
|
| 1155 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1156 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1157 |
+
earl:result [ a earl:TestResult ;
|
| 1158 |
+
earl:outcome earl:passed ] ;
|
| 1159 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1160 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-prefix-09> .
|
| 1161 |
+
|
| 1162 |
+
[] a earl:Assertion ;
|
| 1163 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1164 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1165 |
+
earl:result [ a earl:TestResult ;
|
| 1166 |
+
earl:outcome earl:passed ] ;
|
| 1167 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1168 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-12> .
|
| 1169 |
+
|
| 1170 |
+
[] a earl:Assertion ;
|
| 1171 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1172 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1173 |
+
earl:result [ a earl:TestResult ;
|
| 1174 |
+
earl:outcome earl:passed ] ;
|
| 1175 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1176 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-10> .
|
| 1177 |
+
|
| 1178 |
+
[] a earl:Assertion ;
|
| 1179 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1180 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1181 |
+
earl:result [ a earl:TestResult ;
|
| 1182 |
+
earl:outcome earl:passed ] ;
|
| 1183 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1184 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-base-02> .
|
| 1185 |
+
|
| 1186 |
+
[] a earl:Assertion ;
|
| 1187 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1188 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1189 |
+
earl:result [ a earl:TestResult ;
|
| 1190 |
+
earl:outcome earl:passed ] ;
|
| 1191 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1192 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-str-esc-01> .
|
| 1193 |
+
|
| 1194 |
+
[] a earl:Assertion ;
|
| 1195 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1196 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1197 |
+
earl:result [ a earl:TestResult ;
|
| 1198 |
+
earl:outcome earl:passed ] ;
|
| 1199 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1200 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-eval-bad-01> .
|
| 1201 |
+
|
| 1202 |
+
[] a earl:Assertion ;
|
| 1203 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1204 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1205 |
+
earl:result [ a earl:TestResult ;
|
| 1206 |
+
earl:outcome earl:passed ] ;
|
| 1207 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1208 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-08> .
|
| 1209 |
+
|
| 1210 |
+
[] a earl:Assertion ;
|
| 1211 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1212 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1213 |
+
earl:result [ a earl:TestResult ;
|
| 1214 |
+
earl:outcome earl:passed ] ;
|
| 1215 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1216 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-number-03> .
|
| 1217 |
+
|
| 1218 |
+
[] a earl:Assertion ;
|
| 1219 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1220 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1221 |
+
earl:result [ a earl:TestResult ;
|
| 1222 |
+
earl:outcome earl:passed ] ;
|
| 1223 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1224 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bnode-03> .
|
| 1225 |
+
|
| 1226 |
+
[] a earl:Assertion ;
|
| 1227 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1228 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1229 |
+
earl:result [ a earl:TestResult ;
|
| 1230 |
+
earl:outcome earl:passed ] ;
|
| 1231 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1232 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-kw-graph-05> .
|
| 1233 |
+
|
| 1234 |
+
[] a earl:Assertion ;
|
| 1235 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1236 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1237 |
+
earl:result [ a earl:TestResult ;
|
| 1238 |
+
earl:outcome earl:passed ] ;
|
| 1239 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1240 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-number-04> .
|
| 1241 |
+
|
| 1242 |
+
[] a earl:Assertion ;
|
| 1243 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1244 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1245 |
+
earl:result [ a earl:TestResult ;
|
| 1246 |
+
earl:outcome earl:passed ] ;
|
| 1247 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1248 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-num-02> .
|
| 1249 |
+
|
| 1250 |
+
[] a earl:Assertion ;
|
| 1251 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1252 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1253 |
+
earl:result [ a earl:TestResult ;
|
| 1254 |
+
earl:outcome earl:passed ] ;
|
| 1255 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1256 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-minimal-whitespace-01> .
|
| 1257 |
+
|
| 1258 |
+
[] a earl:Assertion ;
|
| 1259 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1260 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1261 |
+
earl:result [ a earl:TestResult ;
|
| 1262 |
+
earl:outcome earl:passed ] ;
|
| 1263 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1264 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-struct-05> .
|
| 1265 |
+
|
| 1266 |
+
[] a earl:Assertion ;
|
| 1267 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1268 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1269 |
+
earl:result [ a earl:TestResult ;
|
| 1270 |
+
earl:outcome earl:passed ] ;
|
| 1271 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1272 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-number-09> .
|
| 1273 |
+
|
| 1274 |
+
[] a earl:Assertion ;
|
| 1275 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1276 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1277 |
+
earl:result [ a earl:TestResult ;
|
| 1278 |
+
earl:outcome earl:passed ] ;
|
| 1279 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1280 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-kw-graph-03> .
|
| 1281 |
+
|
| 1282 |
+
[] a earl:Assertion ;
|
| 1283 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1284 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1285 |
+
earl:result [ a earl:TestResult ;
|
| 1286 |
+
earl:outcome earl:passed ] ;
|
| 1287 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1288 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-uri-01> .
|
| 1289 |
+
|
| 1290 |
+
[] a earl:Assertion ;
|
| 1291 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1292 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1293 |
+
earl:result [ a earl:TestResult ;
|
| 1294 |
+
earl:outcome earl:passed ] ;
|
| 1295 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1296 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-esc-02> .
|
| 1297 |
+
|
| 1298 |
+
[] a earl:Assertion ;
|
| 1299 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1300 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1301 |
+
earl:result [ a earl:TestResult ;
|
| 1302 |
+
earl:outcome earl:passed ] ;
|
| 1303 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1304 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-16> .
|
| 1305 |
+
|
| 1306 |
+
[] a earl:Assertion ;
|
| 1307 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1308 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1309 |
+
earl:result [ a earl:TestResult ;
|
| 1310 |
+
earl:outcome earl:passed ] ;
|
| 1311 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1312 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-turtle-06> .
|
| 1313 |
+
|
| 1314 |
+
[] a earl:Assertion ;
|
| 1315 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1316 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1317 |
+
earl:result [ a earl:TestResult ;
|
| 1318 |
+
earl:outcome earl:passed ] ;
|
| 1319 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1320 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-string-06> .
|
| 1321 |
+
|
| 1322 |
+
[] a earl:Assertion ;
|
| 1323 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1324 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1325 |
+
earl:result [ a earl:TestResult ;
|
| 1326 |
+
earl:outcome earl:passed ] ;
|
| 1327 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1328 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bnode-08> .
|
| 1329 |
+
|
| 1330 |
+
[] a earl:Assertion ;
|
| 1331 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1332 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1333 |
+
earl:result [ a earl:TestResult ;
|
| 1334 |
+
earl:outcome earl:passed ] ;
|
| 1335 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1336 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-base-04> .
|
| 1337 |
+
|
| 1338 |
+
[] a earl:Assertion ;
|
| 1339 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1340 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1341 |
+
earl:result [ a earl:TestResult ;
|
| 1342 |
+
earl:outcome earl:passed ] ;
|
| 1343 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1344 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-datatypes-01> .
|
| 1345 |
+
|
| 1346 |
+
[] a earl:Assertion ;
|
| 1347 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1348 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1349 |
+
earl:result [ a earl:TestResult ;
|
| 1350 |
+
earl:outcome earl:passed ] ;
|
| 1351 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1352 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bnode-07> .
|
| 1353 |
+
|
| 1354 |
+
[] a earl:Assertion ;
|
| 1355 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1356 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1357 |
+
earl:result [ a earl:TestResult ;
|
| 1358 |
+
earl:outcome earl:passed ] ;
|
| 1359 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1360 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-file-03> .
|
| 1361 |
+
|
| 1362 |
+
[] a earl:Assertion ;
|
| 1363 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1364 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1365 |
+
earl:result [ a earl:TestResult ;
|
| 1366 |
+
earl:outcome earl:passed ] ;
|
| 1367 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1368 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-05> .
|
| 1369 |
+
|
| 1370 |
+
[] a earl:Assertion ;
|
| 1371 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1372 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1373 |
+
earl:result [ a earl:TestResult ;
|
| 1374 |
+
earl:outcome earl:passed ] ;
|
| 1375 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1376 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-lists-02> .
|
| 1377 |
+
|
| 1378 |
+
[] a earl:Assertion ;
|
| 1379 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1380 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1381 |
+
earl:result [ a earl:TestResult ;
|
| 1382 |
+
earl:outcome earl:passed ] ;
|
| 1383 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1384 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-string-04> .
|
| 1385 |
+
|
| 1386 |
+
[] a earl:Assertion ;
|
| 1387 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1388 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1389 |
+
earl:result [ a earl:TestResult ;
|
| 1390 |
+
earl:outcome earl:passed ] ;
|
| 1391 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1392 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-blank-label> .
|
| 1393 |
+
|
| 1394 |
+
[] a earl:Assertion ;
|
| 1395 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1396 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1397 |
+
earl:result [ a earl:TestResult ;
|
| 1398 |
+
earl:outcome earl:passed ] ;
|
| 1399 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1400 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-esc-01> .
|
| 1401 |
+
|
| 1402 |
+
[] a earl:Assertion ;
|
| 1403 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1404 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1405 |
+
earl:result [ a earl:TestResult ;
|
| 1406 |
+
earl:outcome earl:passed ] ;
|
| 1407 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1408 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-string-07> .
|
| 1409 |
+
|
| 1410 |
+
[] a earl:Assertion ;
|
| 1411 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1412 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1413 |
+
earl:result [ a earl:TestResult ;
|
| 1414 |
+
earl:outcome earl:passed ] ;
|
| 1415 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1416 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-graph-bad-10> .
|
| 1417 |
+
|
| 1418 |
+
[] a earl:Assertion ;
|
| 1419 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1420 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1421 |
+
earl:result [ a earl:TestResult ;
|
| 1422 |
+
earl:outcome earl:passed ] ;
|
| 1423 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1424 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-lists-05> .
|
| 1425 |
+
|
| 1426 |
+
[] a earl:Assertion ;
|
| 1427 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1428 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1429 |
+
earl:result [ a earl:TestResult ;
|
| 1430 |
+
earl:outcome earl:passed ] ;
|
| 1431 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1432 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-number-10> .
|
| 1433 |
+
|
| 1434 |
+
[] a earl:Assertion ;
|
| 1435 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1436 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1437 |
+
earl:result [ a earl:TestResult ;
|
| 1438 |
+
earl:outcome earl:passed ] ;
|
| 1439 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1440 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-base-01> .
|
| 1441 |
+
|
| 1442 |
+
[] a earl:Assertion ;
|
| 1443 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1444 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1445 |
+
earl:result [ a earl:TestResult ;
|
| 1446 |
+
earl:outcome earl:passed ] ;
|
| 1447 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1448 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bnode-02> .
|
| 1449 |
+
|
| 1450 |
+
[] a earl:Assertion ;
|
| 1451 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1452 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1453 |
+
earl:result [ a earl:TestResult ;
|
| 1454 |
+
earl:outcome earl:passed ] ;
|
| 1455 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1456 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-eval-bad-04> .
|
| 1457 |
+
|
| 1458 |
+
[] a earl:Assertion ;
|
| 1459 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1460 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1461 |
+
earl:result [ a earl:TestResult ;
|
| 1462 |
+
earl:outcome earl:passed ] ;
|
| 1463 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1464 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-prefix-01> .
|
| 1465 |
+
|
| 1466 |
+
[] a earl:Assertion ;
|
| 1467 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1468 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1469 |
+
earl:result [ a earl:TestResult ;
|
| 1470 |
+
earl:outcome earl:passed ] ;
|
| 1471 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1472 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-string-07> .
|
| 1473 |
+
|
| 1474 |
+
[] a earl:Assertion ;
|
| 1475 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1476 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1477 |
+
earl:result [ a earl:TestResult ;
|
| 1478 |
+
earl:outcome earl:passed ] ;
|
| 1479 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1480 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-n3-extras-13> .
|
| 1481 |
+
|
| 1482 |
+
[] a earl:Assertion ;
|
| 1483 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1484 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1485 |
+
earl:result [ a earl:TestResult ;
|
| 1486 |
+
earl:outcome earl:passed ] ;
|
| 1487 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1488 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-kw-graph-08> .
|
| 1489 |
+
|
| 1490 |
+
[] a earl:Assertion ;
|
| 1491 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1492 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1493 |
+
earl:result [ a earl:TestResult ;
|
| 1494 |
+
earl:outcome earl:passed ] ;
|
| 1495 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1496 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-kw-graph-02> .
|
| 1497 |
+
|
| 1498 |
+
[] a earl:Assertion ;
|
| 1499 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1500 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1501 |
+
earl:result [ a earl:TestResult ;
|
| 1502 |
+
earl:outcome earl:passed ] ;
|
| 1503 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1504 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-uri-04> .
|
| 1505 |
+
|
| 1506 |
+
[] a earl:Assertion ;
|
| 1507 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1508 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1509 |
+
earl:result [ a earl:TestResult ;
|
| 1510 |
+
earl:outcome earl:passed ] ;
|
| 1511 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1512 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-struct-14> .
|
| 1513 |
+
|
| 1514 |
+
[] a earl:Assertion ;
|
| 1515 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1516 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1517 |
+
earl:result [ a earl:TestResult ;
|
| 1518 |
+
earl:outcome earl:passed ] ;
|
| 1519 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1520 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-base-03> .
|
| 1521 |
+
|
| 1522 |
+
[] a earl:Assertion ;
|
| 1523 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1524 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1525 |
+
earl:result [ a earl:TestResult ;
|
| 1526 |
+
earl:outcome earl:passed ] ;
|
| 1527 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1528 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-kw-02> .
|
| 1529 |
+
|
| 1530 |
+
[] a earl:Assertion ;
|
| 1531 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1532 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1533 |
+
earl:result [ a earl:TestResult ;
|
| 1534 |
+
earl:outcome earl:passed ] ;
|
| 1535 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1536 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-eval-bad-02> .
|
| 1537 |
+
|
| 1538 |
+
[] a earl:Assertion ;
|
| 1539 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1540 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1541 |
+
earl:result [ a earl:TestResult ;
|
| 1542 |
+
earl:outcome earl:passed ] ;
|
| 1543 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1544 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bnode-04> .
|
| 1545 |
+
|
| 1546 |
+
[] a earl:Assertion ;
|
| 1547 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1548 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1549 |
+
earl:result [ a earl:TestResult ;
|
| 1550 |
+
earl:outcome earl:passed ] ;
|
| 1551 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1552 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-base-05> .
|
| 1553 |
+
|
| 1554 |
+
[] a earl:Assertion ;
|
| 1555 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1556 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1557 |
+
earl:result [ a earl:TestResult ;
|
| 1558 |
+
earl:outcome earl:passed ] ;
|
| 1559 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1560 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-uri-03> .
|
| 1561 |
+
|
| 1562 |
+
[] a earl:Assertion ;
|
| 1563 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1564 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1565 |
+
earl:result [ a earl:TestResult ;
|
| 1566 |
+
earl:outcome earl:passed ] ;
|
| 1567 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1568 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-graph-bad-01> .
|
| 1569 |
+
|
| 1570 |
+
[] a earl:Assertion ;
|
| 1571 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1572 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1573 |
+
earl:result [ a earl:TestResult ;
|
| 1574 |
+
earl:outcome earl:passed ] ;
|
| 1575 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1576 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-pname-03> .
|
| 1577 |
+
|
| 1578 |
+
[] a earl:Assertion ;
|
| 1579 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1580 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1581 |
+
earl:result [ a earl:TestResult ;
|
| 1582 |
+
earl:outcome earl:passed ] ;
|
| 1583 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1584 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-prefix-05> .
|
| 1585 |
+
|
| 1586 |
+
[] a earl:Assertion ;
|
| 1587 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1588 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1589 |
+
earl:result [ a earl:TestResult ;
|
| 1590 |
+
earl:outcome earl:passed ] ;
|
| 1591 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1592 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-bad-esc-04> .
|
| 1593 |
+
|
| 1594 |
+
[] a earl:Assertion ;
|
| 1595 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1596 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1597 |
+
earl:result [ a earl:TestResult ;
|
| 1598 |
+
earl:outcome earl:passed ] ;
|
| 1599 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1600 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-syntax-base-03> .
|
| 1601 |
+
|
| 1602 |
+
[] a earl:Assertion ;
|
| 1603 |
+
dc:date "2013-12-22T20:31:52.081600"^^xsd:dateTime ;
|
| 1604 |
+
earl:assertedBy <http://gromgull.net/me> ;
|
| 1605 |
+
earl:result [ a earl:TestResult ;
|
| 1606 |
+
earl:outcome earl:passed ] ;
|
| 1607 |
+
earl:subject <https://github.com/RDFLib/rdflib> ;
|
| 1608 |
+
earl:test <https://dvcs.w3.org/hg/rdf/raw-file/default/trig/tests/manifest.ttl#trig-kw-graph-07> .
|
| 1609 |
+
|
testbed/RDFLib__rdflib/test_reports/rdflib_trig-2013-12-30T15:56:57.ttl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
testbed/RDFLib__rdflib/test_reports/rdflib_turtle-2013-12-22T19:13:51.ttl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
testbed/RDFLib__rdflib/tox.ini
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[tox]
|
| 2 |
+
envlist =
|
| 3 |
+
py27,py34,py35,py36
|
| 4 |
+
|
| 5 |
+
[testenv]
|
| 6 |
+
setenv =
|
| 7 |
+
BERKELEYDB_DIR = /usr
|
| 8 |
+
commands =
|
| 9 |
+
{envpython} setup.py clean --all
|
| 10 |
+
{envpython} setup.py build
|
| 11 |
+
{envpython} run_tests.py --with-xunit
|
| 12 |
+
deps =
|
| 13 |
+
nose
|
| 14 |
+
isodate
|
| 15 |
+
html5lib
|
| 16 |
+
pyparsing
|
| 17 |
+
bsddb3
|
| 18 |
+
six
|
| 19 |
+
SPARQLWrapper>=1.6.2
|
| 20 |
+
|
| 21 |
+
[testenv:cover]
|
| 22 |
+
basepython =
|
| 23 |
+
python2.7
|
| 24 |
+
commands =
|
| 25 |
+
{envpython} run_tests.py --where=./ \
|
| 26 |
+
--with-coverage --cover-html --cover-html-dir=./coverage \
|
| 27 |
+
--cover-package=rdflib --cover-inclusive
|
| 28 |
+
deps =
|
| 29 |
+
coverage
|
| 30 |
+
nose
|
| 31 |
+
isodate
|
| 32 |
+
html5lib
|
| 33 |
+
pyparsing
|
| 34 |
+
bsddb3
|
| 35 |
+
six
|
| 36 |
+
SPARQLWrapper>=1.6.2
|
testbed/Textualize__rich/.github/FUNDING.yml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# These are supported funding model platforms
|
| 2 |
+
|
| 3 |
+
github: willmcgugan
|
| 4 |
+
custom: https://www.willmcgugan.com/sponsorship/
|