Re: [topbraid-users] Re: Issue when using parameters on SWP service

2018-10-31 Thread Holger Knublauch

Hi William,

sorry the error message appears mis-formatted, or uses a different query 
than what you had shown earlier. Does it really use ?projectGraph as 
argument for SERVICE? And the error lacks crucial detail such as "Caused 
by...". Maybe you can send me the full error log (in a private email if 
you prefer)?


Holger


On 1/11/2018 9:52 AM, William Ramos wrote:

Additional error log:

An internal error has been reported by SWP engine of TopBraid Live
Failed to construct SWP argument http://uispin.org/ui#resultSet at
template in query SELECT ?projectGraph ?name ?description
?identifier ?statusLabel ?version WHERE { SERVICE { (
?projectGraph ) GRAPH ?projectGraph { ?projectGraph a ; ?name
OPTIONAL { ?projectGraph ?statusVar } OPTIONAL { GRAPH {
?statusVar ?statusLabel } } } } FILTER ( ?statusLabel = ?status ) }


 java.lang.IllegalArgumentException: Failed to construct SWP argument 
http://uispin.org/ui#resultSet at template

--
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 topbraid-users+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] oneOf in shacl

2018-10-31 Thread Irene Polikoff
Holger is correct. But additionally, this example calls for some reflection on 
the goal of this modeling pattern - having owl:oneOf in the first place.

OWL is open world. This means that if you say the following:

ex2:Category
  rdf:type owl:Class ;
  rdf:type sh:NodeShape ;
  rdfs:subClassOf owl:Thing.
  ex2:Pub a ex2:Category.
  ex2:Adult ex2:Category.
  ex2:Senior ex2:Category.

And, for example,

ex2:hasCategory rdfs:range ex2:Category.

And then

ex2:Asset1 ex2:hasCategory ex:Teen

There will be no inconsistency detected.

ex2:Teen will be inferred to be a ex2:Category, if you use an inference engine.

Even if you use owl:oneOf as shown in your example below, there still would 
still be no inconsistency since under the OWA, ex2:Teen could be the same as 
either ex2:Pub,  ex2:Adult and  ex2:Senior. 

One possible way to get some checking/enforcing out of owl:oneOf would be if 
your data always included owl:differentFrom assertions:

ex2:Teen owl:differentFrom ex2:Pub;
owl:differentFrom ex2:Adult;
owl:differentFrom ex2:Senior.

Such information, however, is rarely part of the data and you would need a DL 
reasoner to detect this violation if data was present.

Or, another way to detect inconsistency would be if you had something like:

ex2:Teen a ex2:NotACategory.
ex2:NotACategory.owl:disjointWith ex2:Category.

But in this case inconsistency would be detected even if you did not use 
owl:oneOf since the inference would be that ex2:Teen is both a category and not 
a category and these classes are disjoint. So, oneOf does not buy you anything 
in this case.


With SHACL, you do not need to say sh:in on the Shape Node level. You can 
simply have:

  ex2:Pub a ex2:Category.
  ex2:Adult ex2:Category.
  ex2:Senior ex2:Category.

The range statement would be translated into the property shape with sh:class 
ex2:Category constraint.

And a statement {ex2:Asset1 ex2:hasCategory ex:Teen} will be reported as an 
issue.

With this, my personal preference would be to translate 

> ex2:Category
>   owl:oneOf (
>   ex2:Pub
>   ex2:Adult
>   ex2:Senior
> ) ;

Into

  ex2:Pub a ex2:Category.
  ex2:Adult ex2:Category.
  ex2:Senior ex2:Category.

Having said this, such decisions depend on the goals and intensions of the 
modeler.

