|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MappingStyle
A style of default mapping. Allows customizing the mapping generator to generate different default mappings. Encapsulates the differences between W3C's Direct Mapping and the old D2RQ-style default mapping.
Method Summary | |
---|---|
String |
getBaseIRI()
|
Property |
getColumnProperty(TableName tableName,
Identifier column)
Creates a property for a table column. |
TemplateValueMaker |
getEntityIRITemplate(TableDef table,
Key columns)
Returns an IRI template to be used to uniquely identify the records in a table. |
TemplateValueMaker |
getEntityLabelTemplate(TableName tableName,
Key columns)
Creates a best-effort template for human-readable labels for the records in a table, based on a given list of columns. |
List<Identifier> |
getEntityPseudoKeyColumns(List<ColumnDef> columns)
Returns a list of columns to be used to form blank node identifiers for the records in a table that has no suitable unique/primary key |
Property |
getForeignKeyProperty(TableName tableName,
ForeignKey foreignKey)
Creates a property for a foreign key relationship between two tables. |
Resource |
getGeneratedOntologyResource()
Creates a resource that represents the ontology that defines all generated classes and properties. |
Property |
getLinkProperty(TableName linkTable)
Creates a property for an N:M link table. |
MappingGenerator |
getMappingGenerator()
|
PrefixMapping |
getPrefixes()
Returns a prefix mapping with convenient prefix declarations for this style of mapping. |
Resource |
getTableClass(TableName tableName)
Creates a class for a table. |
Method Detail |
---|
MappingGenerator getMappingGenerator()
String getBaseIRI()
PrefixMapping getPrefixes()
TemplateValueMaker getEntityIRITemplate(TableDef table, Key columns)
getBaseIRI()
.
table
- The table definitioncolumns
- The primary or unique key to be used, or null
List<Identifier> getEntityPseudoKeyColumns(List<ColumnDef> columns)
columns
- The column definition
Resource getGeneratedOntologyResource()
Resource getTableClass(TableName tableName)
tableName
- The table
Property getColumnProperty(TableName tableName, Identifier column)
tableName
- The tablecolumn
- A column on the table
Property getForeignKeyProperty(TableName tableName, ForeignKey foreignKey)
tableName
- The source tableforeignKey
- A foreign key defines on the source table
Property getLinkProperty(TableName linkTable)
linkTable
- A relationship table
TemplateValueMaker getEntityLabelTemplate(TableName tableName, Key columns)
tableName
- The tablecolumns
- A list of columns in the table
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |