#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Maintainer: Michael Petychakis <mpetyx@epu.ntua.gr>

"""
Run the pyrif lib testing locally
"""

import sys
sys.path.insert(0,"/Users/ivan/Library/Python")

# You may want to adapt this to your environment...
import sys, getopt

from pyMicrodata import pyMicrodata, __version__

###########################################

test_path      = "/Users/ivan/W3C/github/microdata-rdf/tests/"
test_file_base = test_path + ("%04d" % int(sys.argv[1]))
#test_file_base = test_path + ("sdo_eg_md_%d" % int(sys.argv[1]))
test_html = test_file_base + ".html"
test_ttl  = test_file_base + ".ttl"

processor = pyMicrodata()
print processor.rdf_from_source(test_html)
print "----"
with open(test_ttl) as f :
	for l in f:
		print l,

print "----"
with open(test_html) as f :
	for l in f:
		print l,
