Interface ILinkedDataFragment
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Subinterfaces:
ITriplePatternFragment
- All Known Implementing Classes:
LinkedDataFragmentBase,TriplePatternFragmentBase,TriplePatternFragmentImpl
public interface ILinkedDataFragment extends Closeable
Represents any possible Linked Data Fragment.- Author:
- Olaf Hartig
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.jena.rdf.model.StmtIteratorgetControls()Returns an iterator over an RDF description of the controls associated with this fragment.longgetMaxPageSize()Returns the maximum number of triples per page ifgetTriples()returns a page of data only (that is, ifisPageOnly()returns true).org.apache.jena.rdf.model.StmtIteratorgetMetadata()Returns an iterator over the metadata of this fragment.longgetPageNumber()Returns the number of the page of data returned bygetTriples()if the data is paged (that is, ifisPageOnly()returns true).org.apache.jena.rdf.model.StmtIteratorgetTriples()Returns an iterator over the RDF data of this fragment (possibly only partial if the data is paged, as indicated byisPageOnly()).booleanisLastPage()Returns true ifgetTriples()returns a page of data only and this is the last page of the fragment.booleanisPageOnly()Returns true ifgetTriples()returns a page of data only.
-
-
-
Method Detail
-
getTriples
org.apache.jena.rdf.model.StmtIterator getTriples()
Returns an iterator over the RDF data of this fragment (possibly only partial if the data is paged, as indicated byisPageOnly()).- Returns:
-
isPageOnly
boolean isPageOnly()
Returns true ifgetTriples()returns a page of data only. In this case,getPageNumber()can be used to obtain the corresponding page number.- Returns:
-
getPageNumber
long getPageNumber() throws UnsupportedOperationExceptionReturns the number of the page of data returned bygetTriples()if the data is paged (that is, ifisPageOnly()returns true). If the data is not paged, this method throws an exception.- Returns:
- Throws:
UnsupportedOperationException- If the data of this fragment is not paged.
-
isLastPage
boolean isLastPage() throws UnsupportedOperationExceptionReturns true ifgetTriples()returns a page of data only and this is the last page of the fragment. If the data is not paged (i.e., ifisPageOnly()returns false), this method throws an exception.- Returns:
- Throws:
UnsupportedOperationException- If the data of this fragment is not paged.
-
getMaxPageSize
long getMaxPageSize() throws UnsupportedOperationExceptionReturns the maximum number of triples per page ifgetTriples()returns a page of data only (that is, ifisPageOnly()returns true). If the data is not paged, this method throws an exception.- Returns:
- Throws:
UnsupportedOperationException- If the data of this fragment is not paged.
-
getMetadata
org.apache.jena.rdf.model.StmtIterator getMetadata()
Returns an iterator over the metadata of this fragment.- Returns:
-
getControls
org.apache.jena.rdf.model.StmtIterator getControls()
Returns an iterator over an RDF description of the controls associated with this fragment.- Returns:
-
-