-
Notifications
You must be signed in to change notification settings - Fork 2
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: id
and state
in Data Model
#17
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -8,13 +8,13 @@ A [PREP] notification from an LDP Resource on a [=Solid server=] MUST have the f | |||||
|
||||||
<dl> | ||||||
|
||||||
<dt id="notification-property-id"><code>*id* <xs:string></code> | ||||||
<dd> an opaque identifier for the notification. Can be used to set `Last-Event-ID` in a subsequent [PREP] notifications request. | ||||||
<dt id="notification-property-id"><code>*id* <rdfs:subject></code> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IRI itself is not a data type... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. only literals have data type, not named or blanked nodes https://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal |
||||||
<dd> a unique identifier for a notification. | ||||||
|
||||||
<dt id="notification-property-type"><code>*type* <as:Activity></code> | ||||||
<dt id="notification-property-type"><code>*as:type* <as:Activity></code> | ||||||
<dd> the [[ACTIVITYSTREAMS-VOCABULARY#activity-types|type of activity]] that triggered the notification. | ||||||
|
||||||
<dt id="notification-property-published"><code>*published* <xs:dateTime></code> | ||||||
<dt id="notification-property-published"><code>*as:published* <xs:dateTime></code> | ||||||
<dd> the date and time of the notification. | ||||||
|
||||||
</dl> | ||||||
|
@@ -23,8 +23,8 @@ A [PREP] notification from an LDP Resource on a [=Solid server=] SHOULD have the | |||||
|
||||||
<dl> | ||||||
|
||||||
<dt id="notification-property-state"><code>*state* <xs:string></code> | ||||||
<dd> an opaque identifier for the last known state of the resource. | ||||||
<dt id="notification-property-state"><code>*notify:state* <xs:string></code> | ||||||
<dd> an opaque identifier for the last known state of the resource. Can be used to set `Last-Event-ID` in a subsequent [PREP] notifications request. | ||||||
|
||||||
</dl> | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is mention of rdfs:subject necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the closest thing I could find that indicates, that
id
is expected to be IRI. How else can I specify the type ofid
using RDF?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See also https://www.w3.org/TR/xmlschema11-2/#anyURI
I don't have a strong opinion on only using IRI here. So, I'll dial back and suggest that a Note about what implementers may want to consider can be useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy for you to suggest one. But in another PR so that it can be traced!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saying IRI should be enough; using
rdf:subject
seems confusing and possibly incorrect.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elf-pavlik The context above as @csarven points out is that, JSON-LD spec allows
@id
to be IRI or bnode. The latter, though not meaningful, is not expressly prohibited, and I don't want to add additional constraints without reason. I open to suggestion as to how to specify type forid
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in #18
:Notification IRI {
requires it to be an IRI