Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ch-sander committed Aug 25, 2024
1 parent 12e50bc commit af2a8d0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ DEBUG=1
# File path settings
FTS_FILEPATH=/data/fts
RDF2VEC_FILEPATH=/data/vec
STORE_PATH=
STORE_PATH=/store

# Data load paths
DATA_LOAD_PATHS=/data/ttl/

# Scheme and domain for the service
SCHEME=http://
DOMAIN=xmlns.com
DOMAIN=192.168.177.145
SITE_URI=http://192.168.177.145:8000/

# Path to terminology box (i.e. ontology)
TBOX_PATH=/data/ttl/g17.ttl
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ services:
- FTS_FILEPATH=${FTS_FILEPATH}
- RDF2VEC_FILEPATH=${RDF2VEC_FILEPATH}
- DATA_LOAD_PATHS=${DATA_LOAD_PATHS}
# - SCHEME=${SCHEME}
# - DOMAIN=${DOMAIN}
- SCHEME=${SCHEME}
- DOMAIN=${DOMAIN}
# - TBOX_PATH=${TBOX_PATH}
# - STORE_PATH=${STORE_PATH}
# - PREFIXES_FILEPATH=${PREFIXES_FILEPATH}
Expand Down
4 changes: 2 additions & 2 deletions src/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ async def sparql_get(
if FTS_FILEPATH or RDF2VEC_FILEPATH:
query = fizzysearch.rewrite(query)

result = GRAPH.query(query)
result = GRAPH.query(query) # add default union here ?

new_result = OxigraphSerialization(result)

Expand Down Expand Up @@ -378,7 +378,7 @@ async def shmarql(
if s == "?s" and p == "?p" and o == "?o":
r = GRAPH.query(
"SELECT ?p (COUNT(DISTINCT ?s) as ?o) WHERE { ?s ?p ?object . } GROUP BY ?p ORDER BY DESC(?o)"
)
) # add default union here ?
results = OxigraphSerialization(r).json()
else:
sss, ppp, ooo = str_to_term(s), str_to_term(p), str_to_term(o)
Expand Down

0 comments on commit af2a8d0

Please sign in to comment.