Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Mat-O-Lab/CSVToCSVW
Browse files Browse the repository at this point in the history
Thomas Hanke committed Aug 26, 2024
2 parents 792fc85 + d69ed6f commit 2b51f00
Showing 5 changed files with 144,508 additions and 144,507 deletions.
6 changes: 3 additions & 3 deletions csvw_parser.py
Original file line number Diff line number Diff line change
@@ -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
@@ -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)))
264,264 changes: 132,132 additions & 132,132 deletions examples/example.ttl

Large diffs are not rendered by default.

24,220 changes: 12,110 additions & 12,110 deletions examples/example2.ttl

Large diffs are not rendered by default.

523 changes: 262 additions & 261 deletions examples/example5.ttl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion settings.py
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ class Setting(BaseSettings):
app_name: str = "CSVtoCSVW"
admin_email: str = os.environ.get("ADMIN_MAIL") or "csvtocsvw@matolab.org"
items_per_user: int = 50
version: str = "v1.3.0"
version: str = "v1.3.2"
config_name: str = os.environ.get("APP_MODE") or "development"
openapi_url: str = "/api/openapi.json"
docs_url: str = "/api/docs"

0 comments on commit 2b51f00

Please sign in to comment.