Coder Social home page Coder Social logo

pinto's People

Contributors

delocalizer avatar leventov avatar mhgrove avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pinto's Issues

Support builder pattern

right now we assume strict adherence to the beans standard, which means the beans should be mutable w/ their set methods. but it would be great if you can use the builder pattern and have immutable beans.

iirc, JAXB has some support for this that would be worth reviewing

support generation of RDF into a specific named graph

you can use Graphs#withContext to set the named graph for RDF generated by Pinto after the fact, but it would be convenient of the mapper did this for you. either by mapper configuration, annotations, or both.

testWriteMap fails when run in a different TZ

running gradle build:

com.complexible.pinto.RDFMapperTests > testWriteMap FAILED
    java.lang.AssertionError at RDFMapperTests.java:740

Turns out this is because Models.isomorphic doesn't consider the same instant at different timezones to be equal:
My local TZ is UTC+10:00.
The assertTrue isomorphism comparison at RDFMapperTests.java#L740 fails because the date as constructed from the Long at RDFMapperTests.java#L732 becomes:
"2015-03-15T05:24:42.470+10:00"^^<http://www.w3.org/2001/XMLSchema#dateTime>
which is different than the reference value from data/map.nt of:
"2015-03-14T15:24:42.470-04:00"^^<http://www.w3.org/2001/XMLSchema#dateTime>

If I change the date in data/map.nt to be "2015-03-15T05:24:42.470+10:00"^^<http://www.w3.org/2001/XMLSchema#dateTime>, the test passes.

Make RDFCodec a bit more general

Return a Value or a ResourceBuilder for simple cases where there's a known IRI, like w/ an Enum, or simple string mapping for a class

add configuration to not cascade mapping

By default, we'll traverse the entire object graph serializing it into RDF, and serialize all of the RDF into the full object graph. There could be cases where you only want to serialize the top-level of the object graph and not cascade into its child objects. More often, during serialization to RDF rather than deserialization; during deserialization you can control this on your own by not providing any more than the top level of the object graph

Migrate to Java 8

in addition to the code, dependencies will be updated, primarily sesame

creation of proxy objects when creating beans from RDF

auto-extend them from Identifiable and SourcedObject so via some casts we have access to 1) the original rdf:ID of the object and the 2) RDF used to generate the bean. This would be ideal for using Pinto as the base for the next-generation of Empire

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.