Thanks Holger, it works. Thanks, Sanjeev
On Wednesday, May 10, 2017 at 12:18:40 PM UTC+5:30, Holger Knublauch wrote: > > This works for me, but the ui:label may return different things depending > on from where you run the query. Safer would be to compare URIs: > > FILTER (?type = > <http://evn.topbraidlive.org/evnprojects#Taxonomy> > <http://evn.topbraidlive.org/evnprojects#Taxonomy>) > > or (better): > > SELECT ?vocabName > WHERE { > GRAPH <urn:x-evn-master:geo>{ > <urn:x-evn-master:geo>rdfs:label ?vocabName . > <urn:x-evn-master:geo>rdf:type > <http://evn.topbraidlive.org/evnprojects#Taxonomy> > <http://evn.topbraidlive.org/evnprojects#Taxonomy> > } > } > > To walk through all (when executing on a server where you are logged in > with suitable privileges): > > SELECT ?projectGraph > WHERE { > () <http://topbraid.org/teamwork#readableGraphsUnderTeamControl> > <http://topbraid.org/teamwork#readableGraphsUnderTeamControl> > (?projectGraph ?teamGraph) . > GRAPH ?projectGraph { > ?projectGraph a <http://evn.topbraidlive.org/evnprojects#Taxonomy> > <http://evn.topbraidlive.org/evnprojects#Taxonomy> . > } > } > > Holger > > > On 10/05/2017 16:38, sanjeev devireddy wrote: > > Irene, the SPARQL that you gave works fine and returns all Taxonomies, > Ontologies & Reference Data sets. > *We have another requirement to write a SPARQL for fetching Taxonomies > only but not others(Ontologies, Reference Datasets,.. )*. For that, > inspired from a SPARQL(given below), which is to fetch a specific > Vocabulary's name and it's type (rdf:type) based on Graph URI, I tried > adding one new line(?projectGraph rdf:type ?type .) to the SPARQL that you > gave above for getting Vocabularies type also. But that returns zero > results. Could you please help us here? > > *SPARQL to get specific Vocabulary's name and it's type(rdf:type)* > > SELECT ?vocabName ?type > WHERE { > GRAPH <urn:x-evn-master:geo>{ > <urn:x-evn-master:geo>rdfs:label ?vocabName . > *<urn:x-evn-master:geo>rdf:type ?type .* > } . > FILTER (ui:label(?type)= > "http://evn.topbraidlive.org/evnprojects#Taxonomy" > <http://evn.topbraidlive.org/evnprojects#Taxonomy>) > } > > > > > > *RESULT * > > *SPARQL to get all vocabularies(Taxonomies, Ontologies, etc..) Grpah , > name and type* > > SELECT ?projectGraph ?name ?type > WHERE { > rdf:nil teamwork:graphsUnderTeamControl ( ?projectGraph ?teamGraph ) . > BIND (teamwork:projectLabel(?projectGraph) AS ?name) . > *?projectGraph rdf:type ?type .* > } > ORDER BY (?name) > > > > > Thanks, > sanjeev > > On Tuesday, April 11, 2017 at 11:33:41 PM UTC+5:30, Irene Polikoff wrote: >> >> Sanjeev >> >> Most of the services and their definitions are listed on the Available >> Web Services page. >> >> Even if the service you need is not there, it is a good resource for >> figuring out how to create a service you need. “Teamwork” services would be >> particularly useful for the kind of thing you want to accomplish. >> >> For example, taking an inspiration from teamwork:UsagesOfSoftwareSystem >> (spin:SelectTemplate) or teamwork:GraphsOfGivenTypeUnderTeamworkControl >> (spin:SelectTemplate), your service could be defined as follows: >> >> SELECT ?projectGraph ?name >> WHERE { >> rdf:nil teamwork:graphsUnderTeamControl ( ?projectGraph ?teamGraph ) . >> BIND (teamwork:projectLabel(?projectGraph) AS ?name) . >> } >> ORDER BY (?name) >> >> >> It would not need any input arguments. >> >> On Apr 11, 2017, at 9:03 AM, sanjeev devireddy <[email protected]> >> wrote: >> >> Hello, >> We want to display an HTML page with Metadata(Name, Graph URI/URN, >> etc... ) of all available Vocabularies in an EVN application. It is >> basically to list all the vocabularies available in an EVN instance. Is >> there any SPARQL/REST service available to achieve this? >> >> >> Thanks, >> sanjeev >> >> -- >> You received this message because you are subscribed to the Google Group >> "TopBraid Suite Users", the topics of which include the TopBraid Suite >> family of products and its base technologies such as SPARQLMotion, SPARQL >> Web Pages and SPIN. >> To post to this group, send email to [email protected] >> --- >> You received this message because you are subscribed to the Google Groups >> "TopBraid Suite Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- > You received this message because you are subscribed to the Google Group > "TopBraid Suite Users", the topics of which include the TopBraid Suite > family of products and its base technologies such as SPARQLMotion, SPARQL > Web Pages and SPIN. > To post to this group, send email to [email protected] > <javascript:> > --- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include the TopBraid Suite family of products and its base technologies such as SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to [email protected] --- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
