Package de.fuberlin.wiwiss.pubby.ResourceDescription

Examples of de.fuberlin.wiwiss.pubby.ResourceDescription.ResourceProperty


    if (resource == null) return false;

    Model descriptions = config.getDataSource().listPropertyValues(
        controller.getAbsoluteIRI(), predicate, isInverse);
    if (descriptions.isEmpty()) return false;
    ResourceProperty property = new ResourceDescription(
        controller, descriptions, config).getProperty(predicate, isInverse);
    if (property == null) return false// Can happen if prefix is declared in URI space of a data source rather than in web space
   
    VelocityHelper template = new VelocityHelper(getServletContext(), response);
    Context context = template.getVelocityContext();
    context.put("project_name", config.getProjectName());
    context.put("project_link", config.getProjectLink());
    context.put("uri", resource.getURI());
    context.put("server_base", config.getWebApplicationBaseURI());
    context.put("title", resource.getTitle());
    context.put("head_title", resource.getTitle() + " \u00BB " + property.getCompleteLabel());
    context.put("property", property);
    context.put("back_uri", controller.getBrowsableURL());
    context.put("back_label", resource.getTitle());
    context.put("rdf_link", isInverse ? controller.getInverseValuesDataURL(predicate) : controller.getValuesDataURL(predicate));
    context.put("showLabels", config.showLabels());
View Full Code Here


    if (resource == null) return false;

    Model descriptions = config.getDataSource().listPropertyValues(
        controller.getAbsoluteIRI(), predicate, isInverse);
    if (descriptions.isEmpty()) return false;
    ResourceProperty property = new ResourceDescription(
        controller, descriptions, config).getProperty(predicate, isInverse);
    if (property == null) return false// Can happen if prefix is declared in URI space of a data source rather than in web space

    addDocumentMetadata(descriptions, controller,
        addQueryString(
            isInverse
                ? controller.getInverseValuesDataURL(predicate)
                : controller.getValuesDataURL(predicate),
            request),
        getDocumentTitle(
            resource.getTitle(), property.getCompleteLabel(), isInverse));
   
    new ModelResponse(descriptions, request, response).serve();
    return true;
  }
View Full Code Here

TOP

Related Classes of de.fuberlin.wiwiss.pubby.ResourceDescription.ResourceProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.