Fix some comments.
This commit is contained in:
parent
f0fe94bdd0
commit
91e11c0809
2 changed files with 6 additions and 6 deletions
|
@ -70,15 +70,15 @@ public abstract class BaseIndividualTemplateModel extends BaseTemplateModel {
|
|||
return UrlBuilder.getIndividualProfileUrl(individual, vreq.getWebappDaoFactory());
|
||||
}
|
||||
|
||||
// This remains as a convenience method for getting the image url. We could instead use a custom list
|
||||
// view for mainImage which would provide this data in the query results.
|
||||
// For image, we use the default list view and Individual methods to reconstruct the image
|
||||
// url from various triples. A custom list view would require that logic to be duplicated here.
|
||||
public String getImageUrl() {
|
||||
String imageUrl = individual.getImageUrl();
|
||||
return imageUrl == null ? null : getUrl(imageUrl);
|
||||
}
|
||||
|
||||
// This remains as a convenience method for getting the thumbnail url. We could instead use a custom list
|
||||
// view for mainImage which would provide this data in the query results.
|
||||
// For image, we use the default list view and Individual methods to reconstruct the image
|
||||
// url from various triples. A custom list view would require that logic to be duplicated here.
|
||||
public String getThumbUrl() {
|
||||
String thumbUrl = individual.getThumbUrl();
|
||||
return thumbUrl == null ? null : getUrl(thumbUrl);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<!-- Default list view config file for uncollated object properties
|
||||
<!-- Default list view config file for object properties
|
||||
|
||||
See guidelines in vitro/doc/list_view_configuration_guidelines.txt -->
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
|||
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
|
||||
|
||||
SELECT <collation-fragment> ?subclass </collation-fragment>
|
||||
?object ?name ?moniker {
|
||||
?object ?name ?moniker WHERE {
|
||||
?subject ?property ?object
|
||||
<collation-fragment> OPTIONAL { ?object a ?subclass }
|
||||
FILTER ( afn:namespace(?subclass) != "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#" )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue