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
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
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
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
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
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
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
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
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
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
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.
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
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
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
14 matches
Mail list logo