Git Product home page Git Product logo

Comments (4)

gkellogg avatar gkellogg commented on June 24, 2024

Could you spell out either how this would expand, and/or the equivalent Turtle-star? Presuming that blank nodes are used for the subject of the referenced triple, how does this work with compaction?

from json-ld-star.

pchampin avatar pchampin commented on June 24, 2024

In the value compaction algorithm, between 6.1 and 6.2, insert:

  • Otherwise, if the type mapping of active property is set to @triple, and the value associated with the @id entry is an embedded node, set result to that embedded node.

It seems to me that it should do the trick?

from json-ld-star.

VladimirAlexiev avatar VladimirAlexiev commented on June 24, 2024

@gkellogg Turtle-star is from https://lists.w3.org/Archives/Public/public-rdf-star/2021Dec/0063.html
(I'm unsure about schema prefix because there's no @vocab):

[a schema:Event;
  ex:realizationOf <<ex:bowls_club ex:captain ex:bob>>;
  schema:startDate "01-01-2019";
  endDate "31-12-2019"]

from json-ld-star.

gkellogg avatar gkellogg commented on June 24, 2024

That is, in fact, the same as what my distiller generates:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix schema: <http://schema.org/> .

 [
    a schema:Event;
    <http://example.com/realizationOf> <<<http://example.com/bowls_club> <http://example.com/captain> <http://example.com/bob>>>;
    schema:endDate "31-12-2019"^^schema:Date;
    schema:startDate "01-01-2019"^^schema:Date
  ] .

from json-ld-star.

Related Issues (15)

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.