Location: Metabolic Component Library @ 175a7120ac7b / CellML-source / CellMLTools / cpp_rdf / cellmlfilerdftripleelement.h

Author:
Randall Britten <r.britten@auckland.ac.nz>
Date:
2013-04-19 13:52:31+12:00
Desc:
Removed duplicate cmeta:id attribute that was causing an XML error, and changed metadata to use the more human readable ID.
Permanent Source URI:
https://staging.physiomeproject.org/w/matthiaskoenig/MetabolicComponentLibrary/rawfile/175a7120ac7b498b3d24bee77ba939f3974c8181/CellML-source/CellMLTools/cpp_rdf/cellmlfilerdftripleelement.h

//==============================================================================
// CellML file RDF triple element
//==============================================================================

#ifndef CELLMLFILERDFTRIPLEELEMENT_H
#define CELLMLFILERDFTRIPLEELEMENT_H

//==============================================================================

#include "cellmlsupportglobal.h"

//==============================================================================

#include <QString>

//==============================================================================

#include "cellml-api-cxx-support.hpp"

#include "IfaceRDF_APISPEC.hxx"

//==============================================================================

namespace OpenCOR {
namespace CellMLSupport {

//==============================================================================

class CELLMLSUPPORT_EXPORT CellmlFileRdfTripleElement
{
public:
    enum Type {
        Id,
        UriReference,
        PlainLiteral,
        TypedLiteral
    };

    explicit CellmlFileRdfTripleElement(iface::rdf_api::Node *pRdfNode);
    explicit CellmlFileRdfTripleElement(const QString &pUriReference);

    Type type() const;

    QString id() const;

    QString uriReference() const;

    QString lexicalForm() const;
    QString language() const;
    QString dataTypeUri() const;

    QString asString() const;

private:
    Type mType;

    QString mId;

    QString mUriReference;

    QString mLexicalForm;
    QString mLanguage;
    QString mDataTypeUri;
};

//==============================================================================

}   // namespace CellMLSupport
}   // namespace OpenCOR

//==============================================================================

#endif

//==============================================================================
// End of file
//==============================================================================