Shapes for some basic patterns

27 views
Skip to first unread message

robatki...@gmail.com

unread,
Feb 14, 2022, 7:52:59 AM2/14/22
to TopBraid Suite Users

1. I have a propertyshape using  sh:subjectTargetsOf rdfs:comment that works fine in that it puts a comment option on every object that includes it..  but if there is a value in the comment then EDG 7.1 and 7.0 throw GraphQL errors when "problems and suggestions" are turned on.   Is this a bug and/or something I can fix somehow ? 

2. I cannot find any guidance how to use sh:BlankNodeOrLiteral - I want to allow either a single literal or a more complex qualified object in several places, what would a shape look like
for example - i have a measure where i default an assumption about the units of measure, but I want to add a node with an explicit units of measure in some circumstances...

Cheers

Holger Knublauch

unread,
Feb 15, 2022, 11:06:14 PM2/15/22
to topbrai...@googlegroups.com

On 14 Feb 2022, at 11:52 pm, robatki...@gmail.com <robatki...@gmail.com> wrote:


1. I have a propertyshape using  sh:subjectTargetsOf rdfs:comment that works fine in that it puts a comment option on every object that includes it..  but if there is a value in the comment then EDG 7.1 and 7.0 throw GraphQL errors when "problems and suggestions" are turned on.   Is this a bug and/or something I can fix somehow ? 

What errors do you see. Did you mean sh:targetSubjectsOf?


2. I cannot find any guidance how to use sh:BlankNodeOrLiteral - I want to allow either a single literal or a more complex qualified object in several places, what would a shape look like
for example - i have a measure where i default an assumption about the units of measure, but I want to add a node with an explicit units of measure in some circumstances...

Sh:BlankNodeOrLiteral is typically (only) used in conjunction with sh:nodeKind, so it would only cover the very basic checking that none of the values is a URI resource. I think you are looking for an sh:or constraint that covers both cases.

Holger



Cheers

--
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/80a5da2a-bd12-4807-9b67-0c20df24b1b7n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages