If you are already using the URI counter, then the simplest way is to create a 
property value rule for skos:notation that would infer the value from the URI 
by taking the local part of the URI. 

Property value rule values are inferred dynamically without being persisted. 
They are available for query. You would not be able to update them using a form 
as such fields are not editable. You could, however, add a value for a property 
backed by a rule using the source code. In this case, if the inferred value is 
different, you would get two values.

If you want such rule-based values to be physically stored, you can 
periodically run the inferencing under Transform tab to persist these values.

> On Feb 1, 2021, at 3:53 PM, Dan Segal <[email protected]> wrote:
> 
> Hello,
> 
> In EDG, is there a way to auto-populate the value of a datatype property?
> 
> For example, let's say we have an attribute such as skos:notation .
> 
> We want to auto-populate the attribute at the time that we create an 
> Instance; for example, with a sequential number value  (similar to the 
> counter method used when constructing URIs), so that the resulting graph 
> would contain statements such as:
> 
> example:1000 skos:notation 1000.
> example:1001 skos:notation 1001.
> example:1002 skos:notation 1002.
> 
> (The predicate does not need to match the URI counter.  It just needs to be a 
> unique, and preferably sequential, value).
> 
> Dan 
> 
> 
> 
> -- 
> 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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/3ee513ef-21cb-4eab-ba43-98970e845db1n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/3ee513ef-21cb-4eab-ba43-98970e845db1n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/E34923BA-95A9-43E8-8C06-EC4BCB2817EB%40topquadrant.com.

Reply via email to