<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/rdflib.git/test/n3, branch sdo-https</title>
<subtitle>github.com: rdflib/rdflib.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/'/>
<entry>
<title>namespace.py serializers/rdfxml.py stric qnames</title>
<updated>2020-03-13T02:32:03+00:00</updated>
<author>
<name>Tom Gillespie</name>
<email>tgbugs@gmail.com</email>
</author>
<published>2018-05-14T23:03:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=d6883c4c460d0a6338a2d477fe63b34fb702be6e'/>
<id>d6883c4c460d0a6338a2d477fe63b34fb702be6e</id>
<content type='text'>
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).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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).
</pre>
</div>
</content>
</entry>
<entry>
<title>test added n3 to roundtrip tests</title>
<updated>2020-03-13T02:28:57+00:00</updated>
<author>
<name>Tom Gillespie</name>
<email>tgbugs@gmail.com</email>
</author>
<published>2018-05-14T19:40:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=cb16d305f1ae5c9b515812a82bd4fde8fd4f235b'/>
<id>cb16d305f1ae5c9b515812a82bd4fde8fd4f235b</id>
<content type='text'>
These tests make it possible to catch issues with xml
serialization of qnames.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These tests make it possible to catch issues with xml
serialization of qnames.
</pre>
</div>
</content>
</entry>
<entry>
<title>replace foaf:surname (deprecated) with foaf:familyName in examples and tests</title>
<updated>2020-03-06T05:42:09+00:00</updated>
<author>
<name>Nicholas Car</name>
<email>nicholas.car@csiro.au</email>
</author>
<published>2020-03-06T05:42:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=50687937f3b9bddf5687d44e603fe62277f00615'/>
<id>50687937f3b9bddf5687d44e603fe62277f00615</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add notation 3 quoted string test, suppress failing parse of escaped characters.</title>
<updated>2011-10-26T02:15:54+00:00</updated>
<author>
<name>Graham Higgins</name>
<email>gjh@bel-epa.com</email>
</author>
<published>2011-10-26T02:15:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=cf4f3386076b9f42bd297c787c78c7b73ad93a59'/>
<id>cf4f3386076b9f42bd297c787c78c7b73ad93a59</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Recruit another notation3 string test.</title>
<updated>2011-10-25T21:16:40+00:00</updated>
<author>
<name>Graham Higgins</name>
<email>gjh@bel-epa.com</email>
</author>
<published>2011-10-25T21:16:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=dae4744cd8767cc89c6937153aae3456c9d6521b'/>
<id>dae4744cd8767cc89c6937153aae3456c9d6521b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix from Rob Sanderson so that n3/turtle parser does not choke on UTF-8 BOM (Fixes issue 156)</title>
<updated>2011-01-05T17:49:53+00:00</updated>
<author>
<name>ed.summers</name>
<email>devnull@localhost</email>
</author>
<published>2011-01-05T17:49:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=ac7d06f7952bf76c14f79abb64b1239071ab2212'/>
<id>ac7d06f7952bf76c14f79abb64b1239071ab2212</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>added ntriples tests, and fixed issue 18</title>
<updated>2010-02-02T23:30:05+00:00</updated>
<author>
<name>gromgull</name>
<email>devnull@localhost</email>
</author>
<published>2010-02-02T23:30:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=cc381b88e3529aeb39b3ef600f1e93e2882121b2'/>
<id>cc381b88e3529aeb39b3ef600f1e93e2882121b2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fairly big revision of the Turtle and N3 serializers, including:</title>
<updated>2009-09-09T00:01:00+00:00</updated>
<author>
<name>lindstream</name>
<email>devnull@localhost</email>
</author>
<published>2009-09-09T00:01:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=697686db5c11d6bb84947b3da60237a71d2ea848'/>
<id>697686db5c11d6bb84947b3da60237a71d2ea848</id>
<content type='text'>
- 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 "=&gt;" 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 ("=", "=&gt;") supported by N3 but not by Turtle).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 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 "=&gt;" 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 ("=", "=&gt;") supported by N3 but not by Turtle).
</pre>
</div>
</content>
</entry>
<entry>
<title>Added n3 writing tests</title>
<updated>2006-08-08T19:40:31+00:00</updated>
<author>
<name>gromgull</name>
<email>devnull@localhost</email>
</author>
<published>2006-08-08T19:40:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/rdflib.git/commit/?id=056d35b47f5eac101501a20cf7c8e67b633a89f4'/>
<id>056d35b47f5eac101501a20cf7c8e67b633a89f4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
