SHARE
TWEET

Untitled

a guest Nov 29th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PREFIX BASE: <http://schemas.ogf.org/nml/2013/05/base#>
  2. PREFIX ndl-topology-owl: <http://cinegrid.uvalight.nl/owl/ndl-topology.owl#>
  3. PREFIX sdndl: <http://www.gsi.dit.upm.es/ontologies/sdndl#>
  4. PREFIX sdndlcao: <http://www.ctb.upm.es/ontologies/sdndlcao#>
  5. PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
  6.  
  7. SELECT DISTINCT STR(?mac_address) AS ?mac_address
  8.                 STR(?snapshot_id) AS ?snapshot_id
  9. WHERE
  10. {
  11.      ?device_instance sdndlcao:deviceOfSnapshot ?snapshot_instance;
  12.                       sdndl:hardwareAddress ?mac_address.
  13.      ?snapshot_instance sdndlcao:snapshotId ?snapshot_id.
  14.  
  15.        {
  16.            SELECT DISTINCT ?device_instance
  17.                            (COUNT(?device_instance) AS ?num_snapshots)
  18.            WHERE {
  19.                   ?device_instance a ndl-topology-owl:Device;
  20.                                    sdndlcao:deviceOfSnapshot ?snapshot_instance.
  21.                  }
  22.            GROUP BY ?device_instance
  23.        }
  24.       FILTER (?num_snapshots > 1)
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top