104 explicit Uri(
const QString &s) : m_uri(s) {
120 inline QUrl
toUrl()
const {
return QUrl(m_uri); }
121 inline int length()
const {
return m_uri.length(); }
150 void checkComplete();
152 static bool canBeComplete(QString &s);
unsigned int qHash(const Dataquay::Uri &u)
Uri represents a single URI.
bool operator==(const Uri &u) const
static bool isCompleteUri(QString s)
Return true if the given string contains a complete URI, i.e.
Uri(const QString &s)
Construct a URI from the given string, which is expected to contain the text of a complete well-forme...
Uri()
Construct an empty (invalid, null) URI.
static bool hasUriType(const QVariant &)
Return true if the given variant has metatype metatypeId().
static Uri rdfTypeUri()
Return the rdf:type URI.
bool operator<(const Uri &u) const
bool operator!=(const Uri &u) const
Uri(const QUrl &u)
Construct a URI from the given QUrl, which is expected to contain a complete well-formed URI.
static QString metaTypeName()
bool operator>(const Uri &u) const
QDataStream & operator<<(QDataStream &out, const Node &)
QDataStream & operator>>(QDataStream &in, Node &)