GraphUtil.getOptionalObjectLiteral(model, nextRecord, OasConstants.DC_TERMS_MODIFIED); final Literal message = GraphUtil.getOptionalObjectLiteral(model, nextRecord, RDFS.COMMENT); final Literal action = GraphUtil.getOptionalObjectLiteral(model, nextRecord, OasConstants.URN_TAG_LOGACTION); final URI method = GraphUtil.getOptionalObjectURI(model, nextRecord, OasConstants.URN_TAG_LOGOPERATION_VERB); final Literal user = GraphUtil.getOptionalObjectLiteral(model, nextRecord, OasConstants.FOAF_MAKER); final Literal reference = GraphUtil.getOptionalObjectLiteral(model, nextRecord, OasConstants.URN_TAG_AUDITLOG_REF); final Literal ipaddress = GraphUtil.getOptionalObjectLiteral(model, nextRecord, OasConstants.URN_TAG_USERSIPADDRESS);
final Literal userLit = GraphUtil.getOptionalObjectLiteral(graph, implNode, USER); if (userLit != null) { setUser(userLit.getLabel()); final Literal pwdLit = GraphUtil.getOptionalObjectLiteral(graph, implNode, PASSWORD); if (pwdLit != null) { setPassword(pwdLit.getLabel()); final Literal instLit = GraphUtil.getOptionalObjectLiteral(graph, implNode, INSTANCE); if (instLit != null) { setInstance(instLit.getLabel()); final Literal zooLit = GraphUtil.getOptionalObjectLiteral(graph, implNode, ZOOKEEPERS); if (zooLit != null) { setZookeepers(zooLit.getLabel()); final Literal mockLit = GraphUtil.getOptionalObjectLiteral(graph, implNode, IS_MOCK); if (mockLit != null) { setMock(Boolean.parseBoolean(mockLit.getLabel()));
Literal typeLit = GraphUtil.getOptionalObjectLiteral(graph, implNode, REPOSITORYTYPE); if (typeLit != null) { setType(typeLit.getLabel()); Literal qtypeLit = GraphUtil.getOptionalObjectLiteral(graph, implNode, QUEST_TYPE); if (qtypeLit != null) { setQuestType(qtypeLit.getLabel()); Literal name = GraphUtil.getOptionalObjectLiteral(graph, implNode, NAME); if (name != null) { setName(name.getLabel()); Literal owlfile = GraphUtil.getOptionalObjectLiteral(graph, implNode, OWLFILE); if (owlfile != null) { setOwlFile(owlfile.getLabel()); Literal obdafile = GraphUtil.getOptionalObjectLiteral(graph, implNode, OBDAFILE); if (obdafile != null) { setObdaFile(obdafile.getLabel()); Literal existl = GraphUtil.getOptionalObjectLiteral(graph, implNode, EXISTENTIAL); if (existl != null) { setExistential(existl.booleanValue()); Literal rewr = GraphUtil.getOptionalObjectLiteral(graph, implNode, REWRITING); if (rewr != null) { setRewriting(rewr.getLabel());
@Override public void parse(Graph graph, Resource subj) throws RepositoryConfigException { super.parse(graph, subj); try { Literal lit = GraphUtil.getOptionalObjectLiteral(graph, subj, SNAPSHOT); if (lit != null) { setSnapshot(lit.booleanValue()); } lit = GraphUtil.getOptionalObjectLiteral(graph, subj, SERIALIZABLE); if (lit != null) { setSerializable(lit.booleanValue()); } } catch (GraphUtilException e) { throw new RepositoryConfigException(e.toString(), e); } }
Literal jdbcDriverLit = getOptionalObjectLiteral(graph, implNode, JDBC_DRIVER); if (jdbcDriverLit != null) { setJdbcDriver(jdbcDriverLit.getLabel()); Literal urlLit = getOptionalObjectLiteral(graph, implNode, URL); if (urlLit != null) { setUrl(urlLit.getLabel()); Literal userLit = getOptionalObjectLiteral(graph, implNode, USER); if (userLit != null) { setUser(userLit.getLabel()); Literal passwordLit = getOptionalObjectLiteral(graph, implNode, PASSWORD); if (passwordLit != null) { setPassword(passwordLit.getLabel()); Literal maxTripleTablesLit = getOptionalObjectLiteral(graph, implNode, MAX_TRIPLE_TABLES); if (maxTripleTablesLit != null) { try {
@Override public void parse(Graph graph, Resource implNode) throws RepositoryConfigException { super.parse(graph, implNode); try { Literal propertiesLit = GraphUtil.getOptionalObjectLiteral( graph, implNode, BigdataConfigSchema.PROPERTIES); if (propertiesLit != null) { setPropertiesFile((propertiesLit).getLabel()); } else { throw new RepositoryConfigException("Properties file required"); } } catch (GraphUtilException e) { throw new RepositoryConfigException(e.getMessage(), e); } } }
@Override public void parse(Graph graph, Resource implNode) throws SailConfigException { super.parse(graph, implNode); try { Literal propertiesLit = GraphUtil.getOptionalObjectLiteral( graph, implNode, BigdataConfigSchema.PROPERTIES); if (propertiesLit != null) { setPropertiesFile((propertiesLit).getLabel()); } else { throw new SailConfigException("Properties file required"); } } catch (GraphUtilException e) { throw new SailConfigException(e.getMessage(), e); } } }
@Override public void parse(Graph graph, Resource implNode) throws SailConfigException { super.parse(graph, implNode); try { Literal propertiesLit = GraphUtil.getOptionalObjectLiteral( graph, implNode, BigdataConfigSchema.PROPERTIES); if (propertiesLit != null) { setPropertiesFile((propertiesLit).getLabel()); } else { throw new SailConfigException("Properties file required"); } } catch (GraphUtilException e) { throw new SailConfigException(e.getMessage(), e); } } }
@Override public void parse(Graph graph, Resource implNode) throws RepositoryConfigException { super.parse(graph, implNode); try { Literal propertiesLit = GraphUtil.getOptionalObjectLiteral( graph, implNode, BigdataConfigSchema.PROPERTIES); if (propertiesLit != null) { setPropertiesFile((propertiesLit).getLabel()); } else { throw new RepositoryConfigException("Properties file required"); } } catch (GraphUtilException e) { throw new RepositoryConfigException(e.getMessage(), e); } } }