All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.w3.banana.io.JsonLDTestSuite.scala Maven / Gradle / Ivy

The newest version!
package org.w3.banana
package io

import scalaz._

abstract class JsonLDTestSuite[Rdf <: RDF, M[+_]: Monad: Comonad, JsonLdOut](implicit
  ops: RDFOps[Rdf],
  reader: RDFReader[Rdf, M, JsonLd],
  writer: RDFWriter[Rdf, M, JsonLdOut]
) extends SerialisationTestSuite[Rdf, M, JsonLd, JsonLdOut]("JSON-LD", "jsonld") {

  val referenceGraphSerialisedForSyntax = """
  [
  {
    "@id": "http://www.w3.org/2001/sw/RDFCore/ntriples/",
    "http://purl.org/dc/elements/1.1/creator": [
    {
      "@value": "Art Barstow"
    },
    {
      "@value": "Dave Beckett"
    }
    ],
    "http://purl.org/dc/elements/1.1/publisher": [
    {
      "@id": "http://www.w3.org/"
    }
    ]
  }
  ]
   """

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy