Skip to content
Snippets Groups Projects
Commit 24bd174b authored by Frank Lange's avatar Frank Lange
Browse files

#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
@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 :tdb2_dataset ;
fuseki:dataset :text_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
]
) .
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment