@Test public void testStatementComplexValue() throws RDFHandlerException, RDFParseException, IOException { GlobeCoordinatesValue value = Datamodel.makeGlobeCoordinatesValue(51, 13, GlobeCoordinatesValue.PREC_DEGREE, GlobeCoordinatesValue.GLOBE_EARTH); Statement statement = StatementBuilder .forSubjectAndProperty(ItemIdValue.NULL, PropertyIdValue.NULL) .withId("Q0$test") .withValue(value).build(); this.rdfConverter.writeFullStatement(statement, false); this.rdfWriter.finish(); Model model = RdfTestHelpers.parseRdf(this.out.toString()); assertEquals(model, RdfTestHelpers.parseRdf(RdfTestHelpers .getResourceFromFile("StatementCplx.rdf"))); }
@Override public void writeFullStatement(Statement statement, boolean best) throws RDFHandlerException { if (!hasTask(RdfSerializer.TASK_STATEMENTS)) return; super.writeFullStatement(statement, best); }
RdfConverter extends AbstractRdfConverter { @Override public void writeFullStatement(Statement statement, boolean best) throws RDFHandlerException { if (!hasTask(RdfSerializer.TASK_STATEMENTS)) return; super.writeFullStatement(statement, best); } }
RdfConverter extends AbstractRdfConverter { @Override public void writeFullStatement(Statement statement, boolean best) throws RDFHandlerException { if (!hasTask(RdfSerializer.TASK_STATEMENTS)) return; super.writeFullStatement(statement, best); } RdfConverter(RdfWriter rdfWriter, Sites sites, PropertyRegister propertyRegister); }
RdfConverter extends AbstractRdfConverter { @Override public void writeFullStatement(Statement statement, boolean best) throws RDFHandlerException { if (!hasTask(RdfSerializer.TASK_STATEMENTS)) return; super.writeFullStatement(statement, best); } RdfConverter(RdfWriter rdfWriter, Sites sites, PropertyRegister propertyRegister); void setTasks(int tasks); int getTasks(); @Override void writeTermTriples(Resource subject, TermKind kind, Collection<MonolingualTextValue> terms); @Override void writeSiteLinks(Resource subject, Map<String, SiteLink> siteLinks); @Override void writePropertyDatatype(PropertyDocument document); @Override void writeInterPropertyLinks(PropertyDocument document); @Override void writeSimpleStatement(Statement statement); @Override void writeFullStatement(Statement statement, boolean best); @Override void writeItemDocument(ItemDocument document); @Override void writePropertyDocument(PropertyDocument document); @Override void writeOWLDeclarations(); }
RdfConverter extends AbstractRdfConverter { @Override public void writeFullStatement(Statement statement, boolean best) throws RDFHandlerException { if (!hasTask(RdfSerializer.TASK_STATEMENTS)) return; super.writeFullStatement(statement, best); } RdfConverter(RdfWriter rdfWriter, Sites sites, PropertyRegister propertyRegister); void setTasks(int tasks); int getTasks(); @Override void writeTermTriples(Resource subject, TermKind kind, Collection<MonolingualTextValue> terms); @Override void writeSiteLinks(Resource subject, Map<String, SiteLink> siteLinks); @Override void writePropertyDatatype(PropertyDocument document); @Override void writeInterPropertyLinks(PropertyDocument document); @Override void writeSimpleStatement(Statement statement); @Override void writeFullStatement(Statement statement, boolean best); @Override void writeItemDocument(ItemDocument document); @Override void writePropertyDocument(PropertyDocument document); @Override void writeOWLDeclarations();  }