Entity
(Elucidation) An entity is anything that exists or has existed or will exist
BFOClass
Hierarchyβ
Position of Entity in the class hierarchy: its ancestors and direct subclasses.
- entity (BFO)
- continuant (BFO)
- occurrent (BFO)
Propertiesβ
Declared on this classβ
| Property | Domain β Range | Details |
|---|---|---|
| condition described byobject | Domain β Rangeentity to Performance Specification | |
| ||
| data propertydatatype | Domain β Rangeentity to xsd:string | |
| ||
| described byobject | Domain β Rangeentity to Descriptive Information Content Entity | |
| ||
| designated byobject | Domain β Rangeentity to Designative Information Content Entity | |
| ||
| exists atobject | Domain β Rangeentity to temporal region | |
| ||
| has backing data sourceobject | Domain β Rangeentity to Data Source | |
| ||
| has nebari classobject | Domain β Rangeentity to Nebari Class | |
| ||
| is measured byobject | Domain β Rangeentity to Measurement Information Content Entity | |
| ||
| is measured by intervalobject | Domain β Rangeentity to Interval Measurement Information Content Entity | |
| ||
| is measured by nominalobject | Domain β Rangeentity to Nominal Measurement Information Content Entity | |
| ||
| is measured by ordinalobject | Domain β Rangeentity to Ordinal Measurement Information Content Entity | |
| ||
| is measured by ratioobject | Domain β Rangeentity to Ratio Measurement Information Content Entity | |
| ||
| is mentioned byobject | Domain β Rangeentity to Information Bearing Entity | |
| ||
| is subject ofobject | Domain β Rangeentity to Information Content Entity | |
| ||
| prescribed byobject | Domain β Rangeentity to Prescriptive Information Content Entity | |
| ||
Used as the range ofβ
Examplesβ
- Julius Caesar; the Second World War; your body mass index; Verdi's Requiem
Turtle
@prefix obo: <http://purl.obolibrary.org/obo/> .
@prefix cco: <https://www.commoncoreontologies.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ex: <https://example.org/> .
ex:entity1 a obo:BFO_0000001 ; # entity
rdfs:label "Example entity" ;
cco:ont00001884 ex:performanceSpecification1 ; # condition described by
<http://ontology.naas.ai/abi/nebari/dataProperty> "Example" . # data property
ex:performanceSpecification1 a cco:ont00000127 . # Performance Specification
SPARQL
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# Instances of entity, including instances of its subclasses
SELECT ?item ?label WHERE {
?item a/rdfs:subClassOf* obo:BFO_0000001 .
OPTIONAL { ?item rdfs:label ?label }
}
LIMIT 100
Relatedβ
On docs.naas.aiβ
- Ontology system Β· How ABI uses BFO, the 7 Buckets and its layered ontology stack
- The ontology hierarchy Β· BFO top level, CCO mid level, domain level and module ontologies in ABI
Used in ABIβ
Entity is referenced in 1 file of jupyter-naas/abi (revision 56f86c1): 1 ontology module, across the nebari module.
In ontology modulesβ
- NebariOntology (
nebari): domain of Data property and Has nebari class.
Modeling guideβ
Entity is the root of BFO: everything a Naas knowledge graph talks about is an entity, and every entity is either a continuant (it persists through time) or an occurrent (it unfolds in time). You almost never type an individual as a bare entity. Its value is in property signatures: CCO relations such as is about, describes and designates take any entity as their object, so a single information model can point at people, processes, places or other documents.
When to use itβ
- As the domain or range of a property that genuinely applies to anything (aboutness, designation, description).
- In SPARQL, as the top of a
rdfs:subClassOf*walk when you want every typed individual. - Not as the type of a new individual: pick the most specific class that applies, starting from the 7 buckets.
Turtle exampleβ
@prefix cco: <https://www.commoncoreontologies.org/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ex: <https://example.org/> .
# A description can be about any entity: here an organization.
ex:acmeReport a cco:ont00000853 ; # Descriptive Information Content Entity
rdfs:label "Acme Corp company profile" ;
cco:ont00001982 ex:acmeCorp . # describes
ex:acmeCorp a cco:ont00001180 ; # Organization
rdfs:label "Acme Corp" .
SPARQL exampleβ
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# How many individuals sit under each of the two top-level branches
SELECT ?branch (COUNT(DISTINCT ?x) AS ?individuals) WHERE {
VALUES ?branch { obo:BFO_0000002 obo:BFO_0000003 }
?x a ?type .
?type rdfs:subClassOf* ?branch .
}
GROUP BY ?branch