> On Oct 31, 2018, at 6:13 PM, Holger Knublauch  wrote:
> 
> Yes, sh:in at a node shape states that all target nodes (here: the instances 
> of ex2:Category) must be one of the enumerated values.
> 
> Holger
> 
> 
> 
> 
> On 1/11/2018 2:29 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users wrote:
>>  
>> ex2:Category
>>   rdf:type owl:Class ;
>>   rdf:type sh:NodeShape ;
>>   rdfs:subClassOf owl:Thing ;
>>   owl:oneOf (
>>   ex2:Pub
>>   ex2:Adult
>>   ex2:Senior
>> ) ;
>> .
>>  
>> What would the shacl look like for the yellow part?
>>  
>>  
>> sh:in (ex2:Pub ex2:Adult ex2:Senior) ;
>>  
>> Somehow….but it is not in a property shape right?
>> thx
>>  
>>  
>>  
>>  
>> Dr. ir. H.M. (Michel) Böhms
>> Senior Data Scientist
>> 
>> T +31888663107
>> M +31630381220
>> E michel.bo...@tno.nl
>> Location
>> 
>>  
>> 
>> This message may contain information that is not intended for you. If you 
>> are not the addressee or if this message was sent to you by mistake, you are 
>> requested to inform the sender and delete the message. TNO accepts no 
>> liability for the content of this e-mail, for the manner in which you use it 
>> and for damage of any kind resulting from the risks inherent to the 
>> electronic transmission of messages.
>> 
>>  
>>  
>>  
>>  
>> -- 
>> 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 topbraid-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> 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 topbraid-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] sh:nodeKind questions

2018-10-31 Thread Irene Polikoff
Correct

> On Oct 31, 2018, at 2:24 PM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
>  wrote:
> 
> Ok thx 
> So if my owl properties always have range...my shacl always has a datatype or 
> class...so then no need to use nodeshape at all..right?
> The simpler the better
> 
> Verzonden van mijn Android-telefoon via TouchDown (www.symantec.com)
> 
> -Original Message- 
> From: Irene Polikoff [ir...@topquadrant.com]
> Received: woensdag, 31 okt. 2018, 17:47
> To: topbraid-users@googlegroups.com [topbraid-users@googlegroups.com]
> Subject: Re: [topbraid-users] sh:nodeKind questions
> 
> Typically, you only need to specify sh:nodeKind if you can’t specify the 
> sh:datatype or sh:class. For example, if you can’t say whether the value is a 
> string or an integer, you could use sh:nodeKind to say that it is a literal.
> 
> 
>> On Oct 31, 2018, at 11:23 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite 
>> Users > > wrote:
>> 
>> You once explained but I cant refind.
>> What are the rules for sh:nodeKind?
>>  
>> If not specified what is the default?
>> Do you always pref. specify it for each relevant shape?
>> (when the range is known it could be derived?)
>>  
>> It’s not standard in the template in tbc when you want to specify?
>>  
>> I specify in owl datatype and object properties. Couldn’t this be part of 
>> the standard shacl generation?
>>  
>> Thx again, Michel
>>  
>>  
>>  
>>  
>> Dr. ir. H.M. (Michel) Böhms
>> Senior Data Scientist
>> 
>> T +31888663107
>> M +31630381220
>> E michel.bo...@tno.nl    
>> Location 
>> 
>> 
>>  
>>  
>> This message may contain information that is not intended for you. If you 
>> are not the addressee or if this message was sent to you by mistake, you are 
>> requested to inform the sender and delete the message. TNO accepts no 
>> liability for the content of this e-mail, for the manner in which you use it 
>> and for damage of any kind resulting from the risks inherent to the 
>> electronic transmission of messages.
>>  
>>  
>>  
>>  
>> 
>> -- 
>> 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 topbraid-users+unsubscr...@googlegroups.com 
>> .
>> For more options, visit https://groups.google.com/d/optout 
>> .
> 
> 
> -- 
> 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 topbraid-users+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .
> 
> -- 
> 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 topbraid-users+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[topbraid-users] Re: Issue when using parameters on SWP service

2018-10-31 Thread William Ramos
Additional error log:

An internal error has been reported by SWP engine of TopBraid Live
> Failed to construct SWP argument http://uispin.org/ui#resultSet at 
> template in query SELECT ?projectGraph ?name ?description ?identifier 
> ?statusLabel ?version WHERE { SERVICE { ( ?projectGraph ) GRAPH 
> ?projectGraph { ?projectGraph a ; ?name OPTIONAL { ?projectGraph ?statusVar 
> } OPTIONAL { GRAPH { ?statusVar ?statusLabel } } } } FILTER ( ?statusLabel 
> = ?status ) } 
>

java.lang.IllegalArgumentException: Failed to construct SWP argument 
http://uispin.org/ui#resultSet at template
>
>  
 

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] Issue when using parameters on SWP service

