public class QueryOrTemplateCall extends Object
| Constructor and Description |
|---|
QueryOrTemplateCall(org.apache.jena.rdf.model.Resource cls,
Query query)
Constructs an instance representing a plain Query.
|
QueryOrTemplateCall(org.apache.jena.rdf.model.Resource cls,
TemplateCall templateCall)
Constructs an instance representing a template call.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.jena.rdf.model.Resource |
getCls()
Gets the associated subject, e.g.
|
Query |
getQuery()
If this is a Query, then get it.
|
TemplateCall |
getTemplateCall()
If this is a TemplateCall, then return it.
|
String |
toString()
Gets a human-readable text of either the query or the template call.
|
public QueryOrTemplateCall(org.apache.jena.rdf.model.Resource cls,
Query query)
cls - the class the query is attached toquery - the SPIN Querypublic QueryOrTemplateCall(org.apache.jena.rdf.model.Resource cls,
TemplateCall templateCall)
cls - the class the template call is attached totemplateCall - the template callpublic Query getQuery()
public org.apache.jena.rdf.model.Resource getCls()
public TemplateCall getTemplateCall()
Copyright © 2017 TopQuadrant, Inc.. All rights reserved.