Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(json-ld): use a Skolem IRI instead of blank nodes #4731

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Apr 27, 2022

Implements https://www.w3.org/TR/rdf11-concepts/Overview.html#section-skolemization instead of the previous blank nodes.

This patch also gives the ability to disable such @id using something like:

    #[ApiProperty(
        types: ['http://schema.org/MonetaryAmount'],
        iri: false
    )]
    public MonetaryAmount $totalPrice;

@soyuka soyuka mentioned this pull request Apr 27, 2022
@@ -13,10 +13,7 @@

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A note on this diff: usually ApiProperty was supposed to be backward compatible but this was reverted and we forgot to remove some of the portable code.

@soyuka soyuka merged commit 4256fa0 into api-platform:main Apr 27, 2022
@soyuka soyuka deleted the fix/blank-nodes branch April 27, 2022 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant