mirror of https://github.com/gsi-upm/sitc
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
184 B
Python
7 lines
184 B
Python
7 years ago
|
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'))
|