Class RemoteSTConnector
java.lang.Object
it.uniroma2.art.semanticturkey.showvoc.RemoteSTConnector
- Direct Known Subclasses:
RemoteVBConnector
-
Constructor Summary
ConstructorDescriptionRemoteSTConnector
(String stHost, String vbUrl, String adminEmail, String adminPwd, EmailApplicationContext appCtx) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.node.ObjectNode
addRolesToUser
(String projectName, String email, List<Role> roles) com.fasterxml.jackson.databind.node.ObjectNode
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) 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, PluginSpecification supportRepoSailConfigurerSpecification, boolean historyEnabled, boolean validationEnabled, boolean undoEnabled) com.fasterxml.jackson.databind.node.ObjectNode
com.fasterxml.jackson.databind.node.ObjectNode
enableUser
(String email) com.fasterxml.jackson.databind.node.ObjectNode
getProjectInfo
(String projectName) com.fasterxml.jackson.databind.node.ArrayNode
Return the json array node list of the "remoteConfigs" STProperty (contained in the system core Settings) of the VB-ST instance.com.fasterxml.jackson.databind.node.ObjectNode
loadRDF
(String projectName, String baseURI, File file, String format, PluginSpecification rdfLifterSpec, TransitiveImportMethodAllowance transitiveImportAllowance, boolean targetGraphsFromData) com.fasterxml.jackson.databind.node.ObjectNode
com.fasterxml.jackson.databind.node.ObjectNode
updateLanguagesOfUserInProject
(String projectName, String email, List<String> languages)
-
Constructor Details
-
RemoteSTConnector
public RemoteSTConnector(String stHost, String vbUrl, String adminEmail, String adminPwd, EmailApplicationContext appCtx) 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:
IOException
URISyntaxException
-
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, PluginSpecification supportRepoSailConfigurerSpecification, boolean historyEnabled, boolean validationEnabled, boolean undoEnabled) throws IOException, URISyntaxException - Throws:
IOException
URISyntaxException
-
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:
IOException
URISyntaxException
-
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:
URISyntaxException
IOException
-
clearData
public com.fasterxml.jackson.databind.node.ObjectNode clearData(String projectName) throws URISyntaxException, IOException - Throws:
URISyntaxException
IOException
-
getRemoteAccessConfigurations
public com.fasterxml.jackson.databind.node.ArrayNode getRemoteAccessConfigurations() throws URISyntaxException, IOExceptionReturn the json array node list of the "remoteConfigs" STProperty (contained in the system core Settings) of the VB-ST instance. Returns null if VB has been not configured with remote configurations- Returns:
- Throws:
URISyntaxException
IOException
-
updateLanguagesOfUserInProject
public com.fasterxml.jackson.databind.node.ObjectNode updateLanguagesOfUserInProject(String projectName, String email, List<String> languages) throws URISyntaxException, IOException - Throws:
URISyntaxException
IOException
-