<jupyter_start><jupyter_text><jupyter_code>pip install sos4py
from sos4py.main import connection_sos

#Connect to a SOS server
service = connection_sos("http://sensorweb.demo.52north.org/sensorwebtestbed/service/kvp")
service2 = connection_sos('http://sensorweb.demo.52north.org/52n-sos-webapp/sos/kvp')
# Request all data availability
service2.get_data_availability()
#Query a GDA request
service2.get_data_availability(procedures=['http://www.52north.org/test/procedure/6'], featuresOfInterest=['http://www.52north.org/test/featureOfInterest/6'])
#Access service identification
service.sosServiceIdentification()
# What type is this function? Pandas Series
type(service.sosServiceIdentification())
# Access to elements in pandas Series dataframe
service.sosServiceIdentification()['profiles']
service.sosProvider()
#Access operations metadata
service.sosOperationsMetadata()[1]['Name']
#Access offerings of the server
service.sosOfferings()[1]['bbox']
# Access to list elements
service.sosPhenomena()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11918604651162791, 'fraction_numerical': 0.018410852713178296, 'mean_word_length': 8.223214285714286, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '615109', 'license': 'Apache-2.0', 'n_tokens_mistral': 340, 'n_tokens_neox': 324, 'n_words': 63, 'path': 'examples/demo_sos4py.ipynb', 'repo_name': 'mattiagiupponi/sos4py', 'size': '1032'}