Debian Codegraph @

src/pyRdfa/rdfs/__init__.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2 """
3 Separate module to handle vocabulary expansions. The L{cache} module takes care of caching vocabulary graphs; the L{process}
4 module takes care of the expansion itself.
5
6 @organization: U{World Wide Web Consortium<http://www.w3.org>}
7 @author: U{Ivan Herman<a href="http://www.w3.org/People/Ivan/">}
8 @license: This software is available for use under the
9 U{W3C® SOFTWARE NOTICE AND LICENSE<href="http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231">}
10
11 """
12
13 """
14 $Id: __init__.py,v 1.4 2012/08/20 13:15:28 ivan Exp $ $Date: 2012/08/20 13:15:28 $
15
16 """
17
18 import sys
19 import os
20
21 import rdflib
22 from rdflib import URIRef
23 from rdflib import Literal
24 from rdflib import BNode
25 from rdflib import Namespace
26 from rdflib import RDF as ns_rdf
27 from rdflib import RDFS as ns_rdfs
28 from rdflib import Graph
29
30 from .. import RDFaError, pyRdfaError
31 from .. import ns_rdfa, ns_xsd, ns_distill
32
33 VocabCachingInfo = ns_distill["VocabCachingInfo"]
34
35
36 # Error message texts
37
38 err_outdated_cache = "Vocab document <%s> could not be dereferenced; using possibly outdated cache"
39 err_unreachable_vocab = "Vocab document <%s> could not be dereferenced"
40 err_unparsable_Turtle_vocab = "Could not parse vocab in Turtle at <%s> (%s)"
41 err_unparsable_xml_vocab = "Could not parse vocab in RDF/XML at <%s> (%s)"
42 err_unparsable_ntriples_vocab = "Could not parse vocab in N-Triple at <%s> (%s)"
43 err_unparsable_rdfa_vocab = "Could not parse vocab in RDFa at <%s> (%s)"
44 err_unrecognised_vocab_type = "Unrecognized media type for the vocab file <%s>: '%s'"
45