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
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
24bd174b
Commit
24bd174b
authored
10 months ago
by
Frank Lange
Browse files
Options
Downloads
Patches
Plain Diff
#2
: add text indexing to "dalia" dataset
parent
24b8fd86
No related branches found
No related tags found
No related merge requests found
Pipeline
#1316845
passed
10 months ago
Stage: download
Stage: container
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/dalia.ttl
+72
-6
72 additions, 6 deletions
config/dalia.ttl
scripts/docker-entrypoint.sh
+1
-1
1 addition, 1 deletion
scripts/docker-entrypoint.sh
with
73 additions
and
7 deletions
config/dalia.ttl
+
72
−
6
View file @
24bd174b
@prefix
:
<http://base/#>
.
@prefix
fuseki:
<http://jena.apache.org/fuseki#>
.
@prefix
ja:
<http://jena.hpl.hp.com/2005/11/Assembler#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
tdb2:
<http://jena.apache.org/2016/tdb#>
.
@prefix
:
<http://base/#>
.
@prefix
dcterms:
<http://purl.org/dc/terms/>
.
@prefix
dt:
<http://dalia.education/text#>
.
@prefix
fuseki:
<http://jena.apache.org/fuseki#>
.
@prefix
ja:
<http://jena.hpl.hp.com/2005/11/Assembler#>
.
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
schema:
<https://schema.org/>
.
@prefix
tdb2:
<http://jena.apache.org/2016/tdb#>
.
@prefix
text:
<http://jena.apache.org/text#>
.
:
service_tdb_all
a
fuseki:
Service
;
fuseki:
name
"dalia"
;
rdfs:
label
"DALIA dataset"
;
fuseki:
dataset
:
t
db2
_dataset
;
fuseki:
dataset
:
t
ext
_dataset
;
# endpoint /dalia/
# SPARQL Query Language, SPARQL Update and SPARQL Graph Store HTTP Protocol (read+write)
...
...
@@ -56,5 +60,67 @@
fuseki:
operation
fuseki:
gsp-rw
]
.
:
text_dataset
a
text:
TextDataset
;
text:
dataset
:
tdb2_dataset
;
text:
index
:
indexLucene
.
:
tdb2_dataset
a
tdb2:
DatasetTDB2
;
tdb2:
location
"/database/databases/dalia/tdb2"
.
:
indexLucene
a
text:
TextIndexLucene
;
text:
directory
<file:/database/databases/dalia/lucene>
;
text:
entityMap
:
entMap
;
text:
storeValues
true
;
text:
propLists
(
[
text:
propListProp
dt:
learningResourceTexts
;
text:
props
(
dcterms:
title
dcterms:
description
schema:
keywords
schema:
name
schema:
familyName
schema:
givenName
)
]
[
text:
propListProp
dt:
communityTexts
;
text:
props
(
dcterms:
title
dcterms:
description
)
]
)
.
:
entMap
a
text:
EntityMap
;
text:
defaultField
"dctermsTitle"
;
text:
entityField
"uri"
;
text:
uidField
"uid"
;
text:
langField
"lang"
;
text:
graphField
"graph"
;
text:
map
(
[
text:
field
"dctermsTitle"
;
text:
predicate
dcterms:
title
]
[
text:
field
"dctermsDescription"
;
text:
predicate
dcterms:
description
]
[
text:
field
"schemaKeywords"
;
text:
predicate
schema:
keywords
]
[
text:
field
"schemaName"
;
text:
predicate
schema:
name
]
[
text:
field
"schemaFamilyName"
;
text:
predicate
schema:
familyName
]
[
text:
field
"schemaGivenName"
;
text:
predicate
schema:
givenName
]
)
.
This diff is collapsed.
Click to expand it.
scripts/docker-entrypoint.sh
+
1
−
1
View file @
24bd174b
...
...
@@ -16,7 +16,7 @@ cp $CONFIG_TEMPLATES_DIR/ontologies.ttl $FUSEKI_BASE/configuration
#
rm
-Rf
$FUSEKI_BASE
/databases/dalia
find
$DALIA_DATA_DIR
\(
-iname
"*.ttl"
-o
-iname
"*.rdf"
-o
-iname
"*.owl"
\)
-type
f
-exec
$SCRIPTS_DIR
/load.sh
$FUSEKI_BASE
/configuration/dalia.ttl
{}
\;
#
$SCRIPTS_DIR/textindex.sh $FUSEKI_BASE/configuration/dalia.ttl
$SCRIPTS_DIR
/textindex.sh
$FUSEKI_BASE
/configuration/dalia.ttl
#
# (Re-)create ontologies dataset, insert RDF data from $ONTOLOGIES_DIR and build a
...
...
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