2018-10-31 Thread William Ramos
Sorry for the confusion, this time it is outside of the SERVICE block, but 
now the service gives me an error:

> An internal error has been reported by SWP engine of TopBraid Live
>
> Could not find registered ui:Element for 
> http://example.org/getTaxonomies#taxonomies
>


http://company.com:80/edg/tbl/sparql> 

; {
rdf:nil teamwork:graphsUnderTeamControl ( ?projectGraph 
) .
GRAPH ?projectGraph {
?projectGraph a 
; .
?projectGraph rdfs:label ?name .
OPTIONAL {
?projectGraph 
; ?statusVar .
} .
OPTIONAL {
GRAPH ; {
?statusVar rdfs:label ?statusLabel .
} .
} .
} .
} .
FILTER (?statusLabel = ?status) .
} }" ui:separator=",">







-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] Issue when using parameters on SWP service

2018-10-31 Thread Holger Knublauch
The FILTER is still inside of the SERVICE { ... } block. Try moving it 
down another line.


Holger



On 1/11/2018 9:11 AM, William Ramos wrote:

Hi, Holger; I tried that resulting in the following code:

|

            SELECT ?projectGraph ?name ?description ?identifier 
?statusLabel ?version

            WHERE {
|SERVICE  
;|{
                    rdf:nil teamwork:graphsUnderTeamControl ( 
?projectGraph ) .

                    GRAPH ?projectGraph {
                        ?projectGraph a 
; .

                        ?projectGraph rdfs:label ?name .
                        OPTIONAL {
                            ?projectGraph 
; ?statusVar .

                        } .
                        OPTIONAL {
                            GRAPH ; {
                                ?statusVar rdfs:label ?statusLabel .
                            } .
                        } .
                    } .
                    FILTER (?statusLabel = ?status) .
                } .
            } }"ui:separator=",">






|

