brealisty commented on issue #1852:
URL: https://github.com/apache/jena/issues/1852#issuecomment-1521444908

   @afs 
   I can provide more informations.
   
   ## 1. Design a rdf ontology with protege, generate a kg.owl file.  
   > class: A B C, obejct properties: A :hasInclude B, A :hasApear C, B 
hasApear C.
   
   ## 2. generate a kg.ttl file with jena_d2rq-0.8.1 via mysql.
   > generate-mapping.bat -u xxx -p xxx -o kg.ttl 
jdbc:mysql://locahost:port/database_name?useSSL=false
   > mysql data structure: table A, Table B, Table C, Table A-B-map, Table 
A-C-map, Table B-C-map.
   
   ## 3.modify the kg.ttl to fit kg.owl
   > I don't think this step matters, beacuse another version without A 
:hasInclude B, do the same thing.
   
   ## 4. generate kg.nt file with  jena_d2rq-0.8.1 via kg.ttl.
   > dump-rdf.bat -o kg.nt kg.ttl
   
   ## 5. generate tdb folder with apache-jena-4.4.0
   > tdbloader.bat --loc=./tdb/ kg.nt
   
   ## 6. copy the kg.owl to fuseki's `run/databases/` path
   > cp kg.owl path_to/apache-jena-fuseki-4.4.0/run/databases/ontology.ttl
   
   ## 7. create a kg_cf.ttl file, and Fill the following configuration into the 
file
   > @prefix :      <http://base/#> .
   @prefix tdb:   <http://jena.hpl.hp.com/2008/tdb#> .
   @prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
   @prefix ja:    <http://jena.hpl.hp.com/2005/11/Assembler#> .
   @prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
   @prefix fuseki: <http://jena.apache.org/fuseki#> .
   
   
   >:service1        a                fuseki:Service ;
   fuseki:dataset                    <#dataset> ;
   fuseki:name                       "kg_demo" ;
   fuseki:serviceQuery               "query" , "sparql" ;
   fuseki:serviceReadGraphStore      "get" ;
   fuseki:serviceReadWriteGraphStore "data" ;
   fuseki:serviceUpdate              "update" ;
   fuseki:serviceUpload              "upload" .
   
   
   ><#dataset> rdf:type ja:RDFDataset ;
       ja:defaultGraph <#model_inf> ;
       .
   
   ><#model_inf> a ja:InfModel ;
       ja:baseModel <#tdbGraph> ;
       ja:content [ja:externalContent <../databases/ontology.ttl> ] ;
       
   >    ja:reasoner [ja:reasonerURL 
<http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>] .
   
   ><#tdbGraph> rdf:type tdb:GraphTDB ;
       tdb:dataset <#tdbDataset> ;
       .
   
   ><#tdbDataset> rdf:type tdb:DatasetTDB ;
       tdb:location "tdb" ;
       .
   ## 8. start fuseki server
   > fuseki-server.bat
   
   I do the same step, but only delete the  obejct properties A :hasInclude B 
in ontology.  this version will work will, count triples very fast. so I think 
maybe the cycle structure ontology make this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to