kDB: Knowledge DataBase
Loading...
Searching...
No Matches
kDB::Repository::RDF::FocusNodeDeclaration::Property Class Reference

Classes

struct  Private
 

Public Types

enum class  Variety { Optional , Atomic , List , Map }
 
enum class  Direction { Direct , Reverse }
 

Public Member Functions

 Property (const Property &_rhs)
 
Propertyoperator= (const Property &_rhs)
 
bool operator== (const Property &_rhs)
 
bool operator!= (const Property &_rhs)
 
bool isConstant () const
 
Variety variety () const
 
Direction direction () const
 
std::optional< std::size_t > minimum () const
 
std::optional< std::size_t > maximum () const
 
QString name () const
 
knowCore::Uri path () const
 
knowCore::Uri datatype () const
 
knowRDF::Literal value () const
 
knowRDF::Literal defaultValue () const
 
std::optional< QList< knowCore::Uri > > acceptedUnits () const
 
std::optional< knowCore::ValueListacceptedValues () const
 

Friends

struct Private
 
struct FocusNodeDeclarationsRegistryPrivate
 

Member Enumeration Documentation

◆ Variety

Enumerator
Atomic 

min: 0 max: 1

List 

min: 1 max 1 (default)

Map 

min: 0 max > 2

min: 0 max > 2

Member Function Documentation

◆ acceptedUnits()

std::optional< QList< knowCore::Uri > > Property::acceptedUnits ( ) const

list of accepted units, if datatype == askcore_datatype::quantityDecimal

◆ acceptedValues()

std::optional< knowCore::ValueList > Property::acceptedValues ( ) const

List of accepted values

◆ direction()

Property::Direction Property::direction ( ) const
Returns
the direction of the property.

◆ isConstant()

bool Property::isConstant ( ) const
Returns
true if the field is a constant. A constant field can only be set once, it cannot be modified.

◆ variety()

Property::Variety Property::variety ( ) const
Returns
true if the field is optional

The documentation for this class was generated from the following files: