Re: [sdw] SOSA and SSN skos:definition and rdfs:comment do not match in 3 cases

Thanks Tim for reporting the error!

I have created a Pull request that is now under review: https://github.com/w3c/sdw/pull/1072


From: Tim L <notifications@github.com>
Reply-To: w3c/sdw <reply@reply.github.com>
Date: Saturday, 4 August 2018 at 6:19 am
To: w3c/sdw <sdw@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Subject: [w3c/sdw] SOSA and SSN skos:definition and rdfs:comment do not match in 3 cases (#1062)


prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>

prefix skos: <http://www.w3.org/2004/02/skos/core#>



select distinct ?term ?definition ?comment

where {

   graph ?ontology {

      ?term

         skos:definition ?definition;

         rdfs:comment    ?comment .

      filter(substr(?definition,1,10) = substr(?comment,1,10))

      filter(       ?definition   != ?comment)

   }

}

Finds three terms within SOSA and SSN that do not have exactly matching skos:definition and rdfs:comment values:

{

  "head": {

    "vars": [ "term" , "definition" , "comment" ]

  } ,

  "results": {

    "bindings": [

      {

        "term": { "type": "uri" , "value": "http://www.w3.org/ns/sosa/Sensor" } ,

        "definition": { "type": "literal" , "xml:lang": "en" , "value": "Device, agent (including humans), or software (simulation) involved in, or implementing, a (Sensing) Procedure. Sensors respond to a stimulus, e.g., a change in the environment, or input data composed from the results of prior Observations, and generate a Result. Sensors can be hosted by Platforms." } ,

        "comment": { "type": "literal" , "xml:lang": "en" , "value": "Device, agent (including humans), or software (simulation) involved in, or implementing, a Procedure. Sensors respond to a stimulus, e.g., a change in the environment, or input data composed from the results of prior Observations, and generate a Result. Sensors can be hosted by Platforms." }

      } ,

      {

        "term": { "type": "uri" , "value": "http://www.w3.org/ns/ssn/System" } ,

        "definition": { "type": "literal" , "xml:lang": "en" , "value": "System is a unit of abstraction for pieces of infrastructure that implement Procedures. A System may have components, its subsystems, which are other systems." } ,

        "comment": { "type": "literal" , "xml:lang": "en" , "value": "System is a unit of abstraction for pieces of infrastructure that implements Procedures. A System may have components, its subsystems, which are other systems." }

      } ,

      {

        "term": { "type": "uri" , "value": "http://www.w3.org/ns/ssn/detects" } ,

        "definition": { "type": "literal" , "xml:lang": "en" , "value": "A relation from a Sensor to the Stimulus that the Sensor detects. The Stimulus itself will be serving as a proxy for some ObservableProperty." } ,

        "comment": { "type": "literal" , "xml:lang": "en" , "value": "A relation from a Sensor to the Stimulus that the Sensor can detect. The Stimulus itself will be serving as a proxy for some ObservableProperty." }

      }

    ]

  }

}

For sosa:Sensor, the difference is a (Sensing) Procedure vs. a Procedure.
For ssn:System, the difference is implement Procedures vs. implements Procedures
For ssn:detects, the difference is the Sensor detects vs. the Sensor can detect.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://github.com/w3c/sdw/issues/1062>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AEt3MEFKXHZ0yTlDf0DT1oHe_nr-LtV8ks5uNLBWgaJpZM4Vuj9X>.


-- 
GitHub Notification of comment by arminhaller
Please view or discuss this issue at https://github.com/w3c/sdw/issues/1062#issuecomment-411963958 using your GitHub account

Received on Friday, 10 August 2018 03:21:38 UTC