Example usage for org.apache.commons.rdf.api BlankNode equals

List of usage examples for org.apache.commons.rdf.api BlankNode equals

Introduction

In this page you can find the example usage for org.apache.commons.rdf.api BlankNode equals.

Prototype

@Override
public boolean equals(Object other);

Source Link

Document

Check it this BlankNode is equal to another BlankNode.

Usage

From source file:example.UserGuideTest.java

@Test
public void blanknode() throws Exception {
    BlankNode bnode = factory.createBlankNode();
    System.out.println(bnode.equals(bnode));
    System.out.println(bnode.equals(factory.createBlankNode()));

    BlankNode b1 = factory.createBlankNode("b1");

    System.out.println(b1.ntriplesString());

    System.out.println(b1.equals(factory.createBlankNode("b1")));
    System.out.println(b1.equals(new SimpleRDFTermFactory().createBlankNode("b1")));

    System.out.println(bnode.uniqueReference());
}