Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fuseki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dalia
Backend
Fuseki
Commits
0cec64ab
Commit
0cec64ab
authored
1 year ago
by
Frank Lange
Browse files
Options
Downloads
Patches
Plain Diff
remove dfgfo from loaded ontologies
parent
b638dabc
No related branches found
No related tags found
No related merge requests found
Pipeline
#1311576
passed
1 year ago
Stage: download-modalia
Stage: container
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+0
-7
0 additions, 7 deletions
Dockerfile
tests/.gitignore
+1
-1
1 addition, 1 deletion
tests/.gitignore
tests/test_ontologies_dataset.py
+0
-54
0 additions, 54 deletions
tests/test_ontologies_dataset.py
with
1 addition
and
62 deletions
Dockerfile
+
0
−
7
View file @
0cec64ab
...
...
@@ -51,13 +51,6 @@ RUN \
set
-ex
&&
\
echo
"33beedfa0b8a51417e22a15dfd237169d98868bde8fb59f29ee447c0ed1d4972 MoDalia.ttl"
|
sha256sum
--status
-c
RUN
\
set
-ex
&&
\
# DFG Fachsystematik Ontology / DFG Classification of Subject Areas Ontology
# see https://github.com/tibonto/DFG-Fachsystematik-Ontology
wget --no-verbose https://raw.githubusercontent.com/tibonto/DFG-Fachsystematik-Ontology/b6e9983bc1eb33aeab034dd27f5f08cff227ff0f/dfgfo.ttl && \
echo "0b168a90bc3fcb10457b2bd98b5969b2fd972725481bcc8aad149dd4f446be74 dfgfo.ttl" | sha256sum --status -c
#
# Copy config templates
#
...
...
This diff is collapsed.
Click to expand it.
tests/.gitignore
+
1
−
1
View file @
0cec64ab
.env
.pytest_cache
__pycache__
.idea
\ No newline at end of file
.idea
This diff is collapsed.
Click to expand it.
tests/test_ontologies_dataset.py
+
0
−
54
View file @
0cec64ab
...
...
@@ -8,60 +8,6 @@ DATASET_NAME = "ontologies"
class
TestOntologiesDataset
:
def
test_text_search
(
self
,
fuseki_url
):
endpoint
=
f
"
{
fuseki_url
}
/
{
DATASET_NAME
}
"
store
=
SPARQLStore
(
query_endpoint
=
endpoint
)
result
=
store
.
query
(
"""
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX text: <http://jena.apache.org/text#>
SELECT ?uri ?score ?label
WHERE {
(?uri ?score) text:query (rdfs:label
'
ancient history
'
) .
?uri rdfs:label ?label .
}
ORDER BY DESC(?score)
"""
)
assert
len
(
result
)
==
14
assert
list
(
map
(
lambda
item
:
str
(
item
.
label
),
list
(
result
)))
==
[
'
Ancient History
'
,
'
Ancient Cultures
'
,
'
History
'
,
'
Art History
'
,
'
Medieval History
'
,
'
Egyptology and Ancient Near Eastern Studies
'
,
'
Early Modern History
'
,
'
History of Philosophy
'
,
'
History of Science
'
,
'
Economic and Social History
'
,
'
Modern and Current History
'
,
'
General Education and History of Education
'
,
'
Art History, Music, Theatre and Media Studies
'
,
'
Architecture, Building and Construction History, Construction Research, Sustainable Building Technology
'
]
result
=
store
.
query
(
"""
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX text: <http://jena.apache.org/text#>
SELECT ?uri ?score ?label
WHERE {
(?uri ?score) text:query (skos:altLabel
'
Alte Geschichte
'
) .
?uri skos:altLabel ?label .
}
ORDER BY DESC(?score)
"""
)
assert
len
(
result
)
==
6
assert
list
(
map
(
lambda
item
:
str
(
item
.
label
),
list
(
result
)))
==
[
'
Alte Geschichte
'
,
'
Alte Kulturen
'
,
'
Frühneuzeitliche Geschichte
'
,
'
Mittelalterliche Geschichte
'
,
'
Geschichte der Philosophie
'
,
'
Neuere und Neueste Geschichte (einschl. Europäische Geschichte der Neuzeit und Außereuropäische Geschichte)
'
]
@pytest.mark.parametrize
(
"
endpoint_name
"
,
[
""
,
"
query
"
,
"
sparql
"
,
"
get
"
])
def
test_dataset_is_not_writeable_with_gsp
(
self
,
fuseki_url
,
endpoint_name
):
assert
cannot_use_gsp_write
(
fuseki_url
,
DATASET_NAME
,
endpoint_name
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment