src/p4l/mapping/constants.py
changeset 132 b23fae63f732
parent 131 f1854630734f
equal deleted inserted replaced
131:f1854630734f 132:b23fae63f732
    31 # knowledge of the CeCILL-B license and that you accept its terms.
    31 # knowledge of the CeCILL-B license and that you accept its terms.
    32 #
    32 #
    33 
    33 
    34 
    34 
    35 from rdflib.graph import Graph
    35 from rdflib.graph import Graph
    36 from rdflib.namespace import Namespace, RDF
    36 from rdflib.namespace import Namespace, RDF, RDFS
    37 
    37 
    38 
    38 
    39 DCT = Namespace("http://purl.org/dc/terms/")
    39 DCT = Namespace("http://purl.org/dc/terms/")
    40 IIEP = Namespace("http://www.iiep.unesco.org/plan4learning/model.owl#")
    40 IIEP = Namespace("http://www.iiep.unesco.org/plan4learning/model.owl#")
    41 UNESCO = Namespace("http://www.iiep.unesco.org/Ontology/")
    41 UNESCO = Namespace("http://www.iiep.unesco.org/Ontology/")
    42 
    42 
    43 GRAPH_NAMESPACES = {
    43 GRAPH_NAMESPACES = {
    44     'iiep': IIEP,
    44     'iiep': IIEP,
    45     'dct': DCT,
    45     'dct': DCT,
    46     'rdf': RDF
    46     'rdf': RDF,
       
    47     'rdfs': RDFS
    47 }
    48 }
    48 
    49 
    49 def get_empty_graph():
    50 def get_empty_graph():
    50     record_graph = Graph()
    51     record_graph = Graph()
    51     for prefix,uri in GRAPH_NAMESPACES.items():
    52     for prefix,uri in GRAPH_NAMESPACES.items():