Spaces:
Sleeping
Sleeping
update
Browse files- app.py +3 -3
- 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
|
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
|
|
|
|
|
|
|
|