Re: @id and nquad in the playground

On 30/06/2025 10:09, Melvin Carvalho wrote:
>
>
> po 30. 6. 2025 v 9:58 odesílatel Vladimir Alexiev 
> <vladimir.alexiev@graphwise.ai> napsal:
>
>     You need to add a base:
>
>     {
>       "@context": {
>         "@vocab": "urn:solid:",
>         "@base": "https://example.org/"
>       },
>       "bookmarks": [
>         {
>           "@id": "#751229072.422",
>           "@type": "Bookmark",
>           "url": "https://markbook.org/",
>           "title": "Markbook",
>           "tags": [],
>           "created": 1751229072,
>           "updated": 1751229072,
>           "isFavorite": 1,
>           "isArchived": 0
>         }
>       ]
>     }
>
>
> Thanks alot.  Is the #link not relative to the document, though?
It is, of course. But in the playground, the "document" you are editing 
has not obvious URL...
(you might expect that the URL of the playground itself could be used, 
but this is a bit of a stretch, that the developers of the playground 
clearly didn't want to make)
>
> It is in html, or turtle, for example.
>
>
>     On Mon, 30 Jun 2025, 10:32 Melvin Carvalho,
>     <melvincarvalho@gmail.com> wrote:
>
>         Hi All
>
>         I'm trying two formats in the playground: [1]
>
>         {
>           "@context": {
>             "@vocab": "urn:solid:"
>           },
>           "bookmarks": [
>             {
>               "id": "#1751229072.422",
>               "@type": "Bookmark",
>               "url": "https://markbook.org/",
>               "title": "Markbook",
>               "tags": [],
>               "created": 1751229072,
>               "updated": 1751229072,
>               "isFavorite": 1,
>               "isArchived": 0
>             }
>           ]
>         }
>
>         This first one works
>
>         but when I change id -> @id all the nquads disappear?
>
>         Is this a JSON-LD thing or a playground issue?
>
>         Thanks in advance
>         Melvin
>
>         [1]
>         https://json-ld.org/playground/#startTab=tab-nquads&json-ld=%7B%22%40context%22%3A%7B%22%40vocab%22%3A%22urn%3Asolid%3A%22%7D%2C%22bookmarks%22%3A%5B%7B%22id%22%3A%22%231751229072.422%22%2C%22%40type%22%3A%22Bookmark%22%2C%22url%22%3A%22https%3A%2F%2Fmarkbook.org%2F%22%2C%22title%22%3A%22Markbook%22%2C%22tags%22%3A%5B%5D%2C%22created%22%3A1751229072%2C%22updated%22%3A1751229072%2C%22isFavorite%22%3A1%2C%22isArchived%22%3A0%7D%5D%7D&frame=%7B%7D&context=%7B%7D
>         <https://json-ld.org/playground/#startTab=tab-nquads&json-ld=%7B%22%40context%22%3A%7B%22%40vocab%22%3A%22urn%3Asolid%3A%22%7D%2C%22bookmarks%22%3A%5B%7B%22id%22%3A%22%231751229072.422%22%2C%22%40type%22%3A%22Bookmark%22%2C%22url%22%3A%22https%3A%2F%2Fmarkbook.org%2F%22%2C%22title%22%3A%22Markbook%22%2C%22tags%22%3A%5B%5D%2C%22created%22%3A1751229072%2C%22updated%22%3A1751229072%2C%22isFavorite%22%3A1%2C%22isArchived%22%3A0%7D%5D%7D&frame=%7B%7D&context=%7B%7D>
>

Received on Thursday, 3 July 2025 10:35:40 UTC