Import, setup

    >>> from __future__ import (absolute_import, division, print_function)
    >>> from owslib import fes, csw
    >>> from owslib.dif import namespaces

    >>> c = csw.CatalogueServiceWeb('http://www.ngdc.noaa.gov/geoportal/csw', timeout=120)
    >>> c.identification.title
    'ArcGIS Server Geoportal Extension 10 - OGC CSW 2.0.2 ISO AP'
    >>> c.identification.version
    '2.0.2'
    >>> sorted(c.identification.keywords)
    ['Geophysical Metadata', 'NGDC', 'Ocean Metadata', 'Space Weather Metadata']
    >>> c.provider.name
    'NOAA NGDC'

Get some records

    >>> sos_urn = 'urn:x-esri:specification:ServiceType:sos:url'
    >>> aoos_uuid = '1706F520-2647-4A33-B7BF-592FAFDE4B45'
    >>> uuid_filter = fes.PropertyIsEqualTo(propertyname='sys.siteuuid', literal="{%s}" % aoos_uuid)

    >>> c.getrecords2([uuid_filter], esn='full', maxrecords=999999)
    >>> len(c.records) > 40
    True
    >>> 'AOOS SOS' in c.records
    True

    >>> aoos_sos = c.records['AOOS SOS']
    >>> aoos_sos.abstract
    'Alaska Ocean Observing System SOS'
    >>> sorted([x['url'] for x in aoos_sos.references if x['scheme'] == sos_urn])
    ['http://sos.aoos.org/sos/sos/kvp?service=SOS&request=GetCapabilities&acceptVersions=1.0.0', 'http://sos.aoos.org/sos/sos/kvp?service=SOS&request=GetCapabilities&acceptVersions=1.0.0', 'http://sos.aoos.org/sos/sos/kvp?service=SOS&request=GetCapabilities&acceptVersions=1.0.0']
    >>> c.getService_urls(sos_urn)
    ['http://sos.aoos.org/sos/sos/kvp?service=SOS&request=GetCapabilities&acceptVersions=1.0.0']


