Hi Adrian, Development indicated:
They need to use a pragma due to the fact that DESCRIBE is a custom CONSTRUCT that's poorly defined by W3C. For instance, you might only have triples for which the entity being described is only the object rather than subject. Here's an example using "CBD" (Concise Bound Description) pragma (the best effort default based on W3C specs) that returns data: http://lindas-data.ch/sparql?default-graph-uri=&query=DEFINE+sql%3Adescribe-mode+%22CBD%22%0D%0ADESCRIBE+%3Chttp%3A%2F%2Flod.opentransportdata.swiss%2Fdidok%2FBSGB%3E+&should-sponge=&format=text%2Fhtml&timeout=0&debug=on <http://lindas-data.ch/sparql?default-graph-uri=&query=DEFINE+sql:describe-mode+%22CBD%22DESCRIBE+%3Chttp://lod.opentransportdata.swiss/didok/BSGB%3E+&should-sponge=&format=text/html&timeout=0&debug=on> See more details on the use of “CDB” in the documentation at: http://docs.openlinksw.com/virtuoso/rdfsqlfromsparqldescribe/ <http://docs.openlinksw.com/virtuoso/rdfsqlfromsparqldescribe/> Best Regards Hugh Williams Professional Services OpenLink Software, Inc. // http://www.openlinksw.com/ Weblog -- http://www.openlinksw.com/blogs/ LinkedIn -- http://www.linkedin.com/company/openlink-software/ Twitter -- http://twitter.com/OpenLink Google+ -- http://plus.google.com/100570109519069333827/ Facebook -- http://www.facebook.com/OpenLinkSoftware Universal Data Access, Integration, and Management Technology Providers > On 16 Aug 2016, at 02:45, Hugh Williams <hwilli...@openlinksw.com> wrote: > > Hi Adrian, > > In fact the issue is not related to the use of owl:sameAs , seems for the > “DESCRIBE” query the graph name need to be specified as I had the same issue > even just trying to describe a simple set of inserted triples and found, even > from “isql”, that the graph name needed to be added for the query to run: > > SQL> sparql insert into <hugh> {<http://s> <http://p> <http://o>}; > > Done. -- 6 msec. > SQL> sparql describe <http://s> ; > S P O > VARCHAR VARCHAR LONG VARCHAR > _______________________________________________________________________________ > > > 0 Rows. -- 5 msec. > SQL> sparql describe <http://s> from <hugh>; > S P O > VARCHAR VARCHAR LONG VARCHAR > _______________________________________________________________________________ > > http://s http://p http://o > > 1 Rows. -- 1 msec. > SQL> > > Thus determined the name of the graph for your > <http://lod.opentransportdata.swiss/didok/BSGB> entity with the query: > > select distinct ?g where {GRAPH > ?g{<http://lod.opentransportdata.swiss/didok/BSGB> ?p ?o}} > > > http://lindas-data.ch/sparql?default-graph-uri=&qtxt=select+distinct+%3Fg+where+%7BGRAPH+%3Fg%7B%3Chttp%3A%2F%2Flod.opentransportdata.swiss%2Fdidok%2FBSGB%3E+%3Fp+%3Fo%7D%7D&should-sponge=&format=text%2Fhtml&timeout=0&debug=on > > and found it to be <http://lindas-data.ch/resource/ld-didok> , thus appended > to the describe query which then returned the result set match: > > describe <http://lod.opentransportdata.swiss/didok/BSGB> from > <http://lindas-data.ch/resource/ld-didok> > > > http://lindas-data.ch/sparql?default-graph-uri=&qtxt=describe+%3Chttp%3A%2F%2Flod.opentransportdata.swiss%2Fdidok%2FBSGB%3E+from+%3Chttp%3A%2F%2Flindas-data.ch%2Fresource%2Fld-didok%3E&should-sponge=&format=text%2Fhtml&timeout=0&debug=on > > I have reported to development to look into for other describe queries the > graph name is not required … > > Best Regards > Hugh Williams > Professional Services > OpenLink Software, Inc. // http://www.openlinksw.com/ > Weblog -- http://www.openlinksw.com/blogs/ > LinkedIn -- http://www.linkedin.com/company/openlink-software/ > Twitter -- http://twitter.com/OpenLink > Google+ -- http://plus.google.com/100570109519069333827/ > Facebook -- http://www.facebook.com/OpenLinkSoftware > Universal Data Access, Integration, and Management Technology Providers > >> On 15 Aug 2016, at 13:31, Adrian Gschwend <ml-...@netlabs.org> wrote: >> >> On 13.08.16 02:10, Hugh Williams wrote: >> >> Hi Hugh, >> >>> The Virtuoso DEFINE input:same-as “yes” pragma can be use for the >>> owl:sameAs relation ie >> >> Thanks, that's good to know. >> >> But for what reason do I get no triples back without that? IMHO the >> sameAs should still be returned in DESCRIBE as well, as it does in a SELECT? >> >> regards >> >> Adrian >> >> ------------------------------------------------------------------------------ >> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic >> patterns at an interface-level. Reveals which users, apps, and protocols are >> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >> J-Flow, sFlow and other flows. Make informed decisions using capacity >> planning reports. http://sdm.link/zohodev2dev >> _______________________________________________ >> Virtuoso-users mailing list >> Virtuoso-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/virtuoso-users >
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------
_______________________________________________ Virtuoso-users mailing list Virtuoso-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtuoso-users