Dear Osma, :-) you did not tell me, that you are also here :-) But thank you very much for your help again, that was very useful.I executed, that you suggested, i.e. I have downloaded the full dataset of the getty aat, and applied the tdbloader of fuseki using the jena-text-config.ttl file as an assembler file: /java -cp /fuseki-server.jar tdb.tdbloader --tdb=jena-text-config.ttl ./vocabularies/getty_aat/full/ontology.rdf// //java -cp /fuseki-server.jar tdb.tdbloader --tdb=jena-text-config.ttl ./vocabularies/getty_aat/full/skos.rdf// //java -cp /fuseki-server.jar tdb.tdbloader --tdb=jena-text-config.ttl ./vocabularies/getty_aat/full/AATOut_Full.nt// //java -cp /fuseki-server.jar tdb.tdbloader --tdb=jena-text-config.ttl ./vocabularies/getty_aat/full/AATOut_Contribs.nt// //java -cp /fuseki-server.jar tdb.tdbloader --tdb=jena-text-config.ttl ./vocabularies/getty_aat/full/AATOut_Sources.nt//
/The files were nicely uploaded to the tdb folder of fuseki.After starting fuseki with the same ttl file (fuseki-server --config jena-text-config.ttl), see attached, and run SPARQL queries:
/SELECT (COUNT(*) AS ?count) { //
// GRAPH <http://vocab.getty.edu/aat/> { ?s ?p ?o } //
//} /
to check the number of triples, the result is zero.
I am afraid the problem can be with the graph name (either
<http://vocab.getty.edu/aat/> or default), that I don't know where
should I define.
Best Regards, Sandor
/ / Am 08.01.2016 um 15:25 schrieb Osma Suominen:
Dear Sandor,You can use the same .ttl file that you used for the Fuseki database and text index configuration, i.e. the one documented here: https://github.com/NatLibFi/Skosmos/wiki/InstallFusekiJenaText#configuration-Osma On 08/01/16 16:12, Sandor Kopacsi wrote:Dear Support List, We are at the University of Vienna developing an archiving system where we are going to use Jena-Fuseki (and a tool, called Skosmos based on that) for storing and displaying data sets for classifications. We had problems with uploading the RDF file to Fuseki through the memory, and therefore we were suggested by the developers of Skosmes to use the tdb loader to upload the datasete directly to the tdb folder. We found in the documentation(https://jena.apache.org/documentation/query/text-query.html#building-a-text-index),that we can use the java -cp $FUSEKI_HOME/fuseki-server.jar tdb.tdbloader --tdb=assembler_file data_file command, as the TDB loader included with Fuseki, but it is not clear, *what is going to be the assembler file*. I guess the data_file is the RDF or NT files, that I am going to upload. Could anyone explain, or suggest some documentation about this command, and the details of the assembler_file. Thank you very much for your help in advance. Best regards and happy new year, Sandor
-- Dr. Sandor Kopacsi IT Software Designer Vienna University Computer Center Universitätsstraße 7 (NIG) A-1010 Vienna Phone: +43-1-4277-14176 Mobile: +43-664-60277-14176
@prefix : <#> . @prefix fuseki: <http://jena.apache.org/fuseki#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix text: <http://jena.apache.org/text#> . @prefix skos: <http://www.w3.org/2004/02/skos/core#> . [] rdf:type fuseki:Server ; fuseki:services ( <#service_text_tdb> ) . # TDB [] ja:loadClass "com.hp.hpl.jena.tdb.TDB" . tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset . tdb:GraphTDB rdfs:subClassOf ja:Model . # Text [] ja:loadClass "org.apache.jena.query.text.TextQuery" . text:TextDataset rdfs:subClassOf ja:RDFDataset . #text:TextIndexSolr rdfs:subClassOf text:TextIndex . text:TextIndexLucene rdfs:subClassOf text:TextIndex . ## --------------------------------------------------------------- <#service_text_tdb> rdf:type fuseki:Service ; rdfs:label "TDB/text service" ; fuseki:name "ds" ; fuseki:serviceQuery "query" ; fuseki:serviceQuery "sparql" ; fuseki:serviceUpdate "update" ; fuseki:serviceUpload "upload" ; fuseki:serviceReadGraphStore "get" ; fuseki:serviceReadWriteGraphStore "data" ; fuseki:dataset <#text_dataset> ; . <#text_dataset> rdf:type text:TextDataset ; text:dataset <#dataset> ; ##text:index <#indexSolr> ; text:index <#indexLucene> ; . <#dataset> rdf:type tdb:DatasetTDB ; tdb:location "/var/www/skosmos/jena-fuseki1-1.3.0/tdb" ; tdb:unionDefaultGraph true ; . <#indexSolr> a text:TextIndexSolr ; #text:server <http://localhost:8983/solr/COLLECTION> ; text:server <embedded:SolrARQ> ; text:entityMap <#entMap> ; . <#indexLucene> a text:TextIndexLucene ; text:directory <file:/var/www/skosmos/jena-fuseki1-1.3.0/lucene> ; ##text:directory "mem" ; text:entityMap <#entMap> ; . # Text index configuration for Skosmos 0.6 and above (requires Fuseki 1.1.1+) <#entMap> a text:EntityMap ; text:entityField "uri" ; text:graphField "graph" ; ## enable graph-specific indexing text:defaultField "pref" ; ## Must be defined in the text:map text:map ( # skos:prefLabel [ text:field "pref" ; text:predicate skos:prefLabel ; text:analyzer [ a text:LowerCaseKeywordAnalyzer ] ] # skos:altLabel [ text:field "alt" ; text:predicate skos:altLabel ; text:analyzer [ a text:LowerCaseKeywordAnalyzer ] ] # skos:hiddenLabel [ text:field "hidden" ; text:predicate skos:hiddenLabel ; text:analyzer [ a text:LowerCaseKeywordAnalyzer ] ] ) .
