Re: [topbraid-users] Compiling Validation and UI/Form semanatics

2018-04-14 Thread Holger Knublauch



On 14/04/2018 3:59, Irene Polikoff wrote:

Overrides are not supported, but inheritance is supported.

For example, you could define minCount but not define maxCount, then 
add a definition of maxCount in the “sub shape”.


There are 2 ways of addressing this:

  * Classes can also be shapes. If you model that way, all you need to
do is to create a class of all things that your general property
constraints will apply to, then create subclasses and add
additional constraints to them.
  o For example, you would create a class Person with property
shapes that say that a person must have name and age. Then you
define a subclass Student with property shapes that say that
students age must be greater than 15 and they need to have
student ID.
  * Otherwise, shapes can contain other shapes. You would define a
general shape with constraints you want to use in other shapes.
When you define more specific shapes, you would include the
general shape into them using sh:and.
  o https://www.w3.org/TR/shacl/#AndConstraintComponent




An alternative to using sh:and is simply sh:node. In shapes, sh:node 
fulfills a similar role as rdfs:subClassOf for classes. For example 
state ex:SubShape sh:node ex:SuperShape to ensure that all constraints 
defined for SuperShape also apply to the target nodes of SubShape. 
(Whether tools will understand this form of inheritance is another 
question - currently not all places of the TopBraid forms would use 
sh:node although I'd like to move there).


Holger






On Apr 13, 2018, at 1:20 PM, Rebecca Younes > wrote:


A related question: is it possible for one shape to invoke, inherit, 
and/or override values from another shape? For example, I would like 
to create a general property shape for a title property that defines 
cardinality, sh:class, sh:path, etc. Then in the context of different 
form shapes, I would like to define specific names, descriptions, 
orders, etc.: "Album title," "Book title," and so on. Perhaps I would 
like to define a default name "Title," which could be overridden by 
the specific form shapes. Is any of this possible?


Thanks.

Rebecca Younes
Semantic Application Developer and Ontology Engineer
Cornell University Library Information Technology


On Thursday, April 12, 2018 at 4:17:52 PM UTC-4, Steven Folsom wrote:

I would be interested to be able to look at any implementations
where /Validation/ shapes are compiled with non-Validation shapes
to build Forms, where that the validation axioms are maintained
in separate shapes from non-validation (UI) shapes?


Is anyone doing this? We’ve been considering it for easier
maintenance of our various shapes, but right now it’s easier to
see all the axioms needed for the app in one place…


Thanks,
Steven


-- 


Steven Folsom

Metadata Specialist

Cornell University Library

pronouns: he/him/they/them

http://orcid.org/-0003-3427-5769


http://vivo.cornell.edu/individual/sf433


@sf433



--
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] Possible limitations when invoking SPARQLMotion scripts via a SPARQL endpoint

2018-04-14 Thread Holger Knublauch
Are there any updates, ie changes made by this script? That would be against 
the contract of SPARQL functions. Also feel free to send me a copy off-list if 
you like.

Holger


Sent from my iPad

> On 14 Apr 2018, at 09:55, Dimitrios Tzannetos 
>  wrote:
> 
> Hi,
> 
> I am working in the research group of Dr. Steven Ray at CMU and I would like 
> to ask whether any arbitrary SPARQLMotion script could be invoked via a 
> SPARQL query to a SPARQL endpoint. 
> 
> More specifically, we have several SPARQLMotion scripts and our system's 
> architecture is such that the clients send SPARQL queries to an endpoint, 
> which they call various SPIN functions that correspond to the registered 
> functions of the SPARQLMotion scripts. This process seemed to work fine until 
> a more complex SPARQLMotion script was deployed, involving an 
> IterateOverSelect and BranchByASK modules (all other - still working - 
> scripts don't include these modules). It seems that the flow of execution 
> gets stuck on these two modules. However, there is no issue when this 
> SPARQLMotion scripts is invoked 'directly' via a web-service call. Therefore, 
> my question is whether there are any limitations regarding the modules that 
> can be used in a SPARQLMotion script if it is invoked through a SPIN function 
> call, like the one shown below: 
> 
> SELECT ?answer
> 
> WHERE {
> 
> BIND ((?arg1) AS 
> ?answer)
> 
>  }
> 
> 
> 
> If these limitations cannot be surpassed, are there any alternatives that 
> support invocation through a SPARQL endpoint? 
> 
> Thank you,
> Dimitrios
> -- 
> 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.