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

Correct spelling mistakes #1133

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build: default-model translate
default-model:
ftm dump-model -o js/src/defaultModel.json

# initalize a new language:
# initialize a new language:
# pybabel init -i followthemoney/translations/messages.pot -d followthemoney/translations -l de -D followthemoney
translate:
pybabel extract -F babel.cfg -o followthemoney/translations/messages.pot followthemoney
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/explorer/SchemaSemantics.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const end = schema.getTemporalEndProperties();
{
start <= 0 && (
<li>
{schema.label} entites have no temporal extent, i.e. they are not
{schema.label} entities have no temporal extent, i.e. they are not
suitable for representation in a timeline.
</li>
)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/docs/fragments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: 'Entity Fragmentation'

# Entity Fragmentation

Generating graph data is a difficult process. The size of the datasets we want to process using followthemoney (FtM) makes it impossible to incrementally build nodes and egdes in memory like you would in [NetworkX](https://networkx.org/). Instead, we use a stream-based solution for constructing graph entities. That is why the toolkit supports _entity fragments_ and _aggregation_.
Generating graph data is a difficult process. The size of the datasets we want to process using followthemoney (FtM) makes it impossible to incrementally build nodes and edges in memory like you would in [NetworkX](https://networkx.org/). Instead, we use a stream-based solution for constructing graph entities. That is why the toolkit supports _entity fragments_ and _aggregation_.

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/docs/namespace.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Namespacing

Entity ID namespaces are a security mechanism related to the Aleph search index.

Aleph allows the user (via mappings or the API) to create arbitary entity IDs. Entity IDs that are controlled by the user and not the system are unusual. However, this makes it possible to generate bulk data outside Aleph, and then load entities into the system as a continuous [streams](/docs/#streams).
Aleph allows the user (via mappings or the API) to create arbitrary entity IDs. Entity IDs that are controlled by the user and not the system are unusual. However, this makes it possible to generate bulk data outside Aleph, and then load entities into the system as a continuous [streams](/docs/#streams).

The problem is that having user controlled entity IDs increases the chance of conflict in the search index. Namespacing works around this by making each entity ID consist of two parts: one controlled by the client, the other controlled by the system. The second part of the ID is called its _signature_:

Expand Down
2 changes: 1 addition & 1 deletion followthemoney/cli/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def sorted_aggregate(path: Path, outpath: Path, entity_type: Type[E]) -> None:
"""Aggregate entities based on the premise that the fragements in the source
"""Aggregate entities based on the premise that the fragments in the source
stream are sorted by their ID."""
entity: Optional[E] = None
with path_writer(outpath) as outfh:
Expand Down
2 changes: 1 addition & 1 deletion followthemoney/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def target_prop(self) -> Optional[Property]:

@property
def type_name(self) -> str:
"""Return a machine-readable descripton of the type of the edge.
"""Return a machine-readable description of the type of the edge.
This is either a property name or a schema name."""
if self.schema is not None:
return self.schema.name
Expand Down
2 changes: 1 addition & 1 deletion followthemoney/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Entity ID namespaces are a security mechanism related to the Aleph search index.

Aleph allows the user (via mappings or the API) to create arbitary entity IDs.
Aleph allows the user (via mappings or the API) to create arbitrary entity IDs.
Entity IDs that are controlled by the user and not the system are unusual.
However, this makes it possible to generate bulk data outside Aleph,
and then load entities into the system as a continuous :ref:`streams`.
Expand Down
2 changes: 1 addition & 1 deletion followthemoney/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def __init__(self, model: "Model", name: str, data: SchemaSpec) -> None:
self.required = ensure_list(data.get("required", []))

#: Mark a set of properties to be used for the entity's caption.
#: They will be checked in order and the first existant value will
#: They will be checked in order and the first existent value will
#: be used.
self.caption = ensure_list(data.get("caption", []))

Expand Down
2 changes: 1 addition & 1 deletion followthemoney/schema/Address.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Address:
description: "Handling instructions, like 'care of'."
postOfficeBox:
label: "PO Box"
description: "A mailbox indentifier at the post office"
description: "A mailbox identifier at the post office"
street:
label: "Street address"
street2:
Expand Down
4 changes: 2 additions & 2 deletions followthemoney/schema/Company.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Company:
coatoCode:
label: "COATO / SOATO / OKATO"
type: identifier
descrption: "Soviet classifier for territories, regions, districts, villages. Aka. SOATO and same as OKATO"
description: "Soviet classifier for territories, regions, districts, villages. Aka. SOATO and same as OKATO"
matchable: false
irsCode:
label: "IRS Number"
Expand Down Expand Up @@ -94,7 +94,7 @@ Company:
type: identifier
oksmCode:
label: OKSM
description: "Russian (ОКСМ) countries classifer"
description: "Russian (ОКСМ) countries classifier"
matchable: false
isinCode:
label: ISIN
Expand Down
2 changes: 1 addition & 1 deletion followthemoney/schema/Organization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Organization:
description: >
Any type of incorporated entity that cannot be owned by another (see Company). This
might include charities, foundations or state-owned enterprises, depending on their
juristiction.
jurisdiction.
matchable: true
featured:
- name
Expand Down
2 changes: 1 addition & 1 deletion followthemoney/types/iban.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class IbanType(PropertyType):
"""An international bank account number, as defined in ISO 13616. IBANs are
managed by SWIFT used in the European SEPA payment system.

A noteable aspect of IBANs is that they share a country prefix and validation
A notable aspect of IBANs is that they share a country prefix and validation
mechanism, but the specific length of an IBAN is dependent on the country
code defined in the first two characters: `NO8330001234567` and
`CY21002001950000357001234567` are both valid values."""
Expand Down
2 changes: 1 addition & 1 deletion followthemoney/types/mimetype.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class MimeType(PropertyType):
"""A MIME media type are a specification of a content type on a network.
Each MIME type is assinged by IANA and consists of two parts: the type
Each MIME type is assigned by IANA and consists of two parts: the type
and sub-type. Common examples are: `text/plain`, `application/json` and
`application/pdf`.

Expand Down
2 changes: 1 addition & 1 deletion followthemoney/types/topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class TopicType(EnumType):
"fin.bank": _("Bank"),
"fin.fund": _("Fund"),
"fin.adivsor": _("Financial advisor"),
"role.pep": _("Politican"),
"role.pep": _("Political"),
"role.rca": _("Close Associate"),
"role.judge": _("Judge"),
"role.civil": _("Civil servant"),
Expand Down