Skip to content

Commit

Permalink
Update csvw_parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ThHanke authored Jul 12, 2024
1 parent 4940c66 commit c8a39de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions csvw_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from rdflib import BNode, URIRef, Literal, Graph, Namespace
from rdflib.collection import Collection
from rdflib.util import guess_format
from rdflib.namespace import CSVW, RDF, XSD, PROV, RDFS
from rdflib.namespace import CSVW, RDF, XSD, PROV, RDFS, DC
from datetime import datetime
from urllib.request import urlopen
from urllib.parse import urlparse, unquote
Expand Down Expand Up @@ -309,8 +309,8 @@ def add_table_data(self, g: Graph) -> Graph:
g.add((value_node, RDF.type, OA.Annotation))
g.add((value_node, OA.hasBody, body_node))
g.add((body_node, RDF.type, OA.TextualBody))
g.add((body_node, OA["format"], Literal("text/plain")))
g.add((body_node, OA.value, Literal(cell, datatype=format)))
g.add((body_node, DC.format, Literal("text/plain")))
g.add((body_node, RDF.value, Literal(cell, datatype=format)))

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

0 comments on commit c8a39de

Please sign in to comment.