Friday, November 24, 2017

Shacl Links and input graph that passes the SHACL Playground Validator

SHACL Tutorial (TopBraid): https://www.topquadrant.com/technology/shacl/tutorial/

SHACL in RWW CG blog post for October:
https://www.w3.org/community/rww/2017/10/03/read-write-web-q3-summary-2017/

SHACL Links: http://shacl.org/playground/

to pass the validator try:

{
    "@context": { "@vocab": "http://schema.org/" },

    "@id": "http://example.org/ns#Bob",
    "@type": "Person",
    "givenName": "Robert",
    "familyName": "Junior",
    "birthDate": "1971-07-07",
    "deathDate": "1981-09-10",
    "address": {
        "@id": "http://example.org/ns#BobsAddress",
        "streetAddress": "1600 Amphitheatre Pkway",
        "postalCode": 19404
    }
}

Now give bob a gender:

{
    "@context": { "@vocab": "http://schema.org/" },

    "@id": "http://example.org/ns#Bob",
    "@type": "Person",
    "givenName": "Robert",
    "familyName": "Junior",
    "gender" : "male",
    "birthDate": "1971-07-07",
    "deathDate": "1981-09-10",
    "address": {
        "@id": "http://example.org/ns#BobsAddress",
        "streetAddress": "1600 Amphitheatre Pkway",
        "postalCode": 19404
    }
}

No comments:

Post a Comment