Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SMW\SPARQLStore\TurtleTriplesBuilder Class Reference

Public Member Functions

 __construct (RepositoryRedirectLookup $repositoryRedirectLookup, Cache $cache=null)
 
 setTriplesChunkSize ($triplesChunkSize)
 
 doBuildTriplesFrom (SemanticData $semanticData)
 
 hasTriples ()
 
 getTriples ()
 
 getChunkedTriples ()
 
 getPrefixes ()
 

Static Public Member Functions

static reset ()
 

Public Attributes

const POOLCACHE_ID = 'sparql.turtle.triplesbuilder'
 

Detailed Description

GNU GPL v2+

Since
2.0
Author
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

SMW\SPARQLStore\TurtleTriplesBuilder::__construct ( RepositoryRedirectLookup  $repositoryRedirectLookup,
Cache  $cache = null 
)
Since
2.0
Parameters
RepositoryRedirectLookup$repositoryRedirectLookup
Cache | null$cache

Member Function Documentation

SMW\SPARQLStore\TurtleTriplesBuilder::doBuildTriplesFrom ( SemanticData  $semanticData)
Since
2.0
Parameters
SemanticData$semanticData
SMW\SPARQLStore\TurtleTriplesBuilder::getChunkedTriples ( )

Split the triples into group of chunks as it can happen that some subjects contain SPARQL strings that exceed 1800 lines which may reach the capacity limit of a RespositoryConnector (#1110).

Since
2.3
Returns
array
SMW\SPARQLStore\TurtleTriplesBuilder::getPrefixes ( )
Since
2.0
Returns
array
SMW\SPARQLStore\TurtleTriplesBuilder::getTriples ( )
Since
2.3
Returns
string
SMW\SPARQLStore\TurtleTriplesBuilder::hasTriples ( )
Since
2.0
Returns
boolean
static SMW\SPARQLStore\TurtleTriplesBuilder::reset ( )
static
Since
2.0
SMW\SPARQLStore\TurtleTriplesBuilder::setTriplesChunkSize (   $triplesChunkSize)
Since
2.3
Parameters
integer$chunkSize

Member Data Documentation

const SMW\SPARQLStore\TurtleTriplesBuilder::POOLCACHE_ID = 'sparql.turtle.triplesbuilder'

ID used for the InMemoryPoolCache


The documentation for this class was generated from the following file: