Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Dec 19, 2022
1 parent 2e43510 commit 74c21d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example/app/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import rdflib
from rdflib import ConjunctiveGraph, RDF, Literal, URIRef, RDFS
from rdflib import RDF, RDFS, ConjunctiveGraph, Literal, URIRef
from rdflib.plugins.sparql.evalutils import _eval

from rdflib_endpoint import SparqlEndpoint
Expand Down
12 changes: 4 additions & 8 deletions tests/test_oxrdflib.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
from fastapi.testclient import TestClient
from rdflib import Graph, RDF, Literal, URIRef, RDFS
import urllib.parse

from example.app.main import custom_concat
from fastapi.testclient import TestClient
from rdflib import RDF, RDFS, Graph, Literal, URIRef

from rdflib_endpoint import SparqlEndpoint

g = Graph(store="Oxigraph")
g.add((URIRef('http://subject'), RDF.type, URIRef('http://object')))
g.add((URIRef('http://subject'), RDFS.label, Literal('test value')))


app = SparqlEndpoint(
graph=g
)
app = SparqlEndpoint(graph=g)

endpoint = TestClient(app)

Expand Down Expand Up @@ -43,7 +41,6 @@ def test_custom_concat_json():
assert response.json()["results"]["bindings"][0]["label"]["value"] == "test value"



def test_select_noaccept_xml():
response = endpoint.post("/sparql", data="query=" + label_select)
assert response.status_code == 200
Expand Down Expand Up @@ -99,7 +96,6 @@ def test_redirect():
}"""



label_construct = """PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
CONSTRUCT {
<http://test> <http://label> ?label .
Expand Down

0 comments on commit 74c21d2

Please sign in to comment.