public class BigdataInterface extends Object
| Constructor and Description |
|---|
BigdataInterface() |
BigdataInterface(String url,
Boolean lbs) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearRDFDatabase() |
void |
execSparql(String query) |
org.openrdf.query.TupleQueryResult |
executeQuery(String query)
it executes SPARQL query on the databse
|
List<String> |
getAllPageIds()
gets all pages URI
|
org.openrdf.model.Model |
getAreaModelForAreaTreeId(String areaTreeId)
it returns area model
|
List<String> |
getAreaTreeIdsForPageId(String pageId)
gets all area models for specific url
|
org.openrdf.model.Model |
getBoxModelForPageId(String pageId) |
org.openrdf.model.Model |
getBoxModelForTimestamp(String timestamp)
it builds Model variable (specific type of Graph) for the information
|
org.openrdf.repository.RepositoryConnection |
getConnection() |
List<String> |
getDistinctUrlPages()
it returns a list of distinct source urls in database
|
List<String> |
getPageIdsForUrl(String url)
method gives a list of pageIDs for the specific url
|
org.openrdf.model.Model |
getPageInfo(String pageId)
loads page info - sourceUrl, launchDateTime
|
org.openrdf.model.Model |
getSubjectModel(org.openrdf.model.Resource subject)
gets model with all attributes
|
org.openrdf.repository.RepositoryResult<org.openrdf.model.Statement> |
getSubjectStatements(org.openrdf.model.Resource subject)
gets all statements for the specific subject
(gets all triples for specific node)
|
void |
importTurtle(String query) |
void |
insertAreaTree(org.fit.layout.model.AreaTree atree,
org.fit.layout.model.LogicalAreaTree ltree,
org.openrdf.model.impl.URIImpl pageId)
inserts area tree to specific pageId
|
void |
insertPageBoxModel(org.fit.layout.model.Page page)
stores page model into bigdata database
|
void |
removePage(String pageId)
it removes page
|
public BigdataInterface()
throws org.openrdf.repository.RepositoryException
org.openrdf.repository.RepositoryExceptionpublic org.openrdf.repository.RepositoryConnection getConnection()
public List<String> getDistinctUrlPages()
public List<String> getAllPageIds() throws Exception
Exceptionpublic List<String> getPageIdsForUrl(String url)
url - it defines url of processed sitepublic void insertPageBoxModel(org.fit.layout.model.Page page)
page - public void removePage(String pageId)
pageId - public org.openrdf.model.Model getBoxModelForTimestamp(String timestamp) throws Exception
timestamp - Exceptionpublic org.openrdf.model.Model getBoxModelForPageId(String pageId) throws Exception
Exceptionpublic org.openrdf.model.Model getPageInfo(String pageId) throws Exception
pageId - Exceptionpublic org.openrdf.model.Model getAreaModelForAreaTreeId(String areaTreeId) throws Exception
areaTreeId - Exceptionpublic List<String> getAreaTreeIdsForPageId(String pageId) throws Exception
pageId - Exceptionpublic void insertAreaTree(org.fit.layout.model.AreaTree atree,
org.fit.layout.model.LogicalAreaTree ltree,
org.openrdf.model.impl.URIImpl pageId)
atree - pageId - public org.openrdf.repository.RepositoryResult<org.openrdf.model.Statement> getSubjectStatements(org.openrdf.model.Resource subject)
throws org.openrdf.repository.RepositoryException
subject - org.openrdf.repository.RepositoryExceptionpublic org.openrdf.model.Model getSubjectModel(org.openrdf.model.Resource subject)
throws Exception
subject - Exceptionpublic org.openrdf.query.TupleQueryResult executeQuery(String query) throws org.openrdf.query.QueryEvaluationException
str - org.openrdf.query.QueryEvaluationExceptionpublic void clearRDFDatabase()
public void execSparql(String query)
public void importTurtle(String query)
Copyright © 2015. All rights reserved.