How to map the uri to the [site:url]/node/[nid] path?

Created on 14 May 2024, 6 months ago

I set as id field as below:

Howevever, on the generated jsonld, it shows as https://***/node/8892de33-65e7-4475-a05b-4690c063964c

💬 Support request
Status

Active

Version

1.0

Component

Documentation

Created by

🇨🇳China fishfree

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @fishfree
  • 🇷🇴Romania claudiu.cristea Arad 🇷🇴

    When you create a new node, the URI is auto generated using this plugin: \Drupal\rdf_sync\Plugin\rdf_sync\RdfUriGenerator\DefaultRdfUriGenerator. You can create your custom plugin in a custom module, then select it in "URI generator plugin" dropdown

    Right now, there's no way to set the URI manually, in the node form. I think it can be done but needs some work. Contribution is welcomed.

  • 🇨🇳China fishfree

    @claudiu Thank you for your explanation. Why do you specify UUID as the URI in DefaultRdfUriGenerator.php file? Are there some domain specifications or best practice guidelines?

  • 🇷🇴Romania claudiu.cristea Arad 🇷🇴

    Just needed something that makes the URI unique

  • 🇷🇴Romania claudiu.cristea Arad 🇷🇴

    Anything else we can help here. If not, please close the ticket.

  • Status changed to Postponed: needs info about 19 hours ago
  • 🇷🇴Romania claudiu.cristea Arad 🇷🇴

    Anything else we can do here?

Production build 0.71.5 2024