SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
11 #ifndef smtk_markup_ontology_Source_h
12 #define smtk_markup_ontology_Source_h
14 #include "smtk/SystemConfig.h"
15 #include "smtk/markup/Exports.h"
62 bool operator<(
const Relation& other)
const;
71 const std::string& url,
72 const std::string& name,
73 std::vector<Identifier>&& classes,
74 std::vector<Relation>&& relations)
78 , m_relations(relations)
81 Source(
const std::string& url,
const std::string& name)
88 virtual ~
Source() =
default;
90 const std::string& url()
const {
return m_url; }
91 const std::string& name()
const {
return m_name; }
92 const std::vector<Identifier>& classes()
const {
return m_classes; }
93 const std::vector<Relation>& relations()
const {
return m_relations; }
95 static const Source& findByName(
const std::string& name);
96 static const Source& findByURL(
const std::string& url);
97 static bool registerSource(
const Source& src);
102 std::vector<Identifier> m_classes;
103 std::vector<Relation> m_relations;
110 #endif // smtk_markup_ontology_Source_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
std::string description
A human-readable description of the class, in markdown format.
Definition: Source.h:39
std::size_t plural
Whether the nature of the relationship allows plurality.
Definition: Source.h:59
A source of ontology models.
Definition: Source.h:67
std::string domainUrl
A description of the relationship's domain.
Definition: Source.h:55
std::string url
The IRI of the relationship.
Definition: Source.h:51
An ontology class-relationship identifier.
Definition: Source.h:48
An ontology class identifier.
Definition: Source.h:30
std::string base
The base of the class (or a base if multiple inheritance).
Definition: Source.h:37
std::string rangeUrl
A description of the relationship's range.
Definition: Source.h:57
std::string name
The human-readable name of the relationship.
Definition: Source.h:53
std::string name
The human-readable name of the class.
Definition: Source.h:33
std::string url
The IRI of the class.
Definition: Source.h:35
std::set< std::string > collection
All the bases of the class (if multiple inheritance).
Definition: Source.h:41