@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(final Graph graph, final Resource implNode) throws SailConfigException { super.parse(graph, implNode); System.out.println("parsing");
@Override public void parse(Graph graph, Resource implNode) throws SailConfigException { super.parse(graph, implNode); Model model = new LinkedHashModel(graph); for (Value member : model.filter(implNode, MEMBER, null).objects()) { try { addMember(create(graph, (Resource)member)); } catch (RepositoryConfigException e) { throw new SailConfigException(e); } } for (Value space : model.filter(implNode, LOCALPROPERTYSPACE, null).objects()) { addLocalPropertySpace(space.stringValue()); } try { Literal bool = model.filter(implNode, DISTINCT, null).objectLiteral(); if (bool != null && bool.booleanValue()) { distinct = true; } bool = model.filter(implNode, READ_ONLY, null).objectLiteral(); if (bool != null && bool.booleanValue()) { readOnly = true; } } catch (ModelException e) { throw new SailConfigException(e); } }
throws SailConfigException super.parse(graph, implNode);