pub enum EntityKind {
Concept,
Document,
Dataset,
Project,
Person,
Org,
Artifact,
Service,
}Expand description
8 closed base kinds for graph-node classification.
Governed subtype values live in Entity::entity_type; properties remain
metadata and must not carry ontology type strings.
Variants§
Concept
Algorithms, techniques, architectures, theories, models, research gaps. The default / residual bucket.
Document
Papers, preprints, technical reports, blog posts, books. Has: title, authors, year, venue, DOI/URL.
Dataset
Benchmarks, corpora, evaluation sets. Has: task type, size, metrics, license.
Project
Codebases, libraries, tools, frameworks. Has: language, repo URL, license.
Person
Researchers, engineers, authors.
Org
Labs, companies, institutions.
Artifact
Built artifacts: binaries, model checkpoints, Docker images, packages.
Service
Running or deployable services: APIs, hosted endpoints, SaaS products.
Implementations§
Trait Implementations§
Source§impl Clone for EntityKind
impl Clone for EntityKind
Source§fn clone(&self) -> EntityKind
fn clone(&self) -> EntityKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EntityKind
Source§impl Debug for EntityKind
impl Debug for EntityKind
Source§impl Default for EntityKind
impl Default for EntityKind
Source§fn default() -> EntityKind
fn default() -> EntityKind
Source§impl Display for EntityKind
impl Display for EntityKind
impl Eq for EntityKind
Source§impl FromStr for EntityKind
impl FromStr for EntityKind
Source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Parse a string into an EntityKind.
Accepts the 8 canonical kind names (case-insensitive) plus a set of
convenience aliases to aid human-authored DSL requests (e.g. "paper"
resolves to Document, "repo" to Project).
Note on subtype aliasing: when kind="paper" is parsed here, only the
base EntityKind::Document is returned. Callers that need to preserve the
entity_type subtoken must use the pack registry resolution path, which
returns both the base kind and the subtype string. from_str is
intentionally base-kind-only for use in contexts where the subtype is
carried separately (e.g. Entity.entity_type).
Source§type Err = UnknownVariant
type Err = UnknownVariant
Source§impl Hash for EntityKind
impl Hash for EntityKind
Source§impl PartialEq for EntityKind
impl PartialEq for EntityKind
Source§fn eq(&self, other: &EntityKind) -> bool
fn eq(&self, other: &EntityKind) -> bool
self and other values to be equal, and is used by ==.