And it also produces an empty set as a response: /[ ]/
/
/
/*Could it be something else?*
/
/
/
Thanks for the guidance.
--
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 topbraid-users+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] Issue when using parameters on SWP service

2018-10-31 Thread William Ramos
Hi, Holger; I tried that resulting in the following code:


http://company.com:80/edg/tbl/sparql> 

; {
rdf:nil teamwork:graphsUnderTeamControl ( ?projectGraph 
) .
GRAPH ?projectGraph {
?projectGraph a 
; .
?projectGraph rdfs:label ?name .
OPTIONAL {
?projectGraph 
; ?statusVar .
} .
OPTIONAL {
GRAPH ; {
?statusVar rdfs:label ?statusLabel .
} .
} .
} .
FILTER (?statusLabel = ?status) .
} .
} }" ui:separator=",">







And it also produces an empty set as a response: *[ ]*


*Could it be something else?*

Thanks for the guidance.

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] Issue when using parameters on SWP service

2018-10-31 Thread Holger Knublauch
The SERVICE keyword will not understand pre-bound variables, i.e. 
?status will have no value when the query is executed. Try moving the 
FILTER outside of the SERVICE, i.e. to the end of the WHERE clause.


Holger



On 1/11/2018 8:20 AM, William Ramos wrote:
Hi, community, I'm facing an issue when using a SWP service on my 
localhost, could you please help me to identify what's going on?


The local service URL is:
|
http://localhost:8083/tbl/swp?_viewClass=getTaxonomies:taxonomies&status=In%20use
|

* It is also defined on the service classes as a *spin:constrain*t, 
like this:

|
Argumentarg:status :*xsd:string*
|
*
*
...given the *'status'* parameter I'm trying to do a filter in order 
to show a list of taxonomies matching the given status.

For now, the possible values are: "*In use*" and *"Under development"*
*
*
*The SWON code looks like this:*
|

            SELECT ?projectGraph ?name ?description ?identifier 
?statusLabel ?version

            WHERE {
SERVICE ; {
                    rdf:nil teamwork:graphsUnderTeamControl ( 
?projectGraph ) .

                    GRAPH ?projectGraph {
                        ?projectGraph a 
; .

                        ?projectGraph rdfs:label ?name .
                        OPTIONAL {
                            ?projectGraph 
; ?statusVar .

                        } .
                        OPTIONAL {
                            GRAPH ; {
                                ?statusVar rdfs:label ?statusLabel .
                            } .
                        } .
FILTER (?statusLabel = ?status) .
                    } .
                } .
            } }'ui:separator=",">






|

*Please note*: the FILTER statement highlighted in yellow *and* the 
SERVICE (/the endpoint works only under intranet conditions and due to 
privacy concerns I'm using a dummy value in the code above/), but it 
has a topbraid instance with Version 5.3.2.v20170621-1517R


By running the service and sending the parameter withing thes service 
URL as: |&status=In%20use or ||&status=In use| up to this point, *it 
returns an empty response.*


*However... *if we modify the FILTER statement from:
|FILTER (?statusLabel = ?status) .
to|
|FILTER (?statusLabel = *'In use'*) .|
*... it works fine... *and returns the expected JSON response as:
|
[{"status":"In use","name":"TestGeography"},...]
|

The local instance where I'm running the described service has: 
*Version: 6.0.1.v20180831-1223R.*
** Other thing to note is that; if I remove the SERVICE statement and 
query my local taxonomies it also works fine, both with the dynamic 
value and with the hardcoded string.*

*
*
*-*
*
*
*So now the questions...*
- Is there something wrong on the swon code that is causing the issue 
when using the ?status as a value taken from the http request parameters?
- Does the external endpoint and the local version's mismatch may 
cause this issue?

- What else could be happening?

If any more details are required please let me know.

Thanks.
--
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 topbraid-users+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] shacl generation

2018-10-31 Thread Holger Knublauch
The apparently "empty" property shapes that just specify a sh:path DO 
have a role and DO carry some information. It is similar to rdfs:domain 
statements, in that a tool can see which properties are "relevant" and 
likely used for a given class/shape.


But right, if you don't think you want this info, there is no harm in 
deleting it.


Holger



On 1/11/2018 12:20 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
wrote:


When generating shacl I get:

ex2:Head

sh:property [

rdf:type sh:PropertyShape ;

sh:path dct:hasPart ;

    ] ;

sh:property [

rdf:type sh:PropertyShape ;

sh:path dct:hasPart ;

    ] ;

sh:property [

rdf:type sh:PropertyShape ;

sh:path dct:hasPart ;

sh:qualifiedMaxCount 1 ;

sh:qualifiedMinCount 1 ;

sh:qualifiedValueShape [

sh:class ex2:Ears ;

] ;

    ] ;

sh:property [

rdf:type sh:PropertyShape ;

sh:path dct:hasPart ;

sh:qualifiedMaxCount 1 ;

sh:qualifiedMinCount 1 ;

sh:qualifiedValueShape [

sh:class ex2:Eyes ;

] ;

    ] ;

Isn’t that too much? (can I just delete?:

sh:property [

rdf:type sh:PropertyShape ;

sh:path dct:hasPart ;

    ] ;

sh:property [

rdf:type sh:PropertyShape ;

sh:path dct:hasPart ;

    ] ;

)

Thx Michel



Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist



T +31888663107
M +31630381220
E michel.bo...@tno.nl 



Location 





This message may contain information that is not intended for you. If 
you are not the addressee or if this message was sent to you by 
mistake, you are requested to inform the sender and delete the 
message. TNO accepts no liability for the content of this e-mail, for 
the manner in which you use it and for damage of any kind resulting 
from the risks inherent to the electronic transmission of messages.



--
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 topbraid-users+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[topbraid-users] Issue when using parameters on SWP service

2018-10-31 Thread William Ramos
Hi, community, I'm facing an issue when using a SWP service on my 
localhost, could you please help me to identify what's going on?

The local service URL is:
http:
//localhost:8083/tbl/swp?_viewClass=getTaxonomies:taxonomies&status=In%20use

* It is also defined on the service classes as a *spin:constrain*t, like 
this:
Argument arg:status : *xsd:string*

...given the *'status'* parameter I'm trying to do a filter in order to 
show a list of taxonomies matching the given status. 
For now, the possible values are: "*In use*" and *"Under development"*

*The SWON code looks like this:*









*Please note*: the FILTER statement highlighted in yellow *and* the SERVICE 
(*the endpoint works only under intranet conditions and due to privacy 
concerns I'm using a dummy value in the code above*), but it has a topbraid 
instance with Version 5.3.2.v20170621-1517R

By running the service and sending the parameter withing thes service URL 
as: &status=In%20use or &status=In use up to this point, *it returns an 
empty response.*

*However... *if we modify the FILTER statement from:
FILTER (?statusLabel = ?status) .
to
FILTER (?statusLabel = *'In use'*) .
*... it works fine... *and returns the expected JSON response as:

[{"status":"In use","name":"TestGeography"}, ... ]

The local instance where I'm running the described service has: *Version: 
6.0.1.v20180831-1223R.*
** Other thing to note is that; if I remove the SERVICE statement and query 
my local taxonomies it also works fine, both with the dynamic value and 
with the hardcoded string.*

*-*

*So now the questions...*
- Is there something wrong on the swon code that is causing the issue when 
using the ?status as a value taken from the http request parameters?
- Does the external endpoint and the local version's mismatch may cause 
this issue?
- What else could be happening?

If any more details are required please let me know.

Thanks.

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] sh:nodeKind questions

2018-10-31 Thread Holger Knublauch
The default value of sh:nodeKind (and any other constraint such as 
sh:maxCount) is that no constraint exists. So, values could have any 
node kind by default. If sh:datatype exists then sh:nodeKind sh:Literal 
is implicit and would be redundant. If sh:class exists then sh:nodeKind 
sh:BlankNodeOrIRI is implicit. In a typical scenario you may rather want 
to state sh:nodeKind sh:IRI.


The TBC create property constraint dialog has a drop down for the node 
kind, but does not produce such a constraint if they would match the 
above implicit values.


Holger


On 1/11/2018 4:24 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users wrote:

Ok thx
So if my owl properties always have range...my shacl always has a 
datatype or class...so then no need to use nodeshape at all..right?

The simpler the better

Verzonden van mijn Android-telefoon via TouchDown (www.symantec.com)

-Original Message-
*From:* Irene Polikoff [ir...@topquadrant.com]
*Received:* woensdag, 31 okt. 2018, 17:47
*To:* topbraid-users@googlegroups.com [topbraid-users@googlegroups.com]
*Subject:* Re: [topbraid-users] sh:nodeKind questions

Typically, you only need to specify sh:nodeKind if you can’t specify 
the sh:datatype or sh:class. For example, if you can’t say whether the 
value is a string or an integer, you could use sh:nodeKind to say that 
it is a literal.



On Oct 31, 2018, at 11:23 AM, 'Bohms, H.M. (Michel)' via TopBraid 
Suite Users > wrote:


You once explained but I cant refind.
What are the rules for sh:nodeKind?
If not specified what is the default?
Do you always pref. specify it for each relevant shape?
(when the range is known it could be derived?)
It’s not standard in the template in tbc when you want to specify?
I specify in owl datatype and object properties. Couldn’t this be 
part of the standard shacl generation?

Thx again, Michel

Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist


T +31888663107
M +31630381220
E michel.bo...@tno.nl 

Location 



 
This message may contain information that is not intended for you. If 
you are not the addressee or if this message was sent to you by 
mistake, you are requested to inform the sender and delete the 
message. TNO accepts no liability for the content of this e-mail, for 
the manner in which you use it and for damage of any kind resulting 
from the risks inherent to the electronic transmission of messages.



--
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 totopbraid-users+unsubscr...@googlegroups.com 
.

For more options, visithttps://groups.google.com/d/optout.


--
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 topbraid-users+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.
--
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 topbraid-users+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] oneOf in shacl

2018-10-31 Thread Holger Knublauch
Yes, sh:in at a node shape states that all target nodes (here: the 
instances of ex2:Category) must be one of the enumerated values.


Holger



On 1/11/2018 2:29 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users wrote:


ex2:Category

  rdf:type owl:Class ;

  rdf:type sh:NodeShape ;

rdfs:subClassOf owl:Thing ;

owl:oneOf (

ex2:Pub

ex2:Adult

ex2:Senior

) ;

.

What would the shacl look like for the yellow part?

sh:in (ex2:Pub ex2:Adult ex2:Senior) ;

Somehow….but it is not in a property shape right?

thx



Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist



T +31888663107
M +31630381220
E michel.bo...@tno.nl 



Location 





This message may contain information that is not intended for you. If 
you are not the addressee or if this message was sent to you by 
mistake, you are requested to inform the sender and delete the 
message. TNO accepts no liability for the content of this e-mail, for 
the manner in which you use it and for damage of any kind resulting 
from the risks inherent to the electronic transmission of messages.



--
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 topbraid-users+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [topbraid-users] sh:nodeKind questions

2018-10-31 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
Ok thx
So if my owl properties always have range...my shacl always has a datatype or 
class...so then no need to use nodeshape at all..right?
The simpler the better

Verzonden van mijn Android-telefoon via TouchDown (www.symantec.com)

-Original Message-
From: Irene Polikoff [ir...@topquadrant.com]
Received: woensdag, 31 okt. 2018, 17:47
To: topbraid-users@googlegroups.com [topbraid-users@googlegroups.com]
Subject: Re: [topbraid-users] sh:nodeKind questions

Typically, you only need to specify sh:nodeKind if you can’t specify the 
sh:datatype or sh:class. For example, if you can’t say whether the value is a 
string or an integer, you could use sh:nodeKind to say that it is a literal.


On Oct 31, 2018, at 11:23 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

You once explained but I cant refind.
What are the rules for sh:nodeKind?

If not specified what is the default?
Do you always pref. specify it for each relevant shape?
(when the range is known it could be derived?)

It’s not standard in the template in tbc when you want to specify?

I specify in owl datatype and object properties. Couldn’t this be part of the 
standard shacl generation?

Thx again, Michel





Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist


T +31888663107
M +31630381220
E michel.bo...@tno.nl

Location





This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. TNO accepts no liability 
for the content of this e-mail, for the manner in which you use it and for 
damage of any kind resulting from the risks inherent to the electronic 
transmission of messages.










--
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 
topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
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 
topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] sh:nodeKind questions

2018-10-31 Thread Irene Polikoff
Typically, you only need to specify sh:nodeKind if you can’t specify the 
sh:datatype or sh:class. For example, if you can’t say whether the value is a 
string or an integer, you could use sh:nodeKind to say that it is a literal.


> On Oct 31, 2018, at 11:23 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
>  wrote:
> 
> You once explained but I cant refind.
> What are the rules for sh:nodeKind?
>  
> If not specified what is the default?
> Do you always pref. specify it for each relevant shape?
> (when the range is known it could be derived?)
>  
> It’s not standard in the template in tbc when you want to specify?
>  
> I specify in owl datatype and object properties. Couldn’t this be part of the 
> standard shacl generation?
>  
> Thx again, Michel
>  
>  
>  
>  
> Dr. ir. H.M. (Michel) Böhms
> Senior Data Scientist
> 
> T +31888663107
> M +31630381220
> E michel.bo...@tno.nl 
> Location 
> 
> 
>  
>  
> This message may contain information that is not intended for you. If you are 
> not the addressee or if this message was sent to you by mistake, you are 
> requested to inform the sender and delete the message. TNO accepts no 
> liability for the content of this e-mail, for the manner in which you use it 
> and for damage of any kind resulting from the risks inherent to the 
> electronic transmission of messages.
>  
>  
>  
>  
> 
> -- 
> 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 topbraid-users+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [topbraid-users] sh:nodeKind questions

2018-10-31 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users

Hi David

That is my point.

The spec is not clear on when to use, nor specifies a default.
Tbc is not generating.

I was thinking it could be relevant to translate the fact that property is an 
owl datatype property or object property in shacl. (kind of implicit 
constraint).
But then when the range is known that info could be derived…ie xsd:string as 
rtange so sh:nodeKind is actually sh:Literal etc. So only if the range/sh:class 
is unknown it would provide this extra data.

So what is best practice?

Thx again

Ps when I said “not in template”I meant, not in:
[cid:image002.jpg@01D47140.2D492140]




Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist


T +31888663107
M +31630381220
E michel.bo...@tno.nl

Location



[cid:image003.gif@01D47140.2D492140]

This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. TNO accepts no liability 
for the content of this e-mail, for the manner in which you use it and for 
damage of any kind resulting from the risks inherent to the electronic 
transmission of messages.









From: topbraid-users@googlegroups.com  On 
Behalf Of dprice
Sent: woensdag 31 oktober 2018 17:12
To: topbraid-users@googlegroups.com
Subject: Re: [topbraid-users] sh:nodeKind questions




On 31 Oct 2018, at 15:23, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
mailto:topbraid-users@googlegroups.com>> wrote:

You once explained but I cant refind.
What are the rules for sh:nodeKind?

Here’s the official W3C spec:

https://www.w3.org/TR/shacl/#NodeKindConstraintComponent


If not specified what is the default?

Don’t think there is one according to the W3C spec.


Do you always pref. specify it for each relevant shape?
(when the range is known it could be derived?)

Not required (E.g. it does not get generated in our OWL to SHACL library).



It’s not standard in the template in tbc when you want to specify?

I just created a new SHACL Shapes RDF file in Composer 6.0 and sh:nodeKind does 
appear as a property value I can set when I created a NodeShape and 
PropertyShape instance. Where do you think it's missing?



I specify in owl datatype and object properties. Couldn’t this be part of the 
standard shacl generation?

As I said, it’s not required to convert OWL to SHACL as specified here:

https://www.topquadrant.com/2018/05/01/from-owl-to-shacl-in-an-automated-way/

Which also says:

“In TopBraid Composer, you can examine owl2shacl.ttl to see the rules used."

so you can tailor the conversion yourself if you have specific requirements.

Cheers,
David



Thx again, Michel





Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist



T +31888663107
M +31630381220
E michel.bo...@tno.nl

Location





This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. TNO accepts no liability 
for the content of this e-mail, for the manner in which you use it and for 
damage of any kind resulting from the risks inherent to the electronic 
transmission of messages.










--
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 
topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

UK +44 (0) 7788 561308
US +1 (336) 283-0808

--
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 
topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[topbraid-users] oneOf in shacl

2018-10-31 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users

ex2:Category
  rdf:type owl:Class ;
  rdf:type sh:NodeShape ;
  rdfs:subClassOf owl:Thing ;
  owl:oneOf (
  ex2:Pub
  ex2:Adult
  ex2:Senior
) ;
.

What would the shacl look like for the yellow part?


sh:in (ex2:Pub ex2:Adult ex2:Senior) ;

Somehowbut it is not in a property shape right?
thx





Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist


T +31888663107
M +31630381220
E michel.bo...@tno.nl

Location



[cid:image001.gif@01D4713F.47022BF0]

This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. TNO accepts no liability 
for the content of this e-mail, for the manner in which you use it and for 
damage of any kind resulting from the risks inherent to the electronic 
transmission of messages.









-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] sh:nodeKind questions

2018-10-31 Thread dprice


> On 31 Oct 2018, at 15:23, 'Bohms, H.M. (Michel)' via TopBraid Suite Users 
>  wrote:
> 
> You once explained but I cant refind.
> What are the rules for sh:nodeKind?

Here’s the official W3C spec:

https://www.w3.org/TR/shacl/#NodeKindConstraintComponent 


>  
> If not specified what is the default?

Don’t think there is one according to the W3C spec.

> Do you always pref. specify it for each relevant shape?
> (when the range is known it could be derived?)

Not required (E.g. it does not get generated in our OWL to SHACL library).

>  
> It’s not standard in the template in tbc when you want to specify?

I just created a new SHACL Shapes RDF file in Composer 6.0 and sh:nodeKind does 
appear as a property value I can set when I created a NodeShape and 
PropertyShape instance. Where do you think it's missing?

>  
> I specify in owl datatype and object properties. Couldn’t this be part of the 
> standard shacl generation?

As I said, it’s not required to convert OWL to SHACL as specified here:

https://www.topquadrant.com/2018/05/01/from-owl-to-shacl-in-an-automated-way/ 


Which also says:

“In TopBraid Composer, you can examine owl2shacl.ttl to see the rules used."

so you can tailor the conversion yourself if you have specific requirements.

Cheers,
David

>  
> Thx again, Michel
>  
>  
>  
>  
> Dr. ir. H.M. (Michel) Böhms
> Senior Data Scientist
> 
> T +31888663107
> M +31630381220
> E michel.bo...@tno.nl 
> Location 
> 
> 
>  
>  
> This message may contain information that is not intended for you. If you are 
> not the addressee or if this message was sent to you by mistake, you are 
> requested to inform the sender and delete the message. TNO accepts no 
> liability for the content of this e-mail, for the manner in which you use it 
> and for damage of any kind resulting from the risks inherent to the 
> electronic transmission of messages.
>  
>  
>  
>  
> 
> -- 
> 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 topbraid-users+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

UK +44 (0) 7788 561308
US +1 (336) 283-0808‬

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[topbraid-users] sh:nodeKind questions

2018-10-31 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
You once explained but I cant refind.
What are the rules for sh:nodeKind?

If not specified what is the default?
Do you always pref. specify it for each relevant shape?
(when the range is known it could be derived?)

It's not standard in the template in tbc when you want to specify?

I specify in owl datatype and object properties. Couldn't this be part of the 
standard shacl generation?

Thx again, Michel





Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist


T +31888663107
M +31630381220
E michel.bo...@tno.nl

Location



[cid:image001.gif@01D47135.FF525C20]

This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. TNO accepts no liability 
for the content of this e-mail, for the manner in which you use it and for 
damage of any kind resulting from the risks inherent to the electronic 
transmission of messages.









-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[topbraid-users] shacl generation

2018-10-31 Thread 'Bohms, H.M. (Michel)' via TopBraid Suite Users
When generating shacl I get:


ex2:Head
  sh:property [
  rdf:type sh:PropertyShape ;
  sh:path dct:hasPart ;
] ;
  sh:property [
  rdf:type sh:PropertyShape ;
  sh:path dct:hasPart ;
] ;
  sh:property [
  rdf:type sh:PropertyShape ;
  sh:path dct:hasPart ;
  sh:qualifiedMaxCount 1 ;
  sh:qualifiedMinCount 1 ;
  sh:qualifiedValueShape [
  sh:class ex2:Ears ;
] ;
] ;
  sh:property [
  rdf:type sh:PropertyShape ;
  sh:path dct:hasPart ;
  sh:qualifiedMaxCount 1 ;
  sh:qualifiedMinCount 1 ;
  sh:qualifiedValueShape [
  sh:class ex2:Eyes ;
] ;
] ;
Isn't that too much? (can I just delete?:
  sh:property [
  rdf:type sh:PropertyShape ;
  sh:path dct:hasPart ;
] ;
  sh:property [
  rdf:type sh:PropertyShape ;
  sh:path dct:hasPart ;
] ;

)

Thx Michel







Dr. ir. H.M. (Michel) Böhms
Senior Data Scientist


T +31888663107
M +31630381220
E michel.bo...@tno.nl

Location



[cid:image001.gif@01D4712D.31459DE0]

This message may contain information that is not intended for you. If you are 
not the addressee or if this message was sent to you by mistake, you are 
requested to inform the sender and delete the message. TNO accepts no liability 
for the content of this e-mail, for the manner in which you use it and for 
damage of any kind resulting from the risks inherent to the electronic 
transmission of messages.









-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [topbraid-users] SPARQL Web Pages (SWP) web service with argument's name starts with underscore(_)

2018-10-31 Thread Richard Cyganiak
Hi Sanjeev,

Request parameter names starting with underscore are reserved by the system and 
not passed through to the SWP service body.

But their values can be accessed using the ui:param function. Example:



See http://uispin.org/ui.html#param

Best,
Richard



> On 31 Oct 2018, at 10:21, Sanjeev Devireddy  
> wrote:
> 
> Hi,
> When an argument name starts with underscore(_) then the argument's value 
> is not received(always null) in the web service body (ui:prototype). So, my 
> question is that is there a different way to handle the arguments whose name 
> starts with underscore(_)?  Please find the below screenshots and the 
> attachment for the source code.
> 
> 
> 
> 
> 
> http://localhost:8083/tbl/swp?_viewClass=fetch:names&name=TopBraid&_sortBy=name
> 
> 
> 
> Thanks,
> Sanjeev
> 
> -- 
> 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 topbraid-users+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .
>  Image 2.png>

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[topbraid-users] SPARQL Web Pages (SWP) web service with argument's name starts with underscore(_)

2018-10-31 Thread Sanjeev Devireddy
Hi,
When an argument name starts with underscore(_) then the argument's 
value is not received(always null) in the web service body (ui:prototype). 
So, my question is that is there a different way to handle the arguments 
whose name starts with underscore(_)?  Please find the below screenshots 
and the attachment for the source code.




*http://localhost:8083/tbl/swp?_viewClass=fetch:names&name=TopBraid&_sortBy=name*


Thanks,
Sanjeev

-- 
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 topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


fetch.ui.ttlx
Description: Binary data