Class RemoteSTConnector
java.lang.Object
it.uniroma2.art.semanticturkey.showvoc.RemoteSTConnector
- Direct Known Subclasses:
RemoteVBConnector
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteSTConnector(String stHost, String vbUrl, SemanticTurkeyAuthenticator stAuthenticator, EmailApplicationContext appCtx, org.apache.http.impl.client.CloseableHttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.node.ObjectNodeaddRolesToUser(String projectName, String email, List<Role> roles) com.fasterxml.jackson.databind.node.ObjectNodecom.fasterxml.jackson.databind.node.ObjectNodecreateProject(String projectName, String baseURI, org.eclipse.rdf4j.model.IRI model, org.eclipse.rdf4j.model.IRI lexicalizationModel, PluginSpecification coreRepoSailConfigurerSpecification) com.fasterxml.jackson.databind.node.ObjectNodecreateProject(String projectName, String baseURI, org.eclipse.rdf4j.model.IRI model, org.eclipse.rdf4j.model.IRI lexicalizationModel, RemoteRepositoryAccess remoteRepositoryAccess, PluginSpecification coreRepoSailConfigurerSpecification, PluginSpecification supportRepoSailConfigurerSpecification, boolean historyEnabled, boolean validationEnabled, boolean undoEnabled, String preloadedDataFileName, org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat, boolean flattenGraphs, TransitiveImportMethodAllowance transitiveImportAllowance, MDRRegistration mdrRegistration) com.fasterxml.jackson.databind.node.ObjectNodecreateProject(String projectName, String baseURI, org.eclipse.rdf4j.model.IRI model, org.eclipse.rdf4j.model.IRI lexicalizationModel, RemoteRepositoryAccess remoteRepositoryAccess, PluginSpecification coreRepoSailConfigurerSpecification, String preloadedDataFileName, org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat, boolean flattenGraphs, TransitiveImportMethodAllowance transitiveImportAllowance, MDRRegistration mdrRegistration) com.fasterxml.jackson.databind.node.ObjectNodecom.fasterxml.jackson.databind.node.ObjectNodeenableUser(String email) com.fasterxml.jackson.databind.node.ObjectNodefindDatasetAbstractionForProject(String projectName) com.fasterxml.jackson.databind.node.ObjectNodegetProjectInfo(String projectName) com.fasterxml.jackson.databind.node.ObjectNodeloadNewVersion(String projectName, String version, String preloadedDataFileName, org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat, TransitiveImportMethodAllowance transitiveImportAllowance, Boolean flattenGraphs, Boolean currentVersion, DeploymentActivity deploymentActivity, org.eclipse.rdf4j.model.Literal abstractDatasetIdentifier) com.fasterxml.jackson.databind.node.ObjectNodeloadRDF(String projectName, String baseURI, File file, String format, PluginSpecification rdfLifterSpec, TransitiveImportMethodAllowance transitiveImportAllowance, boolean targetGraphsFromData) com.fasterxml.jackson.databind.node.ObjectNodecom.fasterxml.jackson.databind.node.ObjectNodepreloadDataFromFile(File preloadedData, org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat) com.fasterxml.jackson.databind.node.ObjectNodeupdateLanguagesOfUserInProject(String projectName, String email, List<String> languages)
-
Constructor Details
-
RemoteSTConnector
public RemoteSTConnector(String stHost, String vbUrl, SemanticTurkeyAuthenticator stAuthenticator, EmailApplicationContext appCtx, org.apache.http.impl.client.CloseableHttpClient httpClient) throws STPropertyAccessException - Throws:
STPropertyAccessException
-
-
Method Details
-
getVocbenchUrl
-
loginAdmin
- Throws:
IOException
-
createProject
public com.fasterxml.jackson.databind.node.ObjectNode createProject(String projectName, String baseURI, org.eclipse.rdf4j.model.IRI model, org.eclipse.rdf4j.model.IRI lexicalizationModel, PluginSpecification coreRepoSailConfigurerSpecification) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
createProject
public com.fasterxml.jackson.databind.node.ObjectNode createProject(String projectName, String baseURI, org.eclipse.rdf4j.model.IRI model, org.eclipse.rdf4j.model.IRI lexicalizationModel, RemoteRepositoryAccess remoteRepositoryAccess, PluginSpecification coreRepoSailConfigurerSpecification, String preloadedDataFileName, org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat, boolean flattenGraphs, TransitiveImportMethodAllowance transitiveImportAllowance, MDRRegistration mdrRegistration) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
createProject
public com.fasterxml.jackson.databind.node.ObjectNode createProject(String projectName, String baseURI, org.eclipse.rdf4j.model.IRI model, org.eclipse.rdf4j.model.IRI lexicalizationModel, RemoteRepositoryAccess remoteRepositoryAccess, PluginSpecification coreRepoSailConfigurerSpecification, PluginSpecification supportRepoSailConfigurerSpecification, boolean historyEnabled, boolean validationEnabled, boolean undoEnabled, String preloadedDataFileName, org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat, boolean flattenGraphs, TransitiveImportMethodAllowance transitiveImportAllowance, MDRRegistration mdrRegistration) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
createUser
public com.fasterxml.jackson.databind.node.ObjectNode createUser(String email, String password, String givenName, String familyName, String organization) throws IOException - Throws:
IOException
-
enableUser
- Throws:
IOException
-
addRolesToUser
public com.fasterxml.jackson.databind.node.ObjectNode addRolesToUser(String projectName, String email, List<Role> roles) throws IOException - Throws:
IOException
-
getProjectInfo
public com.fasterxml.jackson.databind.node.ObjectNode getProjectInfo(String projectName) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
loadRDF
public com.fasterxml.jackson.databind.node.ObjectNode loadRDF(String projectName, String baseURI, File file, String format, PluginSpecification rdfLifterSpec, TransitiveImportMethodAllowance transitiveImportAllowance, boolean targetGraphsFromData) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-
clearData
public com.fasterxml.jackson.databind.node.ObjectNode clearData(String projectName) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-
updateLanguagesOfUserInProject
public com.fasterxml.jackson.databind.node.ObjectNode updateLanguagesOfUserInProject(String projectName, String email, List<String> languages) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-
preloadDataFromFile
public com.fasterxml.jackson.databind.node.ObjectNode preloadDataFromFile(File preloadedData, org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-
loadNewVersion
public com.fasterxml.jackson.databind.node.ObjectNode loadNewVersion(String projectName, String version, String preloadedDataFileName, org.eclipse.rdf4j.rio.RDFFormat preloadedDataFormat, @Nullable TransitiveImportMethodAllowance transitiveImportAllowance, @Nullable Boolean flattenGraphs, @Nullable Boolean currentVersion, @Nullable DeploymentActivity deploymentActivity, @Nullable org.eclipse.rdf4j.model.Literal abstractDatasetIdentifier) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-
findDatasetAbstractionForProject
public com.fasterxml.jackson.databind.node.ObjectNode findDatasetAbstractionForProject(String projectName) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-