Monday, March 27, 2017

Dokieli exploration log ( cont . ) ...

PUT
XHR
https://bshambaugh.databox.me/acbb6d44-e31e-4f7f-8a3d-6e65cc97a379 [HTTP/2.0 201 Created 171ms]

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta charset="utf-8" />
        <title>https://bshambaugh.databox.me/acbb6d44-e31e-4f7f-8a3d-6e65cc97a379</title>
    </head>
    <body>
        <main>
<article id="acbb6d44-e31e-4f7f-8a3d-6e65cc97a379" about="i:" typeof="oa:Annotation" prefix="rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# schema: http://schema.org/ dcterms: http://purl.org/dc/terms/ oa: http://www.w3.org/ns/oa# as: https://www.w3.org/ns/activitystreams# i: https://bshambaugh.databox.me/acbb6d44-e31e-4f7f-8a3d-6e65cc97a379">
  <h1 property="schema:name">Brent Shambaugh <span rel="oa:motivatedBy" resource="oa:replying">replies</span></h1>
  <dl class="author-name"><dt>Authors</dt><dd><span rel="schema:creator"><span about="https://bshambaugh.databox.me/profile/card#me" typeof="schema:Person"><img alt="" height="48" rel="schema:image" src="https://www.gravatar.com/avatar/44ddb1f95dd88538aba49334131c4295?d=404&s=300" width="48" /> <a href="https://bshambaugh.databox.me/profile/card#me"><span about="https://bshambaugh.databox.me/profile/card#me" property="schema:name">Brent Shambaugh</span></a></span></span></dd></dl>
  <dl class="published"><dt>Published</dt><dd><a href="https://bshambaugh.databox.me/acbb6d44-e31e-4f7f-8a3d-6e65cc97a379"><time datetime="2017-03-27T15:15:42.068Z" datatype="xsd:dateTime" property="schema:datePublished" content="2017-03-27T15:15:42.068Z">2017-03-27 15:15:42</time></a></dd></dl>
  <dl class="rights"><dt>Rights</dt><dd><a href="https://creativecommons.org/licenses/by/4.0/" rel="dcterms:rights" title="Creative Commons Attribution">CC BY 4.0</a></dd></dl>
  <dl class="canonical"><dt>Canonical</dt><dd about="i:" rel="oa:canonical" resource="urn:uuid:2f8abc99-0e7d-4849-8a9f-7d28f9121365">2f8abc99-0e7d-4849-8a9f-7d28f9121365</dd></dl>
  <dl class="target"><dt><a href="https://bshambaugh.databox.me/Public/ed42bcb8-8a9d-48bf-a150-6c9247998c0c#introduction" rel="oa:hasTarget">In reply to</a> (<a about="https://bshambaugh.databox.me/Public/ed42bcb8-8a9d-48bf-a150-6c9247998c0c#introduction" href="https://bshambaugh.databox.me/Public/ed42bcb8-8a9d-48bf-a150-6c9247998c0c" rel="oa:hasSource" typeof="oa:SpecificResource">part of</a>)</dt><dd><blockquote about="https://bshambaugh.databox.me/Public/ed42bcb8-8a9d-48bf-a150-6c9247998c0c#introduction" cite="https://bshambaugh.databox.me/Public/ed42bcb8-8a9d-48bf-a150-6c9247998c0c#introduction"><span rel="oa:hasSelector" resource="i:#fragment-selector" typeof="oa:FragmentSelector"><meta property="rdf:value" content="#introduction" xml:lang="" lang="" rel="dcterms:conformsTo" resource="https://tools.ietf.org/html/rfc3987" /><span rel="oa:refinedBy" resource="i:#text-quote-selector" typeof="oa:TextQuoteSelector"><span property="oa:prefix" xml:lang="en" lang="en">ation, while others are free to </span><mark property="oa:exact" xml:lang="en" lang="en">selectively (dis-)trust certain sources using any mechanism they desire</mark><span property="oa:suffix" xml:lang="en" lang="en">.</span></span></span></blockquote></dd></dl><dl class="renderedvia"><dt>Rendered via</dt><dd><a about="https://bshambaugh.databox.me/Public/ed42bcb8-8a9d-48bf-a150-6c9247998c0c#introduction" href="https://dokie.li/" rel="oa:renderedVia">dokieli</a></dd></dl>
  <section id="note-acbb6d44-e31e-4f7f-8a3d-6e65cc97a379" rel="oa:hasBody" resource="i:#note-acbb6d44-e31e-4f7f-8a3d-6e65cc97a379"><h2 property="schema:name">Note</h2><div datatype="rdf:HTML" property="rdf:value schema:description" resource="i:#note-acbb6d44-e31e-4f7f-8a3d-6e65cc97a379" typeof="oa:TextualBody">Fake News!</div><dl class="rights"><dt>Rights</dt><dd><a href="https://creativecommons.org/licenses/by/4.0/" rel="dcterms:rights" title="Creative Commons Attribution">CC BY 4.0</a></dd></dl></section>
</article>

        </main>
    </body>
</html>

POST
XHR
https://linkedresearch.org/inbox/csarven.ca/dokieli-rww/ [HTTP/2.0 201 Created 191ms]

@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix as: <https://www.w3.org/ns/activitystreams#> .
@prefix oa: <http://www.w3.org/ns/oa#> .
@prefix schema: <http://schema.org/> .
<> a as:Announce
  ; as:object <https://bshambaugh.databox.me/acbb6d44-e31e-4f7f-8a3d-6e65cc97a379>
  ; as:target <https://bshambaugh.databox.me/Public/ed42bcb8-8a9d-48bf-a150-6c9247998c0c#introduction>
  ; as:updated "2017-03-27T15:15:42.717Z"^^xsd:dateTime
  ; as:actor <https://bshambaugh.databox.me/profile/card#me>
  ; schema:license <https://creativecommons.org/licenses/by/4.0/>
  .
<https://bshambaugh.databox.me/acbb6d44-e31e-4f7f-8a3d-6e65cc97a379> a oa:Annotation
  ; oa:motivation oa:replying

Interesting functions:

positionInteraction: function(noteIRI, containerNode) {...}

But it was this:

createNoteDataHTML: function(n) { .. }

For PUT ( https://github.com/linkeddata/dokieli/blob/master/scripts/do.js ) it is in:
2514 - 2517 :

if (inbox.length > 0) {
inbox = inbox[0];
var notificationStatements = '<' + noteIRI + '> a oa:Annotation\n\
; oa:motivation ' + motivatedBy + '\n\
.';
var notificationData = {
"type": ['as:Announce'],
"inbox": inbox,
"object": noteIRI,
"target": iri,
"license": noteData.license["iri"],
"statements": notificationStatements
};

No comments:

Post a Comment