summaryrefslogtreecommitdiff
path: root/test/n3
Commit message (Collapse)AuthorAgeFilesLines
* namespace.py serializers/rdfxml.py stric qnamesTom Gillespie2020-03-122-0/+27
| | | | | | | | | The rdfxml serializer relied on namespace.py compute_qname to enforce qname correctness. Chagnging split characteristics to support n3 prefixes broke that assumption. This commit is a first pass at fixing the behvior. It may be worth renaming functions to make it clear that the current 'compute_qname' function is no longer actually computing a qname but a n3 prefix (or something like that).
* test added n3 to roundtrip testsTom Gillespie2020-03-121-0/+10
| | | | | These tests make it possible to catch issues with xml serialization of qnames.
* replace foaf:surname (deprecated) with foaf:familyName in examples and testsNicholas Car2020-03-061-1/+1
|
* Add notation 3 quoted string test, suppress failing parse of escaped characters.Graham Higgins2011-10-261-4/+2
|
* Recruit another notation3 string test.Graham Higgins2011-10-251-0/+24
|
* fix from Rob Sanderson so that n3/turtle parser does not choke on UTF-8 BOM ↵ed.summers2011-01-051-0/+3
| | | | (Fixes issue 156)
* added ntriples tests, and fixed issue 18gromgull2010-02-022-0/+32
|
* Fairly big revision of the Turtle and N3 serializers, including:lindstream2009-09-094-0/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | - only generate prefixes for predicates (thus much less gratuitous); - use prefix if bound uri is used as subject or object (common in ontologies); - prefixes are used for datatypes (if bound in the graph); - integer and float literals are outputted as is (as supported by turtle and n3); - prepared to use plain boolean literals in place (not active since the n3 parser doesn't yet support those..); - for "rdf:nil" (the empty list), "()" is used; - for n3 only, "=" is used for "owl:sameAs", and "=>" for log:implies; - 4 space indents (not 5) and no spurious trailing spaces; - space before periods; - no newline before @prefix declarations, one after; - added serializer flag "spacious" (defaults to False); if True: - use two newlines after prefix declarations - one extra newline at end of document - top-level bnodes as "[]" instead of surrounding statements; - nested bnodes start with "[ ", ends with " ]"; - some space/indent tweaks for n3 graph literals . Changes to other parts: - Added some more n3 test files and altered some n3 test code. - The "n3()" method of "term.Literal" now uses the new "_literal_n3" method, which takes some optional parameters and is used directly by the turtle+n3 serializers. - Added a bunch of doctests in Literal's "n3" and "_literal_n3". - Registered "turtle" as a serialization format (due to the tokens ("=", "=>") supported by N3 but not by Turtle).
* Added n3 writing testsgromgull2006-08-0850-0/+458