34#ifndef DATAQUAY_TYPE_MAPPING_H
35#define DATAQUAY_TYPE_MAPPING_H
TypeMapping describes a set of relationships between RDF entity and property URIs,...
void setObjectTypePrefix(Uri prefix)
Set the prefix for synthetic type URIs.
TypeMapping(const TypeMapping &)
void setRelationshipPrefix(Uri prefix)
Set the prefix for ObjectMapper-specific property URIs.
TypeMapping()
Construct a TypeMapping using default URIs throughout.
Uri getObjectTypePrefix() const
Retrieve the prefix for synthetic type URIs.
bool getClassForTypeUri(Uri uri, QString &className) const
Retrieve the C++ class name that has been set for the given entity URI using addTypeMapping,...
bool getTypeUriForClass(QString className, Uri &uri) const
Retrieve the URI that has been set for the given class name using addTypeMapping, returning it in uri...
Uri getRelationshipPrefix() const
Retrieve the prefix for ObjectMapper-specific property URIs.
bool getPropertyName(QString className, Uri propertyUri, QString &propertyName) const
Retrieve the name of the property for which the given URI has been set in the given class using addPr...
void addTypeMapping(QString className, Uri uri)
Add a specific mapping from class name to entity URI.
Uri synthesiseTypeUriForClass(QString className) const
Return a URI for the RDF entity type corresponding to the given C++ class.
void addPropertyMapping(QString className, QString propertyName, Uri uri)
Add a specific mapping for the given QObject property in the given C++ class, to an RDF property URI.
bool getPropertyUri(QString className, QString propertyName, Uri &uri) const
Retrieve the URI that has been set for the given property in the given class using addPropertyMapping...
bool getUriPrefixForClass(QString className, Uri &prefix) const
Retrieve the URI prefix set for the given className using addTypeUriPrefixMapping,...
QString synthesiseClassForTypeUri(Uri uri) const
Return a C++ class name corresponding to the given RDF entity type URI.
void addTypeUriPrefixMapping(QString className, Uri prefix)
Add a mapping between class name and the common parts of any URIs that are automatically generated wh...
void setPropertyPrefix(Uri prefix)
Set the prefix for synthetic property URIs.
TypeMapping & operator=(const TypeMapping &)
Uri getPropertyPrefix() const
Retrieve the prefix for synthetic property URIs.
Uri represents a single URI.