Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Making our RDF interfaces/classes a php-fig standard? #92

Open
k00ni opened this issue Jun 14, 2017 · 8 comments
Open

Making our RDF interfaces/classes a php-fig standard? #92

k00ni opened this issue Jun 14, 2017 · 8 comments

Comments

@k00ni
Copy link
Member

k00ni commented Jun 14, 2017

@white-gecko: I would like to propose major Saft/Rdf interfaces to php-fig to see, if we can set a standard here, about how to model RDF triples, statements and quads.

It would be about:

  • Statement
  • Node
    • NamedNode
    • BlankNode
    • AnyPattern
    • Literal
  • NodeFactory

Maybe adding further interfaces, like StatementIterator, or even example implementations?

Reason: I talked with the hardf, EasyRdf and ARC2 developers and i would like to suggest a common ground for future development. A contract how to describe RDF would be a good start.

What you think?

@k00ni k00ni added the Question label Jun 14, 2017
@k00ni k00ni changed the title Making our RDF implementations a php-fig standard? Making our RDF interfaces/classes a php-fig standard? Jun 14, 2017
@white-gecko
Copy link
Member

Cool idea, but I think for this we should be able to tell, that our interfaces are actually of use. So we need some evaluation resp. real applications using it.

@k00ni
Copy link
Member Author

k00ni commented Jun 15, 2017

Main argument would be to support/enable interoperability of different RDF implementations like EasyRdf, ARC2, hardf or even Redland. All use different formats, some simple arrays, some class-based.

@k00ni
Copy link
Member Author

k00ni commented Aug 22, 2017

@k00ni
Copy link
Member Author

k00ni commented Oct 6, 2017

Link to a discussion about hardf supporting this standard too: pietercolpaert/hardf#14

@k00ni
Copy link
Member Author

k00ni commented Nov 7, 2017

I proposed my current working draft on the PHP-FIG mailing list: https://groups.google.com/forum/#!topic/php-fig/Z1dds-mBRrE

Current state of interfaces:

  • Statement
  • Node
    • NamedNode
    • BlankNode
    • AnyPattern
    • Literal
  • NodeFactory

For each interface, except Node, an example implementation is available. Related code is located in this repository: https://github.com/SaftIng/PsrRdf

@k00ni
Copy link
Member Author

k00ni commented Nov 7, 2017

I started a discussion with the maintainers of

with regards to support standardized RDF interfaces. With hardf this makes all major RDF libraries.

EDIT: Added hardf Link.

@BigBlueHat
Copy link

@k00ni thanks for championing this work for so long! I'm sorry to see it seems to have stalled (re: php-fig/fig-standards#958).

FWIW, there may be some opportunity to revisit this under a different banner--but with the same goals. Several of the JavaScript RDF implementers formed the RDF.js Community Group at the W3C: https://www.w3.org/community/rdfjs/ They're working now to revitalize the community by combining code efforts, and working toward revising/publishing the Interface Specification: RDF Representation (which is currently focused on JavaScript...obviously 😉).

It might be worth working with that community to reignite your efforts for a common interface across the PHP libraries. Bonus points (for everyone!) if these mostly match across languages too! 😄

At any rate, just wanted to thank you for your efforts.

Cheers!
🎩

@k00ni
Copy link
Member Author

k00ni commented Nov 21, 2018

@BigBlueHat Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants