# Class: Graph _A graph is a collection of nodes and edges and other axioms that represents a single ontology._ URI: [owl:Ontology](http://www.w3.org/2002/07/owl#Ontology) ```{mermaid} classDiagram class Graph click Graph href "../Graph" Graph : allValuesFromEdges Graph --> "*" Edge : allValuesFromEdges click Edge href "../Edge" Graph : domainRangeAxioms Graph --> "*" DomainRangeAxiom : domainRangeAxioms click DomainRangeAxiom href "../DomainRangeAxiom" Graph : edges Graph --> "*" Edge : edges click Edge href "../Edge" Graph : equivalentNodesSets Graph --> "*" EquivalentNodesSet : equivalentNodesSets click EquivalentNodesSet href "../EquivalentNodesSet" Graph : id Graph : lbl Graph : logicalDefinitionAxioms Graph --> "*" LogicalDefinitionAxiom : logicalDefinitionAxioms click LogicalDefinitionAxiom href "../LogicalDefinitionAxiom" Graph : meta Graph --> "0..1" Meta : meta click Meta href "../Meta" Graph : nodes Graph --> "*" Node : nodes click Node href "../Node" Graph : prefixes Graph --> "*" PrefixDeclaration : prefixes click PrefixDeclaration href "../PrefixDeclaration" Graph : propertyChainAxioms Graph --> "*" PropertyChainAxiom : propertyChainAxioms click PropertyChainAxiom href "../PropertyChainAxiom" Graph : subsetDefinitions Graph --> "*" SubsetDefinition : subsetDefinitions click SubsetDefinition href "../SubsetDefinition" Graph : synonymTypeDefinitions Graph --> "*" SynonymTypeDefinition : synonymTypeDefinitions click SynonymTypeDefinition href "../SynonymTypeDefinition" ``` ## Slots | Name | Cardinality and Range | Description | Inheritance | | --- | --- | --- | --- | | [id](id.md) | 1
[OboIdentifierString](OboIdentifierString.md) | The unique identifier of the entity | direct | | [lbl](lbl.md) | 0..1
[String](String.md) | the human-readable label of a node | direct | | [prefixes](prefixes.md) | *
[PrefixDeclaration](PrefixDeclaration.md) | A collection of mappings between prefixes and namespaces, used to map CURIEs ... | direct | | [subsetDefinitions](subsetDefinitions.md) | *
[SubsetDefinition](SubsetDefinition.md) | | direct | | [synonymTypeDefinitions](synonymTypeDefinitions.md) | *
[SynonymTypeDefinition](SynonymTypeDefinition.md) | | direct | | [meta](meta.md) | 0..1
[Meta](Meta.md) | A collection of metadata about either an ontology (graph), an entity, or an a... | direct | | [nodes](nodes.md) | *
[Node](Node.md) | All nodes present in a graph | direct | | [edges](edges.md) | *
[Edge](Edge.md) | All edges present in a graph | direct | | [equivalentNodesSets](equivalentNodesSets.md) | *
[EquivalentNodesSet](EquivalentNodesSet.md) | A list of sets of nodes that form equivalence cliques | direct | | [logicalDefinitionAxioms](logicalDefinitionAxioms.md) | *
[LogicalDefinitionAxiom](LogicalDefinitionAxiom.md) | A list of logical definition axioms that define the meaning of a class in ter... | direct | | [domainRangeAxioms](domainRangeAxioms.md) | *
[DomainRangeAxiom](DomainRangeAxiom.md) | A list of axioms that define the domain and range of a property | direct | | [allValuesFromEdges](allValuesFromEdges.md) | *
[Edge](Edge.md) | A list of edges that represent subclasses of universal restrictions | direct | | [propertyChainAxioms](propertyChainAxioms.md) | *
[PropertyChainAxiom](PropertyChainAxiom.md) | A list of axioms that define an OWL property chain | direct | ## Usages | used by | used in | type | used | | --- | --- | --- | --- | | [GraphDocument](GraphDocument.md) | [graphs](graphs.md) | range | [Graph](Graph.md) | ## Identifier and Mapping Information ### Schema Source * from schema: https://github.com/geneontology/obographs ## Mappings | Mapping Type | Mapped Value | | --- | --- | | self | owl:Ontology | | native | obographs:Graph | ## LinkML Source ### Direct
```yaml name: Graph description: A graph is a collection of nodes and edges and other axioms that represents a single ontology. from_schema: https://github.com/geneontology/obographs slots: - id - lbl - prefixes - subsetDefinitions - synonymTypeDefinitions - meta - nodes - edges - equivalentNodesSets - logicalDefinitionAxioms - domainRangeAxioms - allValuesFromEdges - propertyChainAxioms class_uri: owl:Ontology ```
### Induced
```yaml name: Graph description: A graph is a collection of nodes and edges and other axioms that represents a single ontology. from_schema: https://github.com/geneontology/obographs attributes: id: name: id description: The unique identifier of the entity from_schema: https://github.com/geneontology/obographs see_also: - https://owlcollab.github.io/oboformat/doc/obo-syntax.html#2.5 rank: 1000 identifier: true alias: id owner: Graph domain_of: - Graph - Node - SubsetDefinition - SynonymTypeDefinition range: OboIdentifierString required: true lbl: name: lbl description: the human-readable label of a node comments: - the name "lbl" exists for legacy purposes, this should be considered identical to label in rdfs from_schema: https://github.com/geneontology/obographs aliases: - label - name rank: 1000 slot_uri: rdfs:label alias: lbl owner: Graph domain_of: - Graph - Node - SubsetDefinition - SynonymTypeDefinition range: string prefixes: name: prefixes description: A collection of mappings between prefixes and namespaces, used to map CURIEs (e.g. GO:0008150) to IRIs (e.g. http://purl.obolibrary.org/obo/GO_0008150) from_schema: https://github.com/geneontology/obographs rank: 1000 slot_uri: sh:declare alias: prefixes owner: Graph domain_of: - GraphDocument - Graph range: PrefixDeclaration multivalued: true inlined: true subsetDefinitions: name: subsetDefinitions from_schema: https://github.com/geneontology/obographs rank: 1000 alias: subsetDefinitions owner: Graph domain_of: - Graph range: SubsetDefinition multivalued: true inlined: true synonymTypeDefinitions: name: synonymTypeDefinitions from_schema: https://github.com/geneontology/obographs rank: 1000 alias: synonymTypeDefinitions owner: Graph domain_of: - Graph range: SynonymTypeDefinition multivalued: true inlined: true meta: name: meta description: A collection of metadata about either an ontology (graph), an entity, or an axiom from_schema: https://github.com/geneontology/obographs aliases: - annotations rank: 1000 alias: meta owner: Graph domain_of: - GraphDocument - Graph - Node - Edge - PropertyValue - Axiom range: Meta nodes: name: nodes description: All nodes present in a graph. This includes class nodes as well as supporting nodes, including nodes representing relationship types, subsets, annotation properties, etc from_schema: https://github.com/geneontology/obographs rank: 1000 alias: nodes owner: Graph domain_of: - Graph range: Node multivalued: true inlined: true inlined_as_list: true edges: name: edges description: All edges present in a graph. comments: - Note that this only includes core edges, formed by translating (a) SubClassOf between named classes (b) SubPropertyOf (c) SubClassOf between a named class and a simple existential axiom (d) ObjectPropertyAssertions from_schema: https://github.com/geneontology/obographs rank: 1000 alias: edges owner: Graph domain_of: - Graph range: Edge multivalued: true inlined: true inlined_as_list: true equivalentNodesSets: name: equivalentNodesSets description: A list of sets of nodes that form equivalence cliques from_schema: https://github.com/geneontology/obographs rank: 1000 alias: equivalentNodesSets owner: Graph domain_of: - Graph range: EquivalentNodesSet multivalued: true logicalDefinitionAxioms: name: logicalDefinitionAxioms description: A list of logical definition axioms that define the meaning of a class in terms of other classes. from_schema: https://github.com/geneontology/obographs rank: 1000 alias: logicalDefinitionAxioms owner: Graph domain_of: - Graph range: LogicalDefinitionAxiom multivalued: true inlined: true inlined_as_list: true domainRangeAxioms: name: domainRangeAxioms description: A list of axioms that define the domain and range of a property from_schema: https://github.com/geneontology/obographs rank: 1000 alias: domainRangeAxioms owner: Graph domain_of: - Graph range: DomainRangeAxiom multivalued: true allValuesFromEdges: name: allValuesFromEdges description: A list of edges that represent subclasses of universal restrictions from_schema: https://github.com/geneontology/obographs rank: 1000 alias: allValuesFromEdges owner: Graph domain_of: - Graph - DomainRangeAxiom range: Edge multivalued: true propertyChainAxioms: name: propertyChainAxioms description: A list of axioms that define an OWL property chain from_schema: https://github.com/geneontology/obographs rank: 1000 alias: propertyChainAxioms owner: Graph domain_of: - Graph range: PropertyChainAxiom multivalued: true class_uri: owl:Ontology ```