-
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
189 changed files
with
34,615 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@echo off | ||
setlocal | ||
echo. | ||
echo Build using pyinstaller | ||
set targetDir=dist | ||
set fileHandle=mtw-server-win-service | ||
set srcFile=%fileHandle%.py | ||
set srcDir=mtw | ||
set logFile=!build_%fileHandle%.rep | ||
|
||
echo. > %logFile% | ||
|
||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe stop | ||
|
||
echo. | ||
echo Building %srcFile% ... | ||
|
||
rem CALL c:\Python37\Scripts\pyinstaller.exe --log-level ERROR --onedir -y --hidden-import=_cffi_backend --distpath %targetDir% %srcFile% >> %logFile% 2>&1 | ||
CALL c:\Python37\Scripts\pyinstaller.exe --log-level ERROR --onefile --hidden-import=_cffi_backend --distpath %targetDir% %srcFile% >> %logFile% 2>&1 | ||
|
||
echo - Done! | ||
echo. | ||
echo Cleaning static files %targetDir% ... | ||
|
||
RMDIR %targetDir%\static /S /Q | ||
RMDIR %targetDir%\templates /S /Q | ||
|
||
echo - Done! | ||
echo. | ||
echo Copying files... | ||
|
||
MKDIR %targetDir%\static | ||
xcopy %srcDir%\static %targetDir%\static /E /Q /Y | ||
MKDIR %targetDir%\templates | ||
xcopy %srcDir%\templates %targetDir%\templates /E /Q /Y | ||
echo - Done! | ||
echo. | ||
|
||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe install | ||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe start | ||
|
||
echo Finished | ||
echo. | ||
|
||
endlocal |
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,32 @@ | ||
@echo off | ||
setlocal | ||
echo. | ||
echo Build using pyinstaller | ||
set targetDir=dist | ||
set fileHandle=mtw-server-win-worker | ||
set srcFile=%fileHandle%.py | ||
set logFile=!build_%fileHandle%.rep | ||
|
||
echo. > %logFile% | ||
|
||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe stop | ||
|
||
echo. | ||
echo Building %srcFile% ... | ||
|
||
rem CALL c:\Python37\Scripts\pyinstaller.exe --log-level ERROR --onedir -y --distpath %targetDir% %srcFile% >> %logFile% 2>&1 | ||
CALL c:\Python37\Scripts\pyinstaller.exe --log-level ERROR --onefile --distpath %targetDir% %srcFile% >> %logFile% 2>&1 | ||
|
||
echo - Done! | ||
|
||
|
||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe install | ||
echo. | ||
echo rem call %targetDir%\%fileHandle%.exe start | ||
|
||
echo Finished | ||
echo. | ||
|
||
endlocal |
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,22 @@ | ||
@echo off | ||
setlocal | ||
echo. | ||
echo Build using pyinstaller | ||
set targetDir=dist | ||
set fileHandle=set-mtw-admin | ||
set srcFile=%fileHandle%.py | ||
set logFile=!build_%fileHandle%.rep | ||
|
||
echo. > %logFile% | ||
|
||
echo. | ||
echo Building %srcFile% ... | ||
|
||
rem CALL c:\Python37\Scripts\pyinstaller.exe --log-level ERROR --onedir -y --hidden-import=_cffi_backend --distpath %targetDir% %srcFile% >> %logFile% 2>&1 | ||
CALL c:\Python37\Scripts\pyinstaller.exe --log-level ERROR --onefile --hidden-import=_cffi_backend --distpath %targetDir% %srcFile% >> %logFile% 2>&1 | ||
|
||
echo. | ||
echo Finished | ||
echo. | ||
|
||
endlocal |
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 @@ | ||
## This is the datasets input folder |
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 @@ | ||
## This is the datasets ouput folder |
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,74 @@ | ||
{ | ||
"descriptors": { | ||
"D1...": { | ||
"eng": "dname_eng", | ||
"trx": "dname_trx", | ||
"active": "false", | ||
"dc": "1", | ||
"pa": [ | ||
"D..." | ||
] | ||
}, | ||
"D2...": { | ||
"eng": "dname_eng", | ||
"trx": "dname_trx", | ||
"active": "false", | ||
"dc": "1", | ||
"pa": [ | ||
"D..." | ||
] | ||
} | ||
}, | ||
"descriptors_eng": [ | ||
{ | ||
"<dname_eng>": "D..." | ||
} | ||
], | ||
"descriptors_trx": [ | ||
{ | ||
"<dname_trx>": "D..." | ||
} | ||
], | ||
"qualifiers": { | ||
"Q1...": { | ||
"eng": "<qname_eng>", | ||
"trx": "<qname_trx>", | ||
"active": "false" | ||
}, | ||
"Q2...": { | ||
"eng": "<qname_eng>", | ||
"trx": "<qname_trx>", | ||
"active": "false" | ||
} | ||
}, | ||
"qualifiers_eng": [ | ||
{ | ||
"<qname_engA>": { | ||
"id": "Q...", | ||
"eng": "<qname_eng>", | ||
"trx": "<qname_trx>", | ||
"active": "false" | ||
}, | ||
"<qname_engB>": { | ||
"id": "Q...", | ||
"eng": "<qname_eng>", | ||
"trx": "<qname_trx>", | ||
"active": "false" | ||
} | ||
} | ||
], | ||
"qualifiers_trx": [ | ||
{ | ||
"<qname_trxA>": { | ||
"id": "Q...", | ||
"eng": "<qname_eng>", | ||
"trx": "<qname_trx>" | ||
}, | ||
"<qname_trxB>": { | ||
"id": "Q...", | ||
"eng": "<qname_eng>", | ||
"trx": "<qname_trx>" | ||
} | ||
} | ||
] | ||
} |
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,119 @@ | ||
@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/#> . | ||
@prefix meshcs: <http://mesh.medvik.cz/link/> . | ||
|
||
### Version 1.0.1 | ||
|
||
## 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 "c:\\Data\\mesh-mtw\\apache-jena-data/databases/mesh" ; | ||
. | ||
|
||
# Text index description | ||
<#indexLucene> | ||
a text:TextIndexLucene ; | ||
text:directory "c:\\Data\\mesh-mtw\\apache-jena-data/indexes/mesh" ; | ||
text:entityMap <#entMap> ; | ||
text:storeValues true ; | ||
##text:analyzer[ a text:StandardAnalyzer ] ; | ||
text:analyzer [ | ||
a text:ConfigurableAnalyzer ; | ||
text:tokenizer text:StandardTokenizer ; | ||
text:filters (text:ASCIIFoldingFilter text:LowerCaseFilter) | ||
] ; | ||
##text:queryAnalyzer [ a text:KeywordAnalyzer ] ; | ||
text:queryParser text:AnalyzingQueryParser ; | ||
##text:defineAnalyzers [ . . . ] ; | ||
text:multilingualSupport true ; | ||
. | ||
|
||
<#entMap> | ||
a text:EntityMap ; | ||
text:defaultField "ftext" ; | ||
text:entityField "uri" ; | ||
text:uidField "uid" ; | ||
text:langField "lang" ; | ||
text:graphField "graph" ; | ||
text:map ( | ||
[ text:field "ftext" ; text:predicate rdfs:label ] | ||
[ text:field "ftext" ; text:predicate meshv:abbreviation ] | ||
[ text:field "ftext" ; text:predicate meshv:annotation ] | ||
[ text:field "ftext" ; text:predicate meshv:historyNote ] | ||
[ text:field "ftext" ; text:predicate meshv:identifier ] | ||
[ text:field "ftext" ; text:predicate meshv:prefLabel ] | ||
[ text:field "ftext" ; text:predicate meshv:altLabel ] | ||
[ text:field "ftext" ; text:predicate meshv:casn1_label ] | ||
[ text:field "ftext" ; text:predicate meshv:note ] | ||
[ text:field "ftext" ; text:predicate meshv:onlineNote ] | ||
[ text:field "ftext" ; text:predicate meshv:publicMeSHNote ] | ||
[ text:field "ftext" ; text:predicate meshv:source ] | ||
[ text:field "ftext" ; text:predicate meshv:scopeNote ] | ||
[ text:field "ftext" ; text:predicate mesht:abbreviation ] | ||
[ text:field "ftext" ; text:predicate mesht:annotation ] | ||
[ text:field "ftext" ; text:predicate mesht:historyNote ] | ||
[ text:field "ftext" ; text:predicate mesht:identifier ] | ||
[ text:field "ftext" ; text:predicate mesht:prefLabel ] | ||
[ text:field "ftext" ; text:predicate mesht:altLabel ] | ||
[ text:field "ftext" ; text:predicate mesht:scopeNote ] | ||
[ text:field "ftext" ; 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 ; | ||
. | ||
|
Oops, something went wrong.