Comments
This commit is contained in:
parent
8b322b960d
commit
42d4c5f0ac
4 changed files with 12 additions and 4 deletions
|
@ -56,5 +56,5 @@ public interface ObjectPropertyDao extends PropertyDao {
|
|||
|
||||
public List<ObjectProperty> getObjectPropertyList(String subjectUri);
|
||||
|
||||
public String getCustomShortView();
|
||||
public String getCustomListView();
|
||||
}
|
||||
|
|
|
@ -216,7 +216,7 @@ class ObjectPropertyDaoFiltering extends BaseFiltering implements ObjectProperty
|
|||
}
|
||||
|
||||
@Override
|
||||
public String getCustomShortView() {
|
||||
return innerObjectPropertyDao.getCustomShortView();
|
||||
public String getCustomListView() {
|
||||
return innerObjectPropertyDao.getCustomListView();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -859,7 +859,7 @@ public class ObjectPropertyDaoJena extends PropertyDaoJena implements ObjectProp
|
|||
}
|
||||
|
||||
@Override
|
||||
public String getCustomShortView() {
|
||||
public String getCustomListView() {
|
||||
//return getPropertyStringValue(, PROPERTY_CUSTOM_LIST_VIEW_ANNOT);
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -28,6 +28,14 @@ public class CollatedObjectPropertyTemplateModel extends ObjectPropertyTemplateM
|
|||
CollatedObjectPropertyTemplateModel(ObjectProperty op, Individual subject, WebappDaoFactory wdf) throws Exception {
|
||||
super(op, subject, wdf);
|
||||
|
||||
/* Change the approach to collation:
|
||||
* Custom views can get the subclasses in the query. Must use a term ?subclass - throw error if not.
|
||||
* Default view: we may be able to figure out the class to get subclasses of by inspecting the property.
|
||||
* If not, use getDirectClasses etc of the object term.
|
||||
* We need a subclassed and nonsubclassed default query for the default view: collated-query and uncollated-query.
|
||||
* We can also use these for custom views. Throw error if property is collated but there's no subclass term
|
||||
* in the query. (The reverse is okay - uncollated property with a subclass term in the query.
|
||||
*/
|
||||
String collationTargetError = getCollationTargetError();
|
||||
if ( ! collationTargetError.isEmpty()) {
|
||||
String errorMessage = "Collation target error for collated object property " + getName() + ": " +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue