--- title: Note keywords: fastai sidebar: home_sidebar nb_path: "nbs/indexers.NoteListIndexer.NoteList.ipynb" ---
{% raw %}
{% endraw %} {% raw %}
{% endraw %} {% raw %}
{% endraw %} {% raw %}

class INote[source]

INote(dateAccessed=None, dateCreated=None, dateModified=None, deleted=None, externalId=None, itemDescription=None, starred=None, version=None, uid=None, importJson=None, title=None, abstract=None, datePublished=None, keyword=None, content=None, textContent=None, transcript=None, itemType=None, changelog=None, label=None, genericAttribute=None, measure=None, sharedWith=None, audio=None, citation=None, contentLocation=None, locationCreated=None, video=None, writtenBy=None, file=None, recordedAt=None, review=None, comment=None, noteList=None) :: Note

Provides a base class for all items. All items in the schema inherit from this class, and it provides some basic functionality for consistency and to enable easier usage.

{% endraw %} {% raw %}
{% endraw %}

NoteLists

A notelist object denotes a list contained in a written html note.

{% raw %}

class INoteList[source]

INoteList(dateAccessed=None, dateCreated=None, dateModified=None, deleted=None, externalId=None, itemDescription=None, starred=None, version=None, uid=None, importJson=None, title=None, abstract=None, datePublished=None, keyword=None, content=None, textContent=None, transcript=None, itemType=None, category=None, changelog=None, label=None, genericAttribute=None, measure=None, sharedWith=None, audio=None, citation=None, contentLocation=None, locationCreated=None, video=None, writtenBy=None, file=None, recordedAt=None, review=None, span=None, itemSpan=None, note=None) :: NoteList

Provides a base class for all items. All items in the schema inherit from this class, and it provides some basic functionality for consistency and to enable easier usage.

{% endraw %} {% raw %}
{% endraw %}

ULNoteList

A ULNoteList is the most vanilla kind of list. It is a list of items encapsulated by \

    \
tags.

{% raw %}

class ULNoteList[source]

ULNoteList(dateAccessed=None, dateCreated=None, dateModified=None, deleted=None, externalId=None, itemDescription=None, starred=None, version=None, uid=None, importJson=None, title=None, abstract=None, datePublished=None, keyword=None, content=None, textContent=None, transcript=None, itemType=None, category=None, changelog=None, label=None, genericAttribute=None, measure=None, sharedWith=None, audio=None, citation=None, contentLocation=None, locationCreated=None, video=None, writtenBy=None, file=None, recordedAt=None, review=None, span=None, itemSpan=None, note=None) :: INoteList

A

list extracted from a note.

{% endraw %} {% raw %}
{% endraw %} {% raw %}
ULNoteList.from_data(title="Awesome title", content="Awesome content")
# Awesome title 

{% endraw %}

Span

We use spans to specify a range within a piece of text. If we for instance have a piece of text "Memri solves all your problems" and a span with startIdx=6 and endIdx=16, it points to "solves all".

{% raw %}

class ISpan[source]

ISpan(dateAccessed=None, dateCreated=None, dateModified=None, deleted=None, externalId=None, itemDescription=None, starred=None, version=None, uid=None, importJson=None, startIdx=None, endIdx=None, changelog=None, label=None, genericAttribute=None, measure=None, sharedWith=None) :: Span

A span of an element in a piece of text

{% endraw %} {% raw %}
{% endraw %} {% raw %}

get_span[source]

get_span(note, elem, parsed)

{% endraw %} {% raw %}
{% endraw %}