[tbc-users] Re: SPARQL Queries over several imports
Joseph; One issue you should be aware of is qnames vs. URIs. The :hasProperty below is a qname for a resource in your default namespace. To see the full URI for hasProperty, open the property in Composer and go toggle between Name and URI. Given that, when you import files, a namespace prefix will be created for you. Let's say you have main.n3 that imports abc.owl. Open main.n3 and go to the ontology home. Find the namespace prefix for the imported abc.owl file. The prefix might be named abc, in which case you can use the qname abc:hasProperty. Each import that has a different base URI will be assigned a unique namespace prefix. -- Scott On Mar 31, 2:27 pm, Joseph Shea joseph.p.s...@gmail.com wrote: Hello. I am running a problem when I try to query an owl file with several other owl files imported into it. I need it to go through the main file, as well as all of the imports, but am unfamiliar with the syntax for it. An example would be. SELECT ?subject ?object WHERE { ?subject :hasProperty ?object . } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TopBraid Composer Users group. To post to this group, send email to topbraid-composer-users@googlegroups.com To unsubscribe from this group, send email to topbraid-composer-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-composer-users?hl=en -~--~~~~--~~--~--~---
[tbc-users] Re: SPARQL Queries over several imports
Whenever you run a SPARQL query in TBC, and give neither FROM nor GRAPH clauses, the system will run the query over the whole graph, including the imports. You can narrow down querying against the base graph only using a button in the SPARQL view, or using the GRAPH keyword. But apart from that, it should already work and operate on all imports automatically. Holger On Mar 31, 2009, at 12:27 PM, Joseph Shea wrote: Hello. I am running a problem when I try to query an owl file with several other owl files imported into it. I need it to go through the main file, as well as all of the imports, but am unfamiliar with the syntax for it. An example would be. SELECT ?subject ?object WHERE { ?subject :hasProperty ?object . } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TopBraid Composer Users group. To post to this group, send email to topbraid-composer-users@googlegroups.com To unsubscribe from this group, send email to topbraid-composer-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/topbraid-composer-users?hl=en -~--~~~~--~~--~--~---