Page MenuHomeSoftware Heritage
Paste P348

metadata search
ActivePublic

Authored by vlorentz on Jan 14 2019, 1:40 PM.
>>> import pprint
>>> import swh.indexer.storage.api.client
>>> s = swh.indexer.storage.api.client.RemoteStorage(url='http://uffizi.internal.softwareheritage.org:5007/')
>>> pprint.pprint(s.origin_intrinsic_metadata_search_fulltext(['James']))
[{'from_revision': b'\xd4bM\xa6\x9eH\x06\x15\x0c\x1ap\xbc\x84~\x11\x17'
b'`\xc1\x829',
'metadata': {'@context': 'https://doi.org/10.5063/schema/codemeta-2.0',
'author': [{'name': 'James Allen', 'type': 'Person'}],
'codeRepository': 'git+https://github.com/jamlen/sitemark.git',
'description': 'Convention based, simple website using Markdown',
'keywords': ['code', 'blog'],
'license': 'https://spdx.org/licenses/BSD',
'name': 'sitemark',
'url': 'https://github.com/jamlen/sitemark',
'version': '0.0.1-alpha'},
'origin_id': 7931045,
'tool': {'configuration': {'context': ['NpmMapping', 'CodemetaMapping'],
'type': 'local'},
'id': 74460503,
'name': 'swh-metadata-detector',
'version': '0.0.2'}},
{'from_revision': b'\xd6J\xaa)\xb7~F\x9a\\-\xadG\xe1\xe4K\xa1\x0eb\xd3H',
'metadata': {'@context': 'https://doi.org/10.5063/schema/codemeta-2.0',
'author': [{'email': 'james@faceyspacey.com',
'name': 'James Gillmore',
'type': 'Person'}],
'codeRepository': 'git+git+https://github.com/celebvidy/animated-transition-group.git',
'description': 'like `<ReactTransitionGroup />` + callbacks, '
'extras and child-specific customization',
'issueTracker': 'https://github.com/celebvidy/animated-transition-group/issues',
'license': 'https://spdx.org/licenses/MIT',
'name': 'animated-transition-group',
'url': 'https://github.com/celebvidy/animated-transition-group#readme',
'version': '1.0.1'},
'origin_id': 49838532,
'tool': {'configuration': {'context': ['NpmMapping', 'CodemetaMapping'],
'type': 'local'},
'id': 74460503,
'name': 'swh-metadata-detector',
'version': '0.0.2'}},
{'from_revision': b'\x15\x7f\xe0\x1d\x96\xa4\xfc\xa5\xd3\xdc \x810\x12\xcdi'
b'\xe4<X\\',
'metadata': {'@context': 'https://doi.org/10.5063/schema/codemeta-2.0',
'author': [{'name': 'James Kim', 'type': 'Person'}],
'codeRepository': 'git+https://github.com/jimmy-james/mod_ko.git',
'description': '',
'issueTracker': 'https://github.com/jimmy-james/mod_ko/issues',
'license': 'https://spdx.org/licenses/ISC',
'name': 'mod_ko',
'url': 'https://github.com/jimmy-james/mod_ko#readme',
'version': '0.0.0-development'},
'origin_id': 49822272,
'tool': {'configuration': {'context': ['NpmMapping', 'CodemetaMapping'],
'type': 'local'},
'id': 74460503,
'name': 'swh-metadata-detector',
'version': '0.0.2'}},
{'from_revision': b'\xff\x1e\x8c \x91\x82\xb9"\xd3\x83(\r\x1dl\x08\xcd\xd25:2',
'metadata': {'@context': 'https://doi.org/10.5063/schema/codemeta-2.0',
'author': [{'name': 'James South', 'type': 'Person'}],
'codeRepository': 'git+https://github.com/responsivebp/responsive.git',
'description': 'A powerful, accessible, developer friendly '
'framework for building responsive websites.',
'issueTracker': 'https://github.com/responsivebp/responsive/issues',
'keywords': ['html',
'css',
'js',
'javascript',
'sass',
'mobile-first',
'responsive',
'rwd',
'front-end',
'framework',
'boilerplate',
'web'],
'name': 'responsive',
'url': 'http://responsivebp.com',
'version': '4.1.2'},
'origin_id': 49820475,
'tool': {'configuration': {'context': ['NpmMapping', 'CodemetaMapping'],
'type': 'local'},
'id': 74460503,
'name': 'swh-metadata-detector',
'version': '0.0.2'}}]