This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import tarfile | |
| import time | |
| import numpy as np | |
| import six.moves.urllib as urllib | |
| import tensorflow as tf | |
| tf.logging.set_verbosity(tf.logging.INFO) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Grab('com.hp.hpl.jena:jena:2.6.4') | |
| @Grab('com.hp.hpl.jena:arq:2.8.8') | |
| import groovy.sparql.Sparql | |
| // Can also take a Jena model as an argument | |
| def sparql = new Sparql("http://dbpedia.org/sparql") | |
| def query = """ | |
| SELECT ?abstract |