Skip to content

Unexpected JSON-LD #12

@coret

Description

@coret

I'm using Nested Data Types version 3.3.0 with Omeka S version 3.2.1 and I the JSON-LD is unexpected (not as shown in README):

The data input:
image

The JSON-LD output:

    "pnv:hasName": [
        {
            "type": "nesteddatatype#pnv:PersonName",
            "property_id": 1292,
            "property_label": "heeft naam",
            "is_public": true,
            "@value": "Bob; Coret",
            "properties": [
                {
                    "@type": "pnv:PersonName",
                    "pnv:givenName": {
                        "5": {
                            "@value": "Bob"
                        }
                    },
                    "pnv:baseSurname": {
                        "5": {
                            "@value": "Coret"
                        }
                    }
                }
            ]
        }
    ],

Based on the README I was expecting:

{
    "type": "nesteddatatype#pnv:PersonName",
    "property_id": 1292,
    "property_label": "heeft naam",
    "is_public": true,
    "@value": [
        {
            "@type": "pnv:PersonName",
            "pnv:givenName": [
                {
                    "@value": "Bob"
                }
            ],
            "pnv:baseSurname": [
                {
                     "@value": "Coret"
                }
            ]
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions