~ubuntu-branches/ubuntu/quantal/zeitgeist/quantal

« back to all changes in this revision

Viewing changes to extra/PythonSerializer.py

* New upstream release. Some of the changes are:
   - Various performance improvements (speed, reduced I/O, etc).
   - Enhancements to the extensions system (eg. feature to ask which
     extensions are active).
   - Various bug fixes (eg. fixed find_event_for_template Python API method).
   - Added new mimetype mappings.
* Updated debian/copyright and debian/zeitgeist-core.install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#
7
7
# This program is free software: you can redistribute it and/or modify
8
8
# it under the terms of the GNU Lesser General Public License as published by
9
 
# the Free Software Foundation, either version 3 of the License, or
 
9
# the Free Software Foundation, either version 2.1 of the License, or
10
10
# (at your option) any later version.
11
11
#
12
12
# This program is distributed in the hope that it will be useful,
17
17
# You should have received a copy of the GNU Lesser General Public License
18
18
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
 
from rdflib.syntax.serializers.RecursiveSerializer import RecursiveSerializer
 
20
try:
 
21
        #rdflib2
 
22
        from rdflib.syntax.serializers.RecursiveSerializer import RecursiveSerializer
 
23
        from rdflib.Namespace import Namespace
 
24
except ImportError:
 
25
        #rdflib3 (LP: #626224)
 
26
        from rdflib.plugins.serializers.turtle import RecursiveSerializer
 
27
        from rdflib.namespace import Namespace
 
28
 
21
29
from rdflib import RDF, RDFS
22
 
from rdflib.Namespace import Namespace
23
30
 
24
31
NIENS = Namespace("http://www.semanticdesktop.org/ontologies/2007/01/19/nie#")
25
32