Skip to content

Instantly share code, notes, and snippets.

@balkian
Created July 2, 2014 15:01
Show Gist options
  • Save balkian/f2336b4263cc7fa4db91 to your computer and use it in GitHub Desktop.
Save balkian/f2336b4263cc7fa4db91 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
from rdflib import Graph, plugin
from rdflib.serializer import Serializer
import sys
g = Graph().parse(sys.argv[1], format='json-ld')
print "Hooray! It seems to be a valid json-ld file!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment