david4096 commited on
Commit
08567a8
·
1 Parent(s): 57aa8c0
Files changed (2) hide show
  1. app.py +3 -3
  2. huggingface.ttl +0 -3
app.py CHANGED
@@ -3,7 +3,7 @@ import rdflib
3
 
4
  # Load the Turtle file and initialize the graph
5
  g = rdflib.Graph()
6
- g.parse('huggingface.ttl')
7
 
8
  # Define the function to execute the SPARQL query
9
  def run_sparql(query):
@@ -27,8 +27,8 @@ demo = gr.Interface(
27
  fn=run_sparql,
28
  inputs=query_input,
29
  outputs=output_text,
30
- title="Hugging Face Datasets SPARQL Query Interface",
31
- description="Enter a SPARQL query to retrieve data from the Turtle file. Generated by [huggingface-rdf](https://github.com/david4096/huggingface-rdf). [Download the turtle file locally](https://github.com/david4096/huggingface-rdf/releases/download/data-release/huggingface.ttl) and load it into your [favorite triple store](https://github.com/david4096/huggingface-rdf/tree/main/qlever_scripts)!",
32
  )
33
 
34
  if __name__ == "__main__":
 
3
 
4
  # Load the Turtle file and initialize the graph
5
  g = rdflib.Graph()
6
+ g.parse('huggingface-30k.ttl')
7
 
8
  # Define the function to execute the SPARQL query
9
  def run_sparql(query):
 
27
  fn=run_sparql,
28
  inputs=query_input,
29
  outputs=output_text,
30
+ title="Hugging Face Datasets SPARQL Query Interface (medium subset)",
31
+ description="Enter a SPARQL query to retrieve data from 30k Hugging Face datasets. Generated by [huggingface-rdf](https://github.com/david4096/huggingface-rdf). [Download the turtle file locally](https://huggingface.co/datasets/david4096/huggingface-ttl/resolve/main/huggingface-30k.ttl?download=true) and load it into your [favorite triple store](https://github.com/david4096/huggingface-rdf/tree/main/qlever_scripts)!",
32
  )
33
 
34
  if __name__ == "__main__":
huggingface.ttl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b427f632d71c69ffc8a820689d3ffc0ecd764aa9af7920b57c69afb3c366655f
3
- size 22698390