-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
211 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
## Folder placeholder | ||
# Folder placeholder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
## Folder placeholder | ||
# Folder placeholder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
## Folder placeholder | ||
# Folder placeholder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
@prefix : <http://localhost/jena_example/#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix tdb2: <http://jena.apache.org/2016/tdb#> . | ||
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . | ||
@prefix text: <http://jena.apache.org/text#> . | ||
@prefix fuseki: <http://jena.apache.org/fuseki#> . | ||
@prefix meshv: <http://id.nlm.nih.gov/mesh/vocab#> . | ||
@prefix mesht: <http://www.medvik.cz/schema/mesh/vocab/#> . | ||
|
||
### Version 1.5.0 for Jena v5 | ||
|
||
## Initialize text query | ||
[] ja:loadClass "org.apache.jena.query.text.TextQuery" . | ||
# A TextDataset is a regular dataset with a text index. | ||
text:TextDataset rdfs:subClassOf ja:RDFDataset . | ||
# Lucene index | ||
text:TextIndexLucene rdfs:subClassOf text:TextIndex . | ||
# Elasticsearch index | ||
text:TextIndexES rdfs:subClassOf text:TextIndex . | ||
|
||
## --------------------------------------------------------------- | ||
## This URI must be fixed - it's used to assemble the text dataset. | ||
|
||
:text_dataset | ||
a text:TextDataset ; | ||
text:dataset <#dataset> ; | ||
text:index <#indexLucene> ; | ||
. | ||
|
||
# A TDB dataset used for RDF storage | ||
<#dataset> | ||
a tdb2:DatasetTDB2 ; | ||
tdb2:location "d:/Data/jena5/databases/mesh" ; | ||
. | ||
|
||
# Text index description | ||
<#indexLucene> | ||
a text:TextIndexLucene ; | ||
text:directory "d:/Data/jena5/indexes/mesh" ; | ||
text:entityMap <#entMap> ; | ||
text:storeValues false ; | ||
## text:analyzer[ a text:StandardAnalyzer ] ; | ||
text:analyzer [ | ||
a text:ConfigurableAnalyzer ; | ||
text:tokenizer text:StandardTokenizer ; | ||
text:filters ( | ||
text:ASCIIFoldingFilter | ||
text:LowerCaseFilter | ||
# text:PorterStemFilter | ||
) | ||
] ; | ||
## text:queryAnalyzer [ a text:KeywordAnalyzer ] ; | ||
text:queryParser text:AnalyzingQueryParser ; | ||
## text:defineAnalyzers [ . . . ] ; | ||
text:multilingualSupport true ; | ||
## https://jena.apache.org/documentation/query/text-query.html#lists-of-indexed-properties - available since Jena 5.0 | ||
text:propLists ( | ||
[ text:propListProp mesht:queryDef ; | ||
text:props ( | ||
rdfs:label | ||
meshv:identifier | ||
meshv:prefLabel | ||
meshv:altLabel | ||
meshv:casn1_label | ||
meshv:abbreviation | ||
meshv:registryNumber | ||
meshv:relatedRegistryNumber | ||
mesht:identifier | ||
mesht:prefLabel | ||
mesht:altLabel | ||
) ; | ||
] | ||
[ text:propListProp mesht:queryAll ; | ||
text:props ( | ||
rdfs:label | ||
meshv:identifier | ||
meshv:prefLabel | ||
meshv:altLabel | ||
meshv:casn1_label | ||
meshv:abbreviation | ||
meshv:registryNumber | ||
meshv:relatedRegistryNumber | ||
mesht:identifier | ||
mesht:prefLabel | ||
mesht:altLabel | ||
mesht:translatorsNote | ||
mesht:annotation | ||
mesht:historyNote | ||
mesht:scopeNote | ||
meshv:annotation | ||
meshv:historyNote | ||
meshv:note | ||
meshv:onlineNote | ||
meshv:publicMeSHNote | ||
meshv:scopeNote | ||
# meshv:source | ||
) ; | ||
] | ||
[ text:propListProp mesht:queryNotes ; | ||
text:props ( | ||
mesht:translatorsNote | ||
mesht:annotation | ||
mesht:historyNote | ||
mesht:scopeNote | ||
meshv:annotation | ||
meshv:historyNote | ||
meshv:note | ||
meshv:onlineNote | ||
meshv:publicMeSHNote | ||
meshv:scopeNote | ||
# meshv:source | ||
) ; | ||
] | ||
) ; | ||
. | ||
|
||
<#entMap> | ||
a text:EntityMap ; | ||
text:defaultField "label" ; | ||
text:entityField "uri" ; | ||
text:uidField "uid" ; | ||
text:langField "lang" ; | ||
text:graphField "graph" ; | ||
text:map ( | ||
[ text:field "label" ; text:predicate rdfs:label ] | ||
[ text:field "abbreviation" ; text:predicate meshv:abbreviation ] | ||
[ text:field "annotation" ; text:predicate meshv:annotation ] | ||
[ text:field "historyNote" ; text:predicate meshv:historyNote ] | ||
[ text:field "identifier" ; text:predicate meshv:identifier ] | ||
[ text:field "prefLabel" ; text:predicate meshv:prefLabel ] | ||
[ text:field "altLabel" ; text:predicate meshv:altLabel ] | ||
[ text:field "casn1_label" ; text:predicate meshv:casn1_label ] | ||
[ text:field "registryNumber" ; text:predicate meshv:registryNumber ] | ||
[ text:field "relatedRegistryNumber" ; text:predicate meshv:relatedRegistryNumber ] | ||
[ text:field "note" ; text:predicate meshv:note ] | ||
[ text:field "onlineNote" ; text:predicate meshv:onlineNote ] | ||
[ text:field "publicMeSHNote" ; text:predicate meshv:publicMeSHNote ] | ||
# [ text:field "source" ; text:predicate meshv:source ] | ||
[ text:field "scopeNote" ; text:predicate meshv:scopeNote ] | ||
[ text:field "abbreviation_t" ; text:predicate mesht:abbreviation ] | ||
[ text:field "annotation_t" ; text:predicate mesht:annotation ] | ||
[ text:field "historyNote_t" ; text:predicate mesht:historyNote ] | ||
[ text:field "identifier_t" ; text:predicate mesht:identifier ] | ||
[ text:field "prefLabel_t" ; text:predicate mesht:prefLabel ] | ||
[ text:field "altLabel_t" ; text:predicate mesht:altLabel ] | ||
[ text:field "scopeNote_t" ; text:predicate mesht:scopeNote ] | ||
[ text:field "translatorsNote" ; text:predicate mesht:translatorsNote ] | ||
) . | ||
|
||
### MeSH common: | ||
## abbreviation | ||
## annotation | ||
## historyNote | ||
## identifier | ||
## prefLabel | ||
## altLabel | ||
## scopeNote | ||
|
||
### MeSH master only: | ||
## rdfs:label | ||
## meshv:casn1_label | ||
## meshv:note | ||
## meshv:onlineNote | ||
## meshv:publicMeSHNote | ||
## meshv:source | ||
|
||
### Translation only: | ||
## mesht:translatorsNote | ||
|
||
<#service_text_tdb> | ||
a fuseki:Service ; | ||
rdfs:label "MeSH-Translation-service" ; | ||
fuseki:name "mesh" ; | ||
fuseki:serviceQuery "query" ; | ||
fuseki:serviceQuery "sparql" ; | ||
fuseki:serviceUpdate "update" ; | ||
fuseki:serviceUpload "upload" ; | ||
fuseki:serviceReadGraphStore "get" ; | ||
fuseki:serviceReadWriteGraphStore "data" ; | ||
fuseki:dataset :text_dataset ; | ||
. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
## Folder placeholder | ||
# Folder placeholder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
## Folder placeholder | ||
# Folder placeholder | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
## This is folder for temporary files | ||
# This is folder for temporary files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
### Version 1.6.9 | ||
### Version 1.7.0 | ||
### Python 3.12 ### | ||
arrow==1.3.0 | ||
bcrypt==4.2.1 ## NOT python-bcrypt !!! | ||
|