File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 3636 </info >
3737 <namespaces >
3838 <namespace prefix =" rdfs" uri =" http://www.w3.org/2000/01/rdf-schema#" />
39+ <namespace prefix =" rdf" uri =" http://www.w3.org/1999/02/22-rdf-syntax-ns#" />
40+ <namespace prefix =" skos" uri =" http://www.w3.org/2004/02/skos/core#" />
3941 <namespace prefix =" xsd" uri =" http://www.w3.org/2001/XMLSchema#" />
4042 <namespace prefix =" crm" uri =" http://www.cidoc-crm.org/cidoc-crm/" />
4143 <namespace prefix =" lido" uri =" http://www.lido-schema.org/" />
Original file line number Diff line number Diff line change 77
88def graphFromFile (file_path ):
99 graph = rdflib .Graph ()
10- graph .namespace_manager .bind ('crm' , rdflib .URIRef (
11- 'http://www.cidoc-crm.org/cidoc-crm/' ))
12- graph .namespace_manager .bind ('skos' , rdflib .URIRef (
13- 'http://www.w3.org/2004/02/skos/core#' ))
10+ graph .namespace_manager .bind ('crm' , rdflib .URIRef ('http://www.cidoc-crm.org/cidoc-crm/' ))
11+ graph .namespace_manager .bind ('skos' , rdflib .URIRef ('http://www.w3.org/2004/02/skos/core#' ))
12+ graph .namespace_manager .bind ('rdf' , rdflib .URIRef ('http://www.w3.org/1999/02/22-rdf-syntax-ns#' ))
1413 graph .parse (file_path )
1514 return graph
1615
Original file line number Diff line number Diff line change 1010 'lido' : 'http://www.lido-schema.org' ,
1111 'gml' : 'http://www.opengis.net/gml' ,
1212 'skos' : 'http://www.w3.org/2004/02/skos/core#' ,
13- 'xml' : 'http://www.w3.org/XML/1998/namespace'
13+ 'xml' : 'http://www.w3.org/XML/1998/namespace' ,
14+ 'rdf' : 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
1415}
1516
1617
You can’t perform that action at this time.
0 commit comments