
* [VIVO-1312] Linked Data Fragments initial implementation * [VIVO-1312] Use known ontologies in the prefixes config * [VIVO-1312] Simplify SPARQL as when restricted to specific values, they don’t need ordering * [VIVO-1312] Freemarker fixes * [VIVO-1312] Remove blank nodes * [VIVO-1312] Add access control header and standard prefixes for TPF * [VIVO-1312] Render literals in form so that they will work on resubmit * [VIVO-1312] Minor template update * [VIVO-1312] Minor template update
42 lines
975 B
Java
42 lines
975 B
Java
package org.linkeddatafragments.views;
|
|
|
|
import org.linkeddatafragments.datasource.IDataSource;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* Base class of any implementation of {@link ILinkedDataFragmentWriter}.
|
|
*
|
|
* @author Miel Vander Sande
|
|
*/
|
|
public abstract class LinkedDataFragmentWriterBase implements ILinkedDataFragmentWriter {
|
|
private final Map<String, String> prefixes;
|
|
private final HashMap<String, IDataSource> datasources;
|
|
|
|
/**
|
|
*
|
|
* @param prefixes
|
|
* @param datasources
|
|
*/
|
|
public LinkedDataFragmentWriterBase(Map<String, String> prefixes, HashMap<String, IDataSource> datasources) {
|
|
this.prefixes = prefixes;
|
|
this.datasources = datasources;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return
|
|
*/
|
|
public Map<String, String> getPrefixes() {
|
|
return prefixes;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return
|
|
*/
|
|
public HashMap<String, IDataSource> getDatasources() {
|
|
return datasources;
|
|
}
|
|
}
|