Commit fcf47875 authored by Arnaud Saval's avatar Arnaud Saval

WEBLAB-957 tag metadata-portlet

git-svn-id: svn://svn.forge.objectweb.org/svnroot/weblab/tags/WebLabServices/Portlets/metadata-portlet/v1.2.0@3386 a803c184-d8de-4a0e-a52b-d3eef88212b6
parents
This diff is collapsed.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.ow2.weblab.portlets</groupId>
<artifactId>parent</artifactId>
<version>1.2.5</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>
<artifactId>weblab-metaview</artifactId>
<version>1.2.0</version>
<packaging>war</packaging>
<name>WebLab Metaview</name>
<description>this portlet allows you to display chosen metadata to the user for a given Document</description>
<dependencies>
<dependency>
<groupId>org.ow2.weblab.portlets</groupId>
<artifactId>weblab-portlet</artifactId>
</dependency>
<dependency>
<groupId>org.ow2.weblab.core.helpers</groupId>
<artifactId>rdf-helper-jena</artifactId>
</dependency>
<dependency>
<groupId>org.ow2.weblab.core.helpers</groupId>
<artifactId>rdf-helper-jena-selection</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</dependency>
<dependency>
<groupId>org.ow2.weblab.components</groupId>
<artifactId>weblab-client</artifactId>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
</build>
</project>
/**
* WEBLAB: Service oriented integration platform for media mining and intelligence applications
*
* Copyright (C) 2004 - 2012 Cassidian, an EADS Company
*
* This library is free software; you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation; either version
* 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
* the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
package org.ow2.weblab.portlet.bean;
/**
* Bean representing the configuration of the annotation filter service.
*
* @author emilien
*/
public class AnnotationServiceConfigBean {
private String serviceURL;
public AnnotationServiceConfigBean() {
}
public String getServiceURL() {
return this.serviceURL;
}
public void setServiceURL(final String serviceURL) {
this.serviceURL = serviceURL;
}
}
/**
* WEBLAB: Service oriented integration platform for media mining and intelligence applications
*
* Copyright (C) 2004 - 2012 Cassidian, an EADS Company
*
* This library is free software; you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation; either version
* 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
* the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
package org.ow2.weblab.portlet.bean;
import java.util.Map;
/**
* Bean to store annotations description and it value.
*
* @author emilien
*/
public class AnnotationsDescBean {
/*
* attributes
*/
private Map<String, String> properties;
/**
* @return the properties
*/
public Map<String, String> getProperties() {
return this.properties;
}
/**
* @param properties
* the properties to set
*/
public void setProperties(final Map<String, String> properties) {
this.properties = properties;
}
public String[] getDisctinctAnnotationsNS() {
return this.properties.values().toArray(new String[this.properties.values().size()]);
}
/**
* get the value for the annotation name-space.
*
* @param namespace
* of annotation
* @return value for this annotation
*/
public String getAnnotationValue(final String namespace) {
return this.properties.get(namespace).toString();
}
}
/**
* WEBLAB: Service oriented integration platform for media mining and intelligence applications
*
* Copyright (C) 2004 - 2012 Cassidian, an EADS Company
*
* This library is free software; you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation; either version
* 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
* the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
package org.ow2.weblab.portlet.bean;
import java.util.Map;
import java.util.TreeMap;
/**
* Class representing a result configuration for result portlet.
*
* @author emilien
*/
public class MetaConfBean {
private Map<String, Boolean> properties;
public MetaConfBean() {
this.properties = new TreeMap<String, Boolean>();
}
public Map<String, Boolean> getProperties() {
return this.properties;
}
public void setProperties(final Map<String, Boolean> properties) {
this.properties = properties;
}
}
/**
* WEBLAB: Service oriented integration platform for media mining and intelligence applications
*
* Copyright (C) 2004 - 2012 Cassidian, an EADS Company
*
* This library is free software; you can redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the Free Software Foundation; either version
* 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
* the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
package org.ow2.weblab.portlet.bean;
/**
* Bean representing the configuration of the search service.
*
* @author emilien
*/
public class RepoServiceConfigBean {
private String serviceURI;
public RepoServiceConfigBean() {
}
public String getServiceURI() {
return this.serviceURI;
}
public void setServiceURI(final String serviceURL) {
this.serviceURI = serviceURL;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<!-- Spring xml for meta-data display in the result portlet. Here is
defined interesting RDF annotations namespace for the result portlet.
The portlet search in resources for this annotation and display them
when possible (as meta-data).
-->
<beans>
<bean id="metaConf" class="org.ow2.weblab.portlet.bean.AnnotationsDescBean">
<property name="properties">
<map>
<!-- Documents properties -->
<entry key="hasNativeContent" value="http://weblab.ow2.org/core/1.2/ontology/processing#hasNativeContent" />
<entry key="hasNormalisedContent" value="http://weblab.ow2.org/core/1.2/ontology/processing#hasNormalisedContent" />
<entry key="isGeneratedFrom" value="http://weblab.ow2.org/core/1.2/ontology/processing#isGeneratedFrom" />
<entry key="isProducedFrom" value="http://weblab.ow2.org/core/1.2/ontology/processing#isProducedFrom" />
<entry key="isExposedAs" value="http://weblab.ow2.org/core/1.2/ontology/processing#isExposedAs" />
<entry key="gatheringDate" value="http://weblab.ow2.org/core/1.2/ontology/processing#hasGatheringDate" />
<entry key="projectName" value="http://weblab-project.org/core/model/property/crawler/projectName" />
<entry key="hasOriginalFileSize" value="http://weblab.ow2.org/core/1.2/ontology/processing#hasOriginalFileSize" />
<entry key="hasOriginalFileName" value="http://weblab.ow2.org/core/1.2/ontology/processing#hasOriginalFileName" />
<entry key="refersTo" value="http://weblab.ow2.org/core/1.2/ontology/processing#refersTo" />
<!-- DublinCore properties-->
<entry key="title" value="http://purl.org/dc/elements/1.1/title" />
<entry key="abstract" value="http://purl.org/dc/terms/abstract" />
<entry key="creator" value="http://purl.org/dc/elements/1.1/creator" />
<entry key="catego" value="http://purl.org/dc/terms/subject" />
<entry key="subject" value="http://purl.org/dc/elements/1.1/subject" />
<entry key="description" value="http://purl.org/dc/elements/1.1/description" />
<entry key="publisher" value="http://purl.org/dc/elements/1.1/publisher" />
<entry key="contributor" value="http://purl.org/dc/elements/1.1/contributor" />
<entry key="date" value="http://purl.org/dc/elements/1.1/date" />
<entry key="type" value="http://purl.org/dc/elements/1.1/type" />
<entry key="format" value="http://purl.org/dc/elements/1.1/format" />
<entry key="identifier" value="http://purl.org/dc/elements/1.1/identifier" />
<entry key="source" value="http://purl.org/dc/elements/1.1/source" />
<entry key="language" value="http://purl.org/dc/elements/1.1/language" />
<entry key="relation" value="http://purl.org/dc/elements/1.1/relation" />
<entry key="coverage" value="http://purl.org/dc/elements/1.1/coverage" />
<entry key="rights" value="http://purl.org/dc/elements/1.1/rights" />
<entry key="modified" value="http://purl.org/dc/terms/modified" />
<entry key="created" value="http://purl.org/dc/terms/created" />
<entry key="extent" value="http://purl.org/dc/terms/extent" />
<!-- FOAF properties -->
<entry key="thumbnail" value="http://xmlns.com/foaf/0.1/thumbnail"></entry>
<entry key="firstName" value="http://xmlns.com/foaf/0.1/firstName"></entry>
<entry key="lastName" value="http://xmlns.com/foaf/0.1/lastName"></entry>
<!-- RDF properties -->
<entry key="seeAlso" value="http://www.w3.org/2000/01/rdf-schema#seeAlso" />
<!-- Search properties -->
<entry key="hasRank" value="http://weblab.ow2.org/core/1.2/ontology/retrieval#hasRank" />
<entry key="hasDescription" value="http://weblab.ow2.org/core/1.2/ontology/retrieval#hasDescription" />
<entry key="hasScore" value="http://weblab.ow2.org/core/1.2/ontology/retrieval#hasScore" />
<entry key="isLinkedTo" value="http://weblab.ow2.org/core/1.2/ontology/retrieval#isLinkedTo" />
<entry key="inResultSet" value="http://weblab.ow2.org/core/1.2/ontology/retrieval#inResultSet" />
</map>
</property>
</bean>
<bean id="meta_conf_bean" class="org.ow2.weblab.portlet.bean.MetaConfBean">
<property name="properties">
<map>
<!-- Documents properties -->
<entry key="hasNativeContent" value="false" />
<entry key="hasNormalisedContent" value="false" />
<entry key="isGeneratedFrom" value="false" />
<entry key="isProducedFrom" value="true" />
<entry key="isExposedAs" value="true" />
<entry key="gatheringDate" value="false" />
<entry key="projectName" value="false" />
<entry key="hasOriginalFileSize" value="false" />
<entry key="hasOriginalFileName" value="false" />
<entry key="refersTo" value="false" />
<!-- DublinCore properties-->
<entry key="title" value="true" />
<entry key="abstract" value="true" />
<entry key="creator" value="false" />
<entry key="subject" value="true" />
<entry key="catego" value="true" />
<entry key="description" value="false" />
<entry key="publisher" value="false" />
<entry key="contributor" value="false" />
<entry key="date" value="false" />
<entry key="type" value="true" />
<entry key="format" value="true" />
<entry key="identifier" value="false" />
<entry key="source" value="true" />
<entry key="language" value="true" />
<entry key="relation" value="false" />
<entry key="coverage" value="false" />
<entry key="rights" value="false" />
<entry key="modified" value="false" />
<entry key="created" value="false" />
<entry key="extent" value="false" />
<!-- FOAF properties -->
<entry key="thumbnail" value="false"></entry>
<entry key="name" value="false"></entry>
<!-- RDF properties -->
<entry key="seeAlso" value="false" />
<!-- Search properties -->
<entry key="hasRank" value="false" />
<entry key="hasDescription" value="false" />
<entry key="hasScore" value="false" />
</map>
</property>
</bean>
</beans>
\ No newline at end of file
# Console appender limited to INFO
log4j.appender.console = org.apache.log4j.ConsoleAppender
log4j.appender.console.threshold = INFO
log4j.appender.console.encoding = UTF-8
log4j.appender.console.layout = org.apache.log4j.PatternLayout
log4j.appender.console.layout.conversionPattern = %d{ISO8601} %-5p %c - %m%n
# RollingFile appender limited to DEBUG
log4j.appender.rollingfile = org.apache.log4j.DailyRollingFileAppender
log4j.appender.rollingfile.threshold = DEBUG
log4j.appender.rollingfile.layout = org.apache.log4j.PatternLayout
log4j.appender.rollingfile.layout.conversionPattern = %d{ISO8601} %-5p %c - %m%n
log4j.appender.rollingfile.file = ${catalina.home}/logs/weblab-metaview/weblab-metaview.log
log4j.appender.rollingfile.append = true
log4j.appender.rollingfile.encoding = UTF-8
log4j.appender.rollingfile.datePattern = '.'yyyy-MM-dd
# Configuration of the Loggers
log4j.rootLogger = INFO, console, rollingfile
# You can decrease the level of a specific package by adding it here
#log4j.logger.org.springframework = INFO
javax.portlet.title= Metadata view Portlet
javax.portlet.description= Powered By WebLab
portlet.title = Metadata view
portlet.warning.session_expired = Session expired
meta.defaultTitle = Title unavailable
meta.metadata = meta-data
meta.hasNativeContent = Native Content
meta.hasNormalisedContent = Normalised Content
meta.isGeneratedFrom = Generated from
meta.isProducedFrom = Produced from
meta.isResultOf = Result of
meta.hasNumberOfResults = Number of results
meta.isExposedAs = Exposed as
meta.title = Title
meta.creator = Creator
meta.abstract = Summary
meta.catego = Category
meta.subject = Subject
meta.description = Description
meta.publisher = Publisher
meta.contibutor = Contributor
meta.date = Date
meta.type = Type
meta.format = Format
meta.identifier = Identifier
meta.source = Source
meta.language = Language
meta.relation = Relation
meta.coverage = Coverage
meta.right = Right
meta.modified = Modification date
meta.created = Creation date
meta.hasRank = Rank
meta.hasDescription = Description
meta.hasScore = Score
meta.gatheringDate = Gathering date
meta.extent = Media extension
meta.projectName = Crawling project name
meta.hasOriginalFileSize = Original file size
meta.refersTo = Refers to
meta.seeAlso = See also
portlet.not_sortable_results = Warning, results are not sortable but are displayed as a list!
portlet.meta.configuration = Displayed meta-data
meta.save_config = Save
portlet.no_meta = No meta-data to display
portlet.leave = You are going to leave the WebLab Platform, are you sure you want to access external networks ?
meta.language.en = English
meta.language.fr = French
meta.language.de = German
meta.language.ar = Arabic
meta.language.es = Spanish
meta.language.gr = Greek
meta.language.ir = Iranian
meta.language.in = Indian
meta.language.hr = Croate
meta.language.it = Italian
meta.language.jp = Japanese
meta.language.ko = Korea
meta.language.nl = Nederland
meta.language.pt = Portugais
meta.language.ru = Russian
meta.language.ch = Chinese
\ No newline at end of file
javax.portlet.title = Meta-Daten Ansicht Portlet
portlet.title = Meta-Daten Ansicht
portlet.warning.session_expired = Sitzung abgelaufen
meta.defaultTitle = Titel nicht verfgbar
meta.metadata = Metadaten
meta.hasNativeContent = Native Inhalt
meta.hasNormalisedContent = Normalisierter Inhalt
meta.isGeneratedFrom = Generiert aus
meta.isProducedFrom = Verarbeitet aus
meta.isResultOf = Ergebnis von
meta.hasNumberOfResults = Anzahl der Ergebnisse
meta.isExposedAs = Dargestellt als
meta.title = Titel
meta.creator = Verfasser
meta.abstract = Zusammenfassung
meta.catego = Kategorie
meta.subject = Thema
meta.description = Beschreibung
meta.publisher = Verffentlicht bei
meta.contibutor = Beitrag
meta.date = Datum
meta.type = Art
meta.format = Format
meta.identifier = Identifizierung
meta.source = Quelle
meta.language = Sprache
meta.relation = Verhltnis
meta.coverage = Berichterstattung
meta.right = Recht
meta.modified = nderungsdatum
meta.created = Verfassungsdatum
meta.hasRank = Rang
meta.hasDescription = Beschreibung
meta.hasScore = Ergebnis
meta.gatheringDate = Sammlungsdatum
meta.extent = Medien Verbreitung
meta.projectName = Bestehender Projektname
meta.hasOriginalFileSize = Originale Verzeichnisgre
meta.refersTo = Bezieht sich auf
meta.seeAlso = Siehe auch
portlet.not_sortable_results = Achtung, Ergebnisse sind nicht sortierbar, werden aber als Liste dargestellt!
portlet.meta.configuration = Dargestellte Meta-Daten
meta.save_config = Speichern
portlet.no_meta = Keine Meta-Daten zum Darstellen
meta.language.en = Englisch
meta.language.fr = Franzsisch
meta.language.de = Deutsch
meta.language.ar = Arabisch
meta.language.es = Spanisch
meta.language.gr = Griechisch
meta.language.ir = Iranisch
meta.language.in = Indisch
meta.language.hr = Kroatisch
meta.language.it = Italienisch
meta.language.jp = Japanisch
meta.language.ko = Koreanisch
meta.language.nl = Niederlndisch
meta.language.pt = Portugiesisch
meta.language.ru = Russisch
meta.language.ch = Chinesisch
\ No newline at end of file
javax.portlet.title= Metadata view Portlet
portlet.title = Metadata view
portlet.warning.session_expired = Session expired
meta.defaultTitle = Title unavailable
meta.metadata = meta-data
meta.hasNativeContent = Native Content
meta.hasNormalisedContent = Normalised Content
meta.isGeneratedFrom = Generated from
meta.isProducedFrom = Produced from
meta.isResultOf = Result of
meta.hasNumberOfResults = Number of results
meta.isExposedAs = Exposed as
meta.title = Title
meta.creator = Creator
meta.abstract = Summary
meta.catego = Category
meta.subject = Subject
meta.description = Description
meta.publisher = Publisher
meta.contibutor = Contributor
meta.date = Date
meta.type = Type
meta.format = Format
meta.identifier = Identifier
meta.source = Source
meta.language = Language
meta.relation = Relation
meta.coverage = Coverage
meta.right = Right
meta.modified = Modification date
meta.created = Creation date
meta.hasRank = Rank
meta.hasDescription = Description
meta.hasScore = Score
meta.gatheringDate = Gathering date
meta.extent = Media extension
meta.projectName = Crawling project name
meta.hasOriginalFileSize = Original file size
meta.refersTo = Refers to
meta.seeAlso = See also
portlet.not_sortable_results = Warning, results are not sortable but are displayed as a list!
portlet.meta.configuration = Displayed meta-data
meta.save_config = Save
portlet.no_meta = No meta-data to display
portlet.leave = You are going to leave the WebLab Platform, are you sure you want to access external networks ?
meta.language.en = English
meta.language.fr = French
meta.language.de = German
meta.language.ar = Arabic
meta.language.es = Spanish
meta.language.gr = Greek
meta.language.ir = Iranian
meta.language.in = Indian
meta.language.hr = Croate
meta.language.it = Italian
meta.language.jp = Japanese
meta.language.ko = Korea
meta.language.nl = Nederland
meta.language.pt = Portugais
meta.language.ru = Russian
meta.language.ch = Chinese
\ No newline at end of file
javax.portlet.title= Portlet visor de metadatos
portlet.title = Visor de metadatos
portlet.warning.session_expired = Sesin caducada
meta.defaultTitle = Ttulo no disponible
meta.metadata = meta-datos
meta.hasNativeContent = Contenido Nativo
meta.hasNormalisedContent = Contenido Normalizado
meta.isGeneratedFrom = Generado a partir de
meta.isProducedFrom = Producido a partir de
meta.isResultOf = Resultado de
meta.hasNumberOfResults = Nmero de resultados
meta.isExposedAs = Expuesto como
meta.title = Ttulo
meta.creator = Creador
meta.abstract = Resumen
meta.catego = Categora
meta.subject = Tema
meta.description = Descripcin
meta.publisher = Editor
meta.contibutor = Colaborador
meta.date = Fecha
meta.type = Tipo
meta.format = Formato
meta.identifier = Identificador
meta.source = Fuente