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

Add Dokieli bookmarks format #28

Open
michielbdejong opened this issue Feb 2, 2024 · 5 comments
Open

Add Dokieli bookmarks format #28

michielbdejong opened this issue Feb 2, 2024 · 5 comments

Comments

@michielbdejong
Copy link
Member

michielbdejong commented Feb 2, 2024

See Sarven's message in solid/specification on 31 Jan 2024: https://matrix.to/#/!QxZtVBYQfMeMTnespj:gitter.im/$6pNdQaTDnyvoMKhqsv68zwyoXyAFnW9oEJkegM5Forc?via=gitter.im&via=matrix.org&via=envs.net

curl -H'Accept: application/ld+json' https://linkedresearch.org/annotation/csarven.ca/%23i/9b041688-2491-4b41-98b5-e06caf091cda.jsonld | jq
{
  "@id": "",
  "@type": [
    "http://www.w3.org/ns/oa#Annotation"
  ],
  "http://schema.org/name": {
    "@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral",
    "@value": "Sarven Capadisli bookmarks"
  },
  "http://www.w3.org/ns/oa#motivatedBy": {
    "@id": "http://www.w3.org/ns/oa#bookmarking"
  },
  "http://schema.org/creator": {
    "@id": "https://csarven.ca/#i",
    "@type": [
      "http://schema.org/Person"
    ],
    "http://schema.org/image": {
      "@id": "https://csarven.ca/media/images/sarven-capadisli.jpg"
    },
    "http://schema.org/name": {
      "@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral",
      "@value": "Sarven Capadisli"
    }
  },
  "http://schema.org/datePublished": {
    "@type": "http://www.w3.org/2001/XMLSchema#dateTime",
    "@value": "2024-01-31T10:36:18.984Z"
  },
  "http://www.w3.org/ns/oa#canonical": {
    "@id": "urn:uuid:9b041688-2491-4b41-98b5-e06caf091cda"
  },
  "http://www.w3.org/ns/oa#hasTarget": {
    "@id": "https://pdsinterop.org/conventions/bookmark/#main-content",
    "@type": [
      "http://www.w3.org/ns/oa#SpecificResource"
    ],
    "http://www.w3.org/ns/oa#hasSource": {
      "@id": "https://pdsinterop.org/conventions/bookmark/"
    },
    "http://purl.org/dc/terms/language": {
      "@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral",
      "@value": "en-US"
    },
    "http://www.w3.org/ns/oa#hasSelector": {
      "@id": "#fragment-selector",
      "@type": [
        "http://www.w3.org/ns/oa#FragmentSelector"
      ],
      "http://purl.org/dc/terms/conformsTo": {
        "@id": "https://tools.ietf.org/html/rfc3987"
      },
      "http://www.w3.org/1999/02/22-rdf-syntax-ns#value": {
        "@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral",
        "@value": "main-content"
      },
      "http://www.w3.org/ns/oa#refinedBy": {
        "@id": "#text-quote-selector",
        "@type": [
          "http://www.w3.org/ns/oa#TextQuoteSelector"
        ],
        "http://www.w3.org/ns/oa#prefix": {
          "@language": "en-us",
          "@value": ""
        },
        "http://www.w3.org/ns/oa#exact": {
          "@language": "en-us",
          "@value": "There are several formats for bookmarks."
        },
        "http://www.w3.org/ns/oa#suffix": {
          "@language": "en-us",
          "@value": " All of them (so far) use http:/"
        }
      }
    },
    "http://www.w3.org/ns/oa#renderedVia": {
      "@id": "https://dokie.li/"
    }
  },
  "http://www.w3.org/ns/oa#hasBody": [
    {
      "@id": "#note-9b041688-2491-4b41-98b5-e06caf091cda",
      "http://www.w3.org/ns/oa#hasPurpose": {
        "@id": "http://www.w3.org/ns/oa#describing"
      },
      "http://schema.org/name": {
        "@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral",
        "@value": "Note"
      },
      "http://purl.org/dc/terms/language": {
        "@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral",
        "@value": "en"
      },
      "@type": [
        "http://www.w3.org/ns/oa#TextualBody"
      ],
      "http://www.w3.org/1999/02/22-rdf-syntax-ns#value": {
        "@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML",
        "@value": "How about W3C Web Annotation's bookmarking at this specificity?"
      },
      "http://schema.org/description": {
        "@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML",
        "@value": "How about W3C Web Annotation's bookmarking at this specificity?"
      }
    },
    {
      "@id": "#tag-annotations",
      "@type": [
        "http://www.w3.org/ns/oa#TextualBody"
      ],
      "http://www.w3.org/ns/oa#hasPurpose": {
        "@id": "http://www.w3.org/ns/oa#tagging"
      },
      "http://www.w3.org/1999/02/22-rdf-syntax-ns#value": {
        "@type": "http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML",
        "@value": "annotations"
      }
    }
  ]
}
@michielbdejong
Copy link
Member Author

  • go to https://dokie.li/new and sign in with your WebID / Solid pod
  • type some text
  • highlight some of the text you typed
  • look for the bookmark icon [?]

@michielbdejong
Copy link
Member Author

These seem to be annotations on a part of a webpage, no bookmarks of a URL, but you could use them as bookmarks if they're saved to your pod

@michielbdejong
Copy link
Member Author

@csarven can you show how to use https://dokie.li/new as a Solid app that saves a bookmark to your pod?

@csarven
Copy link

csarven commented Feb 10, 2024

@csarven
Copy link

csarven commented Feb 10, 2024

Steps in #28 (comment) are right. (Putting aside the fact that "new" is under developed IMO). What you need to do after having some text is disable Edit from the dokieli menu. That changes the UI mode from Author to Social. And then when you select text again, you'll see different options from the popup.

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

No branches or pull requests

2 participants