1
0
mirror of https://github.com/gsi-upm/sitc synced 2024-10-31 21:31:43 +00:00
sitc/lod/validate.py

7 lines
184 B
Python
Raw Normal View History

2017-02-21 17:02:21 +00:00
import rdflib
import sys
g = rdflib.Graph()
dataset = sys.argv[1] if len(sys.argv) > 1 else 'reviews.ttl'
g.parse(dataset, format="n3")
print(g.serialize(format="n3").decode('utf-8'))