Skip to content

SHACL error report _:b7, _:b11 #4

Description

@Filipi-Soares

Error id: _:b7, _:b11

You have dcat:theme: "emissies". The report shows two different failures for that same value:

  • _:b7 - it must be an instance of skos:Concept
  • _:b11 - it must have node kind BlankNodeOrIRI

"emissies" is a literal string. The shape expects a resource node, not a string, and specifically a resource that is a skos:Concept. In this example you only added one dcat:theme, but if you develop a connector to call the AgroPortal Annotator API for your dcat:keywords, you could get more dcat:themes, as in my example below.

Fix:

        "dcat:theme": {
            "@id": "http://aims.fao.org/aos/agrovoc/c_537c8433",
            "@type": "skos:Concept",
            "skos:prefLabel": {
                "@language": "en",
                "@value": "emissions from agriculture"
            }
        },
        "dcat:theme": {
            "@id": "http://aims.fao.org/aos/agrovoc/c_34841",
            "@type": "skos:Concept",
            "skos:prefLabel": {
                "@language": "en",
                "@value": "greenhouse gases"
            }
        },
        "dcat:theme": {
            "@id": "http://aims.fao.org/aos/agrovoc/c_1665",
            "@type": "skos:Concept",
            "skos:prefLabel": {
                "@language": "en",
                "@value": "climate"
            }
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions