Giter VIP home page Giter VIP logo

srdf's People

Contributors

labra avatar markiantorno avatar ralphtq avatar scala-steward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

srdf's Issues

Doc generation automation

Automate the generation of documentation.

We started to use mdoc to generate documentation as well as unidoc to generate ScalaDoc documents integrated with the documentation and docusaurus to generate the website.

One final step that is not yet working is to automate the deployment of the docs to gh-pages after a tag is being created.

Tests freeze

For some reason, when executing the tests with scalaTest, it freezes. After stopping the system and running a single test, it works again.

Change internal representation of RDFParser

At this moment, the internal representation of RDFParser is based on a function from RDFNode and RDFReader to Either[String,A].

It can be changed to be use a EitherT[ReaderT[...

META issue: roadmap

This issue contains a roadmap and other meta-issues.

Roadmap

  • Add tests for the different features
  • Add an standaolne Scala implementation
  • Add a Javascript based implementation

Support for rdf:HTML as a type of literal

Could we extend object RDFNode as follows:

val RDFhtmlStringDatatypeIRI = IRI(rdfSyntax + "HTML")

in:

object RDFNode {
val xsd = "http://www.w3.org/2001/XMLSchema#"
val rdfSyntax = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
val StringDatatypeIRI = IRI(xsd + "string")
val RDFhtmlStringDatatypeIRI = IRI(rdfSyntax + "HTML")
val LangStringDatatypeIRI = IRI(rdfSyntax + "langString")
val BooleanDatatypeIRI = IRI(xsd + "boolean")
val IntegerDatatypeIRI = IRI(xsd + "integer")
val DoubleDatatypeIRI = IRI(xsd + "double")
val DecimalDatatypeIRI = IRI(xsd + "decimal")
val rdftype = IRI(rdfSyntax + "type")
val rdfnil = IRI(rdfSyntax + "nil")
val rdffirst = IRI(rdfSyntax + "first")
val rdfrest = IRI(rdfSyntax + "rest")
...
...

Ralph

Provide an example of how to use inside Java

We currently have the following code from 0.0.87 (trying to update to the latest version of shaclex since Bintray disappearance to use your GH Maven repo):

Result result = validateInternal(dataModel, shapeModel);
final RDFReader valReport = result.validationReport().right().get();
Either<String, String> valReportAsTurtle = valReport.serialize(RDFLanguages.strLangTurtle);

I am trying to convert it to use cats resource but so far I have been unable to lift the instance of the RDFBuilder from the Resource:

Result result = validateInternal(dataModel, shapeModel);

IO<Resource<IO, RDFAsJenaModel>> emptyModel = RDFAsJenaModel$.MODULE$.empty();
Resource<IO, RDFAsJenaModel> jenaModelResource = emptyModel.unsafeRunSync(IORuntime.global());
final RDFReader valReport = result.validationReport().toRDF(jenaModelResource???);

Either<String, String> valReportAsTurtle = valReport.serialize(RDFLanguages.strLangTurtle);

Could you please help us with an example or point me to the right place in the cats documentation where I can find some guidance?

I was using https://www.weso.es/srdf/docs/srdfJena as a guidance but RDFAsJenaModel.empty instance does not have a method use as shown in the docs (at least not in the JVM signature, maybe it was generated to another class).

Thanks in advance!

Create simple RDF type classes

The SRDF interfaces have been designed in an incremental way by looking at the needs for validation. It would be better to provide a good design of the different interfaces in a more principled way.

We could adopt Banana RDF's type classes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.