Skip to content

Commit 2b51f00

Browse files
author
Thomas Hanke
committed
Merge branch 'main' of github.com:Mat-O-Lab/CSVToCSVW
2 parents 792fc85 + d69ed6f commit 2b51f00

File tree

5 files changed

+144508
-144507
lines changed

5 files changed

+144508
-144507
lines changed

csvw_parser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from rdflib import BNode, URIRef, Literal, Graph, Namespace
55
from rdflib.collection import Collection
66
from rdflib.util import guess_format
7-
from rdflib.namespace import CSVW, RDF, XSD, PROV, RDFS
7+
from rdflib.namespace import CSVW, RDF, XSD, PROV, RDFS, DC
88
from datetime import datetime
99
from urllib.request import urlopen
1010
from urllib.parse import urlparse, unquote
@@ -309,8 +309,8 @@ def add_table_data(self, g: Graph) -> Graph:
309309
g.add((value_node, RDF.type, OA.Annotation))
310310
g.add((value_node, OA.hasBody, body_node))
311311
g.add((body_node, RDF.type, OA.TextualBody))
312-
g.add((body_node, OA["format"], Literal("text/plain")))
313-
g.add((body_node, OA.value, Literal(cell, datatype=format)))
312+
g.add((body_node, DC.format, Literal("text/plain")))
313+
g.add((body_node, RDF.value, Literal(cell, datatype=format)))
314314

315315
# if isinstance(column,URIRef) and str(self.meta_root)!='file:///src/': #has proper uri
316316
# g.add((value_node, column, Literal(cell)))

0 commit comments

Comments
 (0)