org.eclipse.rdf4j.rio.trig

## Class TriGParserTestCase

- java.lang.Object
- - org.eclipse.rdf4j.rio.trig.TriGParserTestCase

-     public abstract class TriGParserTestCase
      extends Object

  JUnit test for the TriG parser that uses the tests that are available online.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static String` | `TESTS_W3C_BASE_URL` Base URL for W3C TriG tests.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TriGParserTestCase()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected abstract RDFParser` | `createNQuadsParser()`
    `junit.framework.TestSuite` | `createTestSuite()`
    `protected abstract RDFParser` | `createTriGParser()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### TESTS_W3C_BASE_URL

          protected static String TESTS_W3C_BASE_URL

      Base URL for W3C TriG tests.

  - ### Constructor Detail

    - #### TriGParserTestCase

          public TriGParserTestCase()

  - ### Method Detail

    - #### createTestSuite

          public junit.framework.TestSuite createTestSuite()
                                                    throws Exception

      Throws:
        `Exception`

    - #### createTriGParser

          protected abstract RDFParser createTriGParser()

      Returns:
        An implementation of a TriG parser to test compliance with the TriG Test Suite TriG tests.

    - #### createNQuadsParser

          protected abstract RDFParser createNQuadsParser()

      Returns:
        An implementation of an N-Quads parser to test compliance with the TriG Test Suite N-Quads tests.

Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.