semiotproject / wot-semdesc-helper

Semi-automatic generation of semantic description for sensing devices
0 stars 1 forks source link

Use Provenance ontology to store creator of class #16

Closed soylent-grin closed 9 years ago

soylent-grin commented 9 years ago

http://www.w3.org/TR/prov-o/

KMax commented 9 years ago

Take a look at Example 1 from #11 issue, there are few triples which use PROV ontology to describe the relationship between the generated class and the creator.

So in this example is shown how to record the email and name of the creator. But if it's needed to record something else, then we just can reuse something from other ontologies, like FOAF.

KMax commented 9 years ago

@garayzuev What do we want to know about the creator? In #11 example, only the name and email address are used, is it enough?

garayzuev commented 9 years ago

@KMax , I think, it's enough

soylent-grin commented 9 years ago

If so, note that [UUID-creator] should be not a random UUID, but a GitHub user's URI - to make available mapping with the current user.

KMax commented 9 years ago

Good point @soylent-grin! Formally, it's incorrect to use Github user's URL, because the URL refers to a web page, but not a resource representing a user, but I think it's acceptable.

soylent-grin commented 9 years ago

We also could store some identifier (id, login or GitHub URI) in triple itself - any variant is acceptable for me. @garayzuev, choose one of the mentioned above variants and verify it in this thread after implementing.

KMax commented 9 years ago

To be safe, I suggest the following option:

:[UUID-creator] a prov:Agent, prov:Person, foaf:Person ;
        foaf:givenName ""^^xsd:string ;
        foaf:mbox <mailto:..> ;
        foaf:homepage <http://github.com/UserName> .

<http://github.com/UserName> a foaf:PersonalProfileDocument ;
        foaf:maker :[UUID-creator] ;
        foaf:primaryTopic :[UUID-creator] .

Then we're formally correct.

soylent-grin commented 9 years ago

:+1: