Documentation ¶
Index ¶
- func AppendConcordancesMachineTags(ctx context.Context, body []byte) ([]byte, error)
- func AppendConcordancesStats(ctx context.Context, body []byte) ([]byte, error)
- func AppendEDTFRanges(ctx context.Context, body []byte) ([]byte, error)
- func AppendExistentialDetails(ctx context.Context, body []byte) ([]byte, error)
- func AppendNameStats(ctx context.Context, body []byte) ([]byte, error)
- func AppendPlacetypeDetails(ctx context.Context, body []byte) ([]byte, error)
- func AppendSpelunkerV1Properties(ctx context.Context, body []byte) ([]byte, error)
- func AppendSpelunkerV2Properties(ctx context.Context, body []byte) ([]byte, error)
- func ExtractGeometry(ctx context.Context, body []byte) ([]byte, error)
- func ExtractProperties(ctx context.Context, body []byte) ([]byte, error)
- func Flatten(ctx context.Context, body []byte) ([]byte, error)
- func PrepareSpelunkerV1Document(ctx context.Context, body []byte) ([]byte, error)
- func PrepareSpelunkerV2Document(ctx context.Context, body []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendConcordancesStats ¶
AppendConcordancesStats appends statistics about the `wof:concordances` properties in a Who's On First document. Specifically: * An array containing the set of source prefixes for concordances * The total number of concordances in a record.
func AppendEDTFRanges ¶
AppendEDTFRanges appends numeric date ranges derived from `edtf:inception` and `edtf:cessation` properties to a Who's On First document.
func AppendNameStats ¶
AppendNameStats appends statistics about the `name:*` properties in a Who's On First record. Specifically: * The unique set of language translations * The total number of names * The total number of languages * The total number of "preferred" names * The total number of "variant" names
func AppendPlacetypeDetails ¶
AppendPlacetypeDetails appends addition properties related to the `wof:placetype` and `wof:placetype_alt` properties in a Who's On First record. Specifically: * The unique placetype ID for a placetype * The set of string names (including "alternate" placetypes) associated with a placetype
func AppendSpelunkerV1Properties ¶
AppendSpelunkerV1Properties appends properties specific to the v1" Elasticsearch (v2.x) schema to a Who's On First document for. For details please consult: https://github.com/whosonfirst/es-whosonfirst-schema/tree/master/schema/2.4
func AppendSpelunkerV2Properties ¶
AppendSpelunkerV2Properties appends properties specific to the v2" OpenSearch (v2.x) schema to a Who's On First document for. For details please consult:
func ExtractGeometry ¶ added in v0.0.4
ExtractGeometry returns the "geometrry" element of a Who's On First document as a JSON-encoded byte array.
func ExtractProperties ¶
ExtractProperties returns the "properties" element of a Who's On First document as a JSON-encoded byte array.
func PrepareSpelunkerV1Document ¶
PrepareSpelunkerV1Document prepares a Who's On First document for indexing with the "v1" Elasticsearch (v2.x) schema. For details please consult: https://github.com/whosonfirst/es-whosonfirst-schema/tree/master/schema/2.4
Types ¶
This section is empty.