This file is indexed.

/usr/share/doc/python-rdflib-doc/html/_sources/upgrade2to3.txt is in python-rdflib-doc 4.1.2-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.. _upgrade2to3: Upgrading from RDFLib version 2.X to 3.X

========================================
Upgrading from RDFLib version 2.X to 3.X
========================================

Introduction
============
This page details the changes required to upgrade from RDFLib 2.X to 3.X. 

Some older Linux distributions still ship 2.4.X. If needed, you can also install 2.4 using easy_install/setup tools.

Version 3.0 reorganised some packages, and moved non-core parts of rdflib to the `rdfextras project <http://code.google.com/p/rdfextras/>`_


Features moved to rdfextras
===========================

  * SPARQL Support is now in rdfextras / rdflib-sparql
  * The RDF Commandline tools are now in rdfextras
 
.. warning:: If you install packages with just distutils - you will need to register the sparql plugins manually - we strongly recommend installing with setuptools or distribute!
  To register the plugins add this somewhere in your program:

  .. code-block:: python 

        rdflib.plugin.register('sparql', rdflib.query.Processor,
                           'rdfextras.sparql.processor', 'Processor')
        rdflib.plugin.register('sparql', rdflib.query.Result,
                           'rdfextras.sparql.query', 'SPARQLQueryResult')


Unstable features that were removed
===================================

 The RDBMS back stores (MySQL/PostgreSQL) were removed, but are in the process of being moved to rdfextras. The Redland, SQLite and ZODB stores were all removed. 

Packages/Classes that were renamed
==================================

Previously all packages and classes had colliding names, i.e. both package and the class was called "Graph"::

    from rdflib.Graph import Graph, ConjunctiveGraph 

Now all packages are lower-case, i.e::

    from rdflib.graph import Graph, ConjunctiveGraph

Most classes you need are available from the top level rdflib package::

    from rdflib import Graph, URIRef, BNode, Literal

Namespace classes for RDF, RDFS, OWL are now directly in the rdflib package, i.e. in 2.4::

    from rdflib.RDF import RDFNS as RDF

in 3.0::

    from rdflib import RDF