Re: [topbraid-users] Base URI and Default namespace

2011-05-17 Thread Holger Knublauch
Yes they can be totally different. In particular I recommend having no default namespace at all, and instead always use a prefix. http://composing-the-semantic-web.blogspot.com/2007/05/default-namespaces-considered-harmful.html Holger On May 18, 2011, at 1:43 PM, actress wrote: > In TopBraid

[topbraid-users] Base URI and Default namespace

2011-05-17 Thread actress
In TopBraid when we define ontology in ontology overview form should the Base URI and Default namespace be the same? I know that most of the time they are the same with the only difference that Default namespace has a "#" sign in the end. But can they be totally different? Thanks. -- You received

Re: [topbraid-users] SPARQL help.

2011-05-17 Thread Holger Knublauch
Yes, to get all restrictions on a given property, try something like ?r owl:onProperty ex:myProperty . BTW, in Irene's example below SPARQL 1.1 offers a short notation using DELETE WHERE, e.g. DELETE WHERE { ?r owl:onProperty ex:myProperty . ?r ?p ?o . ?class rdf

Re: [topbraid-users] Re: TBCM 3.4.4.v20110407-1336R keeps crashing (possibly w subversion)

2011-05-17 Thread Matt
Yes, it seems that a complete wipe of the first installation fixed the problem. I had previously had some problems with downloading files from TopBraid's website and Windows7 telling me that they were corrupt. So perhaps something like that caused the previous problems. -- You received this

Re: [topbraid-users] SPARQL help.

2011-05-17 Thread Leonard Jacuzzo
Thanks Guys, But I have a ton of anoymous classes. If I run this query, I will have to manually go through each triple to find the ones that I want. How do I target a restriction involving a particular property and not the others? Would I substitute the name of the property for '?Prop' in Irene's

Re: [topbraid-users] Re: Functions returning multiple values and how to select one.

2011-05-17 Thread Gokhan Soydan
There can be three solutions: 1-) Use IF (or smf:if) SELECT?type ?input WHERE { LET( ?type := IF( ns:fn_isE(?input), E, IF( ns:fn_isT(?input), T, IF( ns:fn_isG(?input), G, J ) ) ) ) } 2-) Use COALESCE. For COALESCE to work, the partial functions should only return a type value if the inp

Re: Re : Re: Re : Re: Re : Re: [topbraid-users] ExportToTextFile encoding

2011-05-17 Thread Gokhan Soydan
Jamal, Unfortunately, there is no easy solution to this at the moment. Except for one module, SPARQLMotion import and export modules at the moment are lacking support for encoding. On Monday, my colleagues and I have decided to review and put custom encoding support to the relevant SPARQLMoti

[topbraid-users] Re: Functions returning multiple values and how to select one.

2011-05-17 Thread sofiangeletou
Thank you for your reply Gokhan, however this is not what I am trying to achieve. I already know the rdf:type of all individuals A but I want to further infer that they belong to one of the four aforementioned categories based on the values of their properties using spin. I hope that it is clearer

Re: [topbraid-users] Functions returning multiple values and how to select one.

2011-05-17 Thread Gokhan Soydan
Sofia, The simplest solution to your question would be: SELECT ?type ?input WHERE { ?input a ?type . } This is how you would get the type of an instance. What is your intended result? Gokhan On 5/17/2011 6:47 AM, sofiangeletou wrote: Hello there, I have an instance A for which I want

Re: [topbraid-users] SPARQL help.

2011-05-17 Thread Gokhan Soydan
Leonard, First, you could also run SELECT like the following to review what restrictions to delete. SELECT ?c ?r ?p ?o WHERE { ?c rdfs:subClassOf ?r . ?r a owl:Restriction . ?r ?p ?o . } Gokhan On 5/17/2011 12:06 PM, Irene Polikoff wrote: Something like this should work DELETE

RE: [topbraid-users] SPARQL help.

2011-05-17 Thread Irene Polikoff
Something like this should work DELETE {?r ?p ?o . ?c rdfs:subClassOf ?r .} WHERE {?r owl:onProperty ?prop. ?r ?p ?o . ?c rdfs:subClassOf ?r .} I always recommend running CONSTRUCT before doing the delete. This way you will be able to review all triples that are about to be deleted.

[topbraid-users] SPARQL help.

2011-05-17 Thread Leonard Jacuzzo
Hi all, Once again I would like to take advantage of your collective wisdom. I have created an ontology with several hundred classes, which are characterized by relations to restrictions on properties, i.e., anonymous classes. Unfortunately, once I was finished, I discovered that I made a particu

[topbraid-users] Functions returning multiple values and how to select one.

2011-05-17 Thread sofiangeletou
Hello there, I have an instance A for which I want to decide if it is of one of the following types E, T, G, J. At the moment I have created boolean functions that tell me if A is one of these types or not. Yet I want to have one function e.g., getType(A) that based on the boolean result of each of

Re : Re: Re : Re: Re : Re: [topbraid-users] ExportToTextFile encoding

2011-05-17 Thread J.REZZOUK
Thanks for all your suggestions. But I am a little bit lost with encoding... I have in fact a process with the following tasks : - import data from Excel files (UTF-16LE encoded ?) - apply some transformations based on TBCME modules + javascript functions using regexp - export as text file (I wou