disambig entity types
This commit is contained in:
parent
0477beb59a
commit
10fad9247e
1 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,14 @@ use serde::{Deserialize, Serialize};
|
|||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Entity {
|
||||
pub claims: Vec<(Pid, ClaimValue)>,
|
||||
pub entity_type: EntityType,
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
pub enum EntityType {
|
||||
Entity,
|
||||
Property,
|
||||
Lexeme,
|
||||
}
|
||||
|
||||
/// Data relating to a claim value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue