Data validation in EDG - Use of undefined property

19 views
Skip to first unread message

Fan Li

unread,
Aug 1, 2019, 9:29:08 AM8/1/19
to TopBraid Suite Users
I imported the shapes and data graphs from the SHACL playground (https://shacl.org/playground/) into EDG and got 5 validation errors:


Missing label
Value:
Bob
Suggestion:
Use of undefined property
Property:
http://schema.org/familyName
Value:
Junior
Use of undefined property
Property:
http://schema.org/deathDate
Value:
1968-09-10
Value does not have shape schema:AddressShape
Property:
http://schema.org/address
Value:
BobsAddress
Value is not < value of schema:deathDate
Property:
http://schema.org/birthDate
Value:
1971-07-07

I understand the first and the last 2 errors but not sure what exactly "Use of undefined property" means. Where should I define those properties?

I also looked at the validation SPARQL in "teamworkconstraints:UndefinedPredicateConstraint" but don't quite understand it.

SELECT $this ?path ?value
WHERE {
$this ?path ?value .
FILTER (?path NOT IN (<http://topbraid.org/search#defaultSearch>)) .
    FILTER NOT EXISTS { ?path ?p ?o } 
    FILTER NOT EXISTS { ?ps sh:path ?path } 
}

Thanks!

Holger Knublauch

unread,
Aug 1, 2019, 7:18:45 PM8/1/19
to topbrai...@googlegroups.com

A property is considered "undefined" if it does not appear as subject of any triple (e.g. ex:myProperty rdf:type rdf:Property would resolve that) and does not appear in a SHACL property shape (?ps sh:path ex:myProperty).

In this particular case, include the SHACL version of schema.org to resolve the references of familyName and deathDate.

Holger

--
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/96685ea3-eeb6-4962-91fc-f7f06eb35825%40googlegroups.com.

Fan Li

unread,
Aug 2, 2019, 7:49:25 AM8/2/19
to TopBraid Suite Users
Thanks, Holger. I understand it now.
To unsubscribe from this group and stop receiving emails from it, send an email to topbrai...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages