GithubHelp home page GithubHelp logo

kometenstaub / linked-data-vocabularies Goto Github PK

View Code? Open in Web Editor NEW
84.0 4.0 2.0 452 KB

Add linked data to the YAML of your Obsidian notes.

License: MIT License

TypeScript 87.29% JavaScript 12.71%
obsidianmd obsidian-plugin

linked-data-vocabularies's People

Contributors

dependabot[bot] avatar kometenstaub avatar skepticmystic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

linked-data-vocabularies's Issues

enhancement request: Require linked data population on close.

If would be cool if there was an option to would help a writer remember to populate their frontmatter categories with linked data vocbularies.

  • Proposed Implementation
    • user closes note
    • on close, plugin checks for extant frontmatter property
    • if spec exists, do nothing.
    • If spec is missing, reopen note, create a notice stating "Please populate frontmatter with Linked Data Vocabulary"

This would be opt-in of course via settings.

Add quotes around items

Add quotes around each item so that commas and brackets (as some results include them) don't break links/the frontmatter in general.

ex.
narrower: ["History--[period subdivision]--Philosophy","Foreign relations--Philosophy","Civilization--Philosophy","Politics and government--[period subdivision]--Philosophy","History--Philosophy","Politics and government--Philosophy"]

instead of

narrower: [History--[period subdivision]--Philosophy,Foreign relations--Philosophy,Civilization--Philosophy,Politics and government--[period subdivision]--Philosophy,History--Philosophy,Politics and government--Philosophy]

This isn't released yet, correct?

Unable to get this working in the current version of Obsidian (v0.12.16).

I am certainly no expert on manually installing plugins, so perhaps I am doing something wrong. Extracted the zipped folder to vault/.obsidian/plugins

It appears in Community Plugins, but throws: Can't load plugin error

Command LCSH not loading for me in command palette?

Hi there, bonkers excited for this plug-in. I'm trying to set it up now. I have successfully unzipped the file and put in the folder path to where the Json files are stored in my vault attachment folder. I then closed and restarted Obsidian. However when I open the command pallete, I do not see any commands related to linked data or LCSH. Any ideas?Thanks!

Problem with generating Linked Data vocabularies

I have installed both the Linked Data Vocabularies and the Linked Data Helper.
I cannot get the Linked Data helper to generate the necessary data for Linked Data vocabularies from the extracted zip file lcsh.both.ndjson

The plugin accepts anything I put on the “linked data helper settings”.
Then, when I press start conversion, it gives a message saying that it will take a while and then nothing happens.
My folder for the three JSON files to be generated is default, and the directory exists.
I have tried different location for the extracted zip file lcsh.both.ndjson but same result.
There is no error message. Just nothing happens, other than the message saying that it will take a while.

Environment
Operating system: Windows 11
Obsidian version: V0.12.19 (up to date)

Refactor code

https://github.com/kometenstaub/obsidian-linked-data-vocabularies/blob/7766a6379238f801c66d9856721ef39fc7e098af/src/methods/methods-write.ts#L24

  • Make it more general so that it accepts any number of key-value pairs apart from the headings.

    • This also applies to buildYaml()
  • Problem to address: accessing settings to decide whether or not to write the value. This check could be done in the suggester so that it only passes elements that are supposed to be added.

    • First check: should it be included?
    • Second check: which key? Make object with custom key and the value, pass that on.

Maybe we could collaborate?

Hi Kometenstaub,

i just discovered your plugin because @brimwats commented that i could make my Map of Content plugin compatible to the YAML data yours generates. Like you i have just released my plugin a few days ago.

I love what yours does and it's kind of the same idea i had when i made mine, only mine is based on the idea of creating your own headings and subheadings as notes and linking to those instead of getting them from an official catalogue.

As you'll see mine has some more features like generating a tree view of all notes. If we joined the functionality of both of our addons, we could have a feature that generates a similar view for SKOS tags, also displaying connections that reach through several tags by pulling all the tags related to the ones used in the notes and analyzing them for relation.

I thought i'd hear what you think on this.

Nice name by the way. Are you from Germany too?

I am trying to get the classification description into a note.

Screen Shot 2024-04-11 at 12 49 00 PM

I'm trying to use the description of the classficiation but I can't seem to find the source anywhere. Where does this data come from. Im sure it comes from the jsonld i downloaded but it's a doozy to sift through. care to point me to the correct direction?

Vocabulary Restricted to Musical Instruments

Awesome plugin!

I followed the instructions and got everything hooked up.

However, the suggestions that all come up are musical instruments, rather than subject headings.

image

Following the instructions, I downloaded the subjects.madsrdf.jsonld.gz file instructions from https://id.loc.gov/download/ and converted it. Everything seems to work fine, except the data is unexpected. Did I download the wrong file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.