dvorka / mindforger

Thinking notebook and Markdown editor.
https://www.mindforger.com
GNU General Public License v2.0
2.26k stars 137 forks source link

[Feature/Enhancement] Importing annotations and highlights from Zotero #1508

Open codemeleon opened 1 year ago

codemeleon commented 1 year ago

Enhancement / feature description:

Currently, I am required to transfer my notes and annotations from Zotero to MindForger. It would be convenient if these two tools could collaborate and synchronize notes and annotations.

dvorka commented 1 year ago

@codemeleon I installed Zotero and checked what are Zotero export options:

My design remarks:

<rdf:RDF
 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 xmlns:z="http://www.zotero.org/namespaces/export#"
 xmlns:dc="http://purl.org/dc/elements/1.1/"
 xmlns:bib="http://purl.org/net/biblio#"
 xmlns:foaf="http://xmlns.com/foaf/0.1/"
 xmlns:dcterms="http://purl.org/dc/terms/"
 xmlns:link="http://purl.org/rss/1.0/modules/link/">
    <bib:Memo rdf:about="#item_1">
        <z:itemType>note</z:itemType>
        <dc:relation rdf:resource="#item_2"/>
        <rdf:value>&lt;div data-schema-version=&quot;8&quot;&gt;&lt;p&gt;Dvorka: &lt;span style=&quot;color: #ff2020&quot;&gt;example&lt;/span&gt; of a note.&lt;/p&gt;
&lt;/div&gt;</rdf:value>
    </bib:Memo>
    <bib:Book rdf:about="#item_2">
        <z:itemType>book</z:itemType>
        <bib:authors>
            <rdf:Seq>
                <rdf:li>
                    <foaf:Person>
                       <foaf:surname>Rampa, Lobsang</foaf:surname>
                    </foaf:Person>
                </rdf:li>
            </rdf:Seq>
        </bib:authors>
        <dcterms:isReferencedBy rdf:resource="#item_3"/>
        <dc:relation rdf:resource="#item_1"/>
        <dc:subject>tag1</dc:subject>
        <dc:subject>tag2</dc:subject>
        <dc:subject>tag3</dc:subject>
        <dc:title>Dvorka Book example.</dc:title>
        <dcterms:abstract>Tibet story.</dcterms:abstract>
    </bib:Book>
    <bib:Memo rdf:about="#item_3">
        <rdf:value>&lt;div data-schema-version=&quot;8&quot;&gt;&lt;p&gt;This is a book note.&lt;/p&gt;
&lt;/div&gt;</rdf:value>
    </bib:Memo>
    <rdf:Description rdf:about="#item_4">
        <z:itemType>document</z:itemType>
        <bib:authors>
            <rdf:Seq>
                <rdf:li>
                    <foaf:Person>
                       <foaf:surname>Dvorak, Martin</foaf:surname>
                    </foaf:Person>
                </rdf:li>
            </rdf:Seq>
        </bib:authors>
        <dcterms:isReferencedBy rdf:resource="#item_5"/>
        <link:link rdf:resource="#item_6"/>
        <dc:title>Document example.</dc:title>
    </rdf:Description>
    <bib:Memo rdf:about="#item_5">
        <rdf:value>&lt;div data-schema-version=&quot;8&quot;&gt;&lt;p&gt;Document note.&lt;/p&gt;
&lt;/div&gt;</rdf:value>
    </bib:Memo>
    <z:Attachment rdf:about="#item_6">
        <z:itemType>attachment</z:itemType>
        <dc:title>http://www.google.com/</dc:title>
        <dc:identifier>
            <dcterms:URI>
               <rdf:value>http://www.google.com/</rdf:value>
            </dcterms:URI>
        </dc:identifier>
        <dcterms:dateSubmitted>2023-05-13 07:36:03</dcterms:dateSubmitted>
        <z:linkMode>3</z:linkMode>
    </z:Attachment>
    <z:Collection rdf:about="#collection_2">
       <dc:title>Dvorka collection</dc:title>
    </z:Collection>
    <z:Collection rdf:about="#collection_1">
        <dc:title>Export for MindForger</dc:title>
        <dcterms:hasPart rdf:resource="#item_1"/>
        <dcterms:hasPart rdf:resource="#item_2"/>
        <dcterms:hasPart rdf:resource="#item_4"/>
    </z:Collection>
</rdf:RDF>
Screenshot 2023-05-13 at 9 38 14
LightTemplar commented 1 year ago

You can export Annotations to notes, info here and here and then export all notes to markdown via Mdnotes - Zotero Plugin: