Code Monkey home page Code Monkey logo

Comments (4)

iherman avatar iherman commented on June 18, 2024

You are of course right: canonicalization is a single form.

But... the §1 of the explainer defines:

RDF Dataset Canonicalization is a function C that maps an RDF Dataset to an RDF Dataset in a manner that…

i.e., it is defined as a function.

Of course there may be several such functions and the goal of the standard is to define either a single function or, most probably a family of functions that is parametrized by the choice of a hashing function for the way it operates.

Can you propose a change on the explainer text that makes this clearer?

from rch-wg-charter.

samuelweiler avatar samuelweiler commented on June 18, 2024

Perhaps the best word here is "deterministic" - the output from a given canonicalization function is deterministic. What might be clearer is an explanation what what sorts of RDF differences you want to have the same canonical form. That might be encoded is the definitions (as you start to quote above), but to me, as an newcomer to RDF, I'm not sure what is meant. A plain example might help? e.g. "here are two RDF datasets that look different that we want to consider as equivalent".

e.g. some canonicalization systems do case folding, so that "World Wide Web Consortium" and "world wide web consortium" canonicalize to the same thing. What differences are we trying to canonicalize away here?

[ https://github.com//issues/52 is digging into this topic...]

from rch-wg-charter.

iherman avatar iherman commented on June 18, 2024

@samuelweiler I can give you an overly simple example here:

_:A <http://example.com/prop1> "Some literal".

and

_:xyz <http://example.com/prop1> "Some literal".

and

_:ABCEFG <http://example.com/prop1> "Some literal".

are all isomorphic RDF graphs, and there is an infinite number of them: the subject, in all three, is a blank node, and the label can be just about any string. What canonicalization does is to deterministically calculate a blank node label, starting from any of the forms above, yielding, say, '_:c1234', i.e., generating the graph

_:c1234 <http://example.com/prop1> "Some literal".

which would be considered the canonical form of those isomorphic graphs.

However, I am a bit uneasy going into the explanation in the charter explainer. I do not think this is the place. There is a reference to Aidan's paper in the explainer document that gives a good introductory explanation of the problem...

from rch-wg-charter.

samuelweiler avatar samuelweiler commented on June 18, 2024

However, I am a bit uneasy going into the explanation in the charter explainer. I do not think this is the place.

Fine. I defer to your judgement.

from rch-wg-charter.

Related Issues (20)

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.