Advertisement
Guest User

Untitled

a guest
Nov 26th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 2.93 KB | None | 0 0
  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(?vlan_id) AS ?vlan_id
  8.                 STR(?node_ip_address) AS ?node_ip_address
  9.                 STR(?timestamp_dist_node_scan_start) AS ?timestamp_dist_node_scan_start
  10.                 STR(?timestamp_dist_node_scan_end) AS ?timestamp_dist_node_scan_end
  11.                 STR(?timestamp_device_scan_start) AS ?timestamp_device_scan_start
  12.                 STR(?timestamp_device_scan_end) AS ?timestamp_device_scan_end
  13.                 STR(?mac_address) AS ?mac_address
  14.                 STR(?mac_manufacturer) AS ?mac_manufacturer
  15.                 STR(?ip_address) AS ?ip_address
  16.                 STR(?operating_system) AS ?operating_system
  17.                 STR(?hostname) AS ?hostname
  18.                 STR(?port) AS ?port
  19.                 STR(?SERVICE) AS ?SERVICE
  20.                 STR(?service_version) AS ?service_version
  21.                 STR(?discovery_method) AS ?discovery_method
  22.                 STR(?state) AS ?state
  23.                 STR(?protocol) AS ?protocol
  24.            
  25. WHERE
  26.       {
  27.       ?snapshot_instance sdndlcao:snapshotId "098f6bcd4621d373cade4e832"^^xsd:string;
  28.                          sdndl:isSnapshotOf ?interface_instance;
  29.                          sdndlcao:snapshotOfScanningDevice ?scanningDevice_instance;
  30.                          sdndlcao:snapshotOfDevice ?device_instance;
  31.                          sdndlcao:snapshotOfDiscoveringService ?discoveringService_instance.
  32.  
  33.       ?interface_instance sdndlcao:vlanId ?vlan_id;
  34.                           sdndl:ipAddress ?node_ip_address.
  35.      
  36.       ?scanningDevice_instance sdndlcao:timestampScanStart ?timestamp_dist_node_scan_start;
  37.                                sdndlcao:timestampScanEnd ?timestamp_dist_node_scan_end.
  38.  
  39.       ?device_instance sdndlcao:timestampScanStart ?timestamp_device_scan_start;
  40.                        sdndlcao:timestampScanEnd ?timestamp_device_scan_end;
  41.                        sdndl:hardwareAddress ?mac_address;
  42.                        sdndlcao:macManufacturer ?mac_manufacturer;
  43.                        sdndl:ipAddress ?ip_address;
  44.                        sdndlcao:operatingSystem ?operating_system;
  45.                        sdndlcao:hostname ?hostname.
  46.  
  47.       ?discoveringService_instance sdndlcao:discoveringServiceOfService ?service_instance;
  48.                                    sdndlcao:serviceVersion ?service_version;
  49.                                    sdndlcao:discoveryMethod ?discovery_method;
  50.                                    sdndlcao:state ?state;
  51.                                    sdndlcao:protocol ?protocol.
  52.  
  53.       ?service_instance sdndl:portNumber ?port;
  54.                         sdndlcao:serviceName ?SERVICE.
  55.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement