MICO Platform  1.0.0
 All Classes Namespaces Functions Variables Friends
Public Member Functions | List of all members
mico::rdf::model::URI Class Reference

A URI. More...

#include <rdf_model.hpp>

Inheritance diagram for mico::rdf::model::URI:
mico::rdf::model::Resource mico::rdf::model::Value

Public Member Functions

 URI (const std::string &uri)
 
 URI (const char *uri)
 
 URI (const URI &uri)
 
std::string getLocalName () const
 Gets the local name of this URI.
 
std::string getNamespace () const
 Gets the namespace of this URI.
 
const std::string & stringValue () const
 Returns the String-value of a Value object. More...
 
const ValueTypes getType () const
 Return type information (to avoid dynamic casts if possible)
 
bool operator== (const std::string &s) const
 
bool operator== (const char *s) const
 
bool operator!= (const std::string &s) const
 
bool operator!= (const char *s) const
 

Additional Inherited Members

Detailed Description

A URI.

A URI consists of a namespace and a local name, which are derived from a URI string by splitting it in two using the following algorithm:

The last step should never fail as every legal (full) URI contains at least one ':' character to seperate the scheme from the rest of the URI. The implementation should check this upon object creation.

Member Function Documentation

const std::string& mico::rdf::model::URI::stringValue ( ) const
inlinevirtual

Returns the String-value of a Value object.

This returns either a Literal's label, a URI's URI or a BNode's ID.

Implements mico::rdf::model::Value.


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