Just for my understanding, how did you solve the issue now? What was the error?
On 07.12.20 10:13, 周蓉 wrote: > Thank you very much for your reply, I understand your response and > successfully solve this problem!!! Thank you very much! I will study hard and > continue to work hard. I hope I can grow up to be a capable person like you > > > > > > > > > > > > > > > > > > 在 2020-12-07 15:52:55,"Jean-Marc Vanel" <[email protected]> 写道: >> As Lorenz said your pasting of Jena results is not very readable. >> But I think I understand your problem, indeed a beginner's one . >> >> This query (1) brings no results: >> PREFIX : <http://dsc.nlp-bigdatalab.org:8086/> >> SELECT * WHERE { >> :湿疹样 rdf:type ?o. >> ?s ?p ?o. >> } >> >> If we take each line of the above query, we have 2 queries that bring some >> results: >> >> PREFIX : <http://dsc.nlp-bigdatalab.org:8086/> >> SELECT * WHERE { >> :湿疹样 rdf:type ?o. >> } # query 2 >> ========== >> PREFIX : <http://dsc.nlp-bigdatalab.org:8086/> >> SELECT * WHERE { >> ?s ?p ?o. >> } LIMIT 5} # query 3 >> >> Then, why does query 1 bring no result ? >> A query as like an equation with variables. >> Query 1 is overconstrained, your dataset has no triples satisfying the 2 >> lines. >> Obviously ?o in >> :湿疹样 rdf:type ?o. >> is the resource of a class, so if you load your vocabulary (ontology) into >> the database or query, >> it will succeed. >> So, you need in your database one triple like: >> :西医症状 rdf:type <http://www.w3.org/2002/07/owl#Class> . >> and then ?s in query 1 will match :西医症状 , ?p will match rdf:type , and ?o >> will match <http://www.w3.org/2002/07/owl#Class> . >> >> Jean-Marc Vanel >> <http://semantic-forms.cc:9112/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me> >> +33 >> (0)6 89 16 29 52 >> >> >> Le lun. 7 déc. 2020 à 02:20, 周蓉 <[email protected]> a écrit : >> >>> Hello, I have a problem when I query in Fuseki in this way: >>> ================================================================ >>> >>> PREFIX : <http://dsc.nlp-bigdatalab.org:8086/> >>> >>> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> >>> >>> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> >>> >>> SELECT * WHERE { >>> >>> ?s ?p ?o. >>> >>> } >>> >>> ================================================================ >>> >>> It can return the results like this: >>> >>> | 82 | >>> :皮肤血管蜘蛛痣 >>> | >>> rdf:type >>> | >>> :西医症状 >>> | >>> | 83 | >>> :血红蛋白E病 >>> | >>> rdfs:label >>> | >>> "血红蛋白E病"@ZH >>> | >>> | 84 | >>> :复方枇杷氯化铵糖浆 >>> | >>> rdf:type >>> | >>> :药品 >>> | >>> | >>> | | | >>> | >>> | 86 | >>> :快节奏综合症 >>> | >>> rdf:type >>> | >>> :疾病 >>> | >>> | 87 | >>> :作腐提脓膏 >>> | >>> rdfs:label >>> | >>> "作腐提脓膏"@ZH >>> | >>> but when I just try to add a constraint to expect the result like line85 >>> above,: >>> | 85 | >>> :湿疹样 >>> | >>> rdf:type >>> | >>> :西医症状 >>> | >>> I modify the query : >>> ================================================================ >>> PREFIX : <http://dsc.nlp-bigdatalab.org:8086/> >>> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> >>> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> >>> SELECT * WHERE { >>> :湿疹样 rdf:type ?o. >>> ?s ?p ?o. >>> } >>> ================================================================ >>> and then it does not work!!!!!!!!!!!!!!!!!!!!!!!!! >>> the result shows "No data available in the table" >>> I do write query statements based on existing data >>> so it has confused me for several days >>> I need your help,thanks! >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>
