public class View extends Object
Modifier and Type | Class and Description |
---|---|
static class |
View.State |
static class |
View.Type |
Modifier and Type | Field and Description |
---|---|
static View |
ALL
View that does DESCRIBE plus labels of all objects.
|
static View |
BASIC
View that does rdf:type and rdfs:label.
|
protected List<PropertyChain> |
chains |
static View |
DESCRIBE
View that does DESCRIBE.
|
protected int |
describeThreshold |
protected static List<PropertyChain> |
emptyChain |
protected String |
labelPropertyURI |
protected String |
name |
static String |
SHOW_ALL |
static String |
SHOW_BASIC |
static String |
SHOW_DEFAULT_INTERNAL |
static String |
SHOW_DESCRIPTION |
protected String |
template |
protected View.Type |
type |
Constructor and Description |
---|
View() |
View(String name) |
View(String name,
View.Type type) |
View(String name,
View.Type type,
List<PropertyChain> initial) |
Modifier and Type | Method and Description |
---|---|
View |
addFrom(View t)
Answer this view after updating it by adding all the property chains
of the argument view (which must not be null).
|
View |
addViewFromParameterValue(String prop,
ShortnameService sns)
Answer this view after updating it with the given property string.
|
View |
addViewFromRDFList(com.hp.hpl.jena.rdf.model.Resource spec,
ShortnameService sns)
Answer this view after modifying it to contain all the property
chains defined by
spec . |
Set<PropertyChain> |
chains() |
View |
copy()
Answer this view if it is ALL, otherwise a new view that
does the same filtering and is mutable without affecting the
original.
|
static String |
createDescribeQueryForItems(View.State s,
List<com.hp.hpl.jena.rdf.model.Resource> allRoots) |
boolean |
equals(Object other) |
String |
fetchDescriptions(Controls c,
View.State s) |
String |
fetchDescriptionsFor(Controls c,
String select,
List<com.hp.hpl.jena.rdf.model.Resource> roots,
com.hp.hpl.jena.rdf.model.Model m,
APISpec spec,
VarSupply vars,
String graphName) |
static View |
getBuiltin(com.hp.hpl.jena.rdf.model.Resource r)
Answer the built-in view with the given URI, or null if there
isn't one.
|
String |
getTemplate() |
View.Type |
getType() |
boolean |
isTemplateView() |
long |
minExpiryMillis(PropertyExpiryTimes pet,
long givenDuration)
minExpiryTime(pet, dur) returns the minimum of the expiry times for
predicates in this view.
|
String |
name() |
String |
nameWithoutCopy() |
static View |
newTemplateView(String viewName,
String template) |
void |
setDescribeLabel(String labelPropertyURI)
Set the describe label used by this viewer.
|
void |
setDescribeThreshold(int threshold) |
String |
toString()
Answer a string describing this view.
|
String |
viewByTemplate(List<com.hp.hpl.jena.rdf.model.Resource> roots,
com.hp.hpl.jena.rdf.model.Model m,
APISpec spec,
List<Source> sources,
String graphName) |
protected final List<PropertyChain> chains
public static final String SHOW_ALL
public static final String SHOW_BASIC
public static final String SHOW_DESCRIPTION
public static final String SHOW_DEFAULT_INTERNAL
protected static final List<PropertyChain> emptyChain
public static final View ALL
public static final View BASIC
public static final View DESCRIBE
protected View.Type type
protected String name
protected String template
protected String labelPropertyURI
protected int describeThreshold
public View()
public View(String name)
public View(String name, View.Type type, List<PropertyChain> initial)
public static View getBuiltin(com.hp.hpl.jena.rdf.model.Resource r)
public String name()
public String nameWithoutCopy()
public View.Type getType()
public Set<PropertyChain> chains()
public View copy()
public boolean isTemplateView()
public String getTemplate()
public void setDescribeLabel(String labelPropertyURI)
public void setDescribeThreshold(int threshold)
public View addViewFromRDFList(com.hp.hpl.jena.rdf.model.Resource spec, ShortnameService sns)
spec
.public View addViewFromParameterValue(String prop, ShortnameService sns)
public View addFrom(View t)
public String toString()
public String fetchDescriptions(Controls c, View.State s)
public static String createDescribeQueryForItems(View.State s, List<com.hp.hpl.jena.rdf.model.Resource> allRoots)
public String fetchDescriptionsFor(Controls c, String select, List<com.hp.hpl.jena.rdf.model.Resource> roots, com.hp.hpl.jena.rdf.model.Model m, APISpec spec, VarSupply vars, String graphName)
public String viewByTemplate(List<com.hp.hpl.jena.rdf.model.Resource> roots, com.hp.hpl.jena.rdf.model.Model m, APISpec spec, List<Source> sources, String graphName)
public long minExpiryMillis(PropertyExpiryTimes pet, long givenDuration)
Copyright © 2014. All Rights Reserved.