Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosminbasca/surfrdf
/ functions
Functions
613 in github.com/cosminbasca/surfrdf
⨍
Functions
613
◇
Types & classes
59
Method
regex
(cls, var, pattern, flag=None)
surf/query/__init__.py:92
Function
register_fallback
Register a fallback namespace to use when creating resource without specifying subject. .. code-block:: python >>> ns.register_fall
surf/namespace.py:205
Method
register_fts_predicate
register free text search predicates
plugins/surf.allegro_franz/allegro_franz/writer.py:169
Function
registered_readers
gets the registered reader plugins. Plugins are instances of :cls:`surf.plugin.reader.RDFReader`. :return: the registered reader plugins
surf/plugin/manager.py:119
Function
registered_writers
gets the registered writer plugins. Plugins are instances of :cls:`surf.plugin.reader.RDFWriter`. :return: the registered writer plugins
surf/plugin/manager.py:129
Method
remove
(self, graph, context = None)
plugins/surf.sesame2/sesame2/sesame2.py:156
Method
remove
(self, value)
surf/resource/lazy.py:161
Method
remove_all_statements
(self, id)
plugins/surf.sesame2/sesame2/sesame2.py:384
Method
remove_namespace
(self, prefix)
plugins/surf.allegro_franz/allegro_franz/writer.py:184
Method
remove_namespace
(self, *namespaces)
plugins/surf.sesame2/sesame2/sesame2.py:184
Method
remove_namespace
(self, id, prefix)
plugins/surf.sesame2/sesame2/sesame2.py:345
Method
remove_repository
warning: works only locally!, do not use otherwise
plugins/surf.sesame2/sesame2/allegro.py:88
Method
remove_triple
See :func:`surf.plugin.writer.RDFWriter.remove_triple` method.
surf/store.py:218
Method
remove_triple
Remove a triple from the `store`, from the specified ``context``. `None` can be used as a wildcard.
surf/plugin/writer.py:161
Method
resource
convenience method to get a resource given the arguments :param session: the *SuRF* session :type session: :class:`surf.sess
surf/rest.py:146
Method
rest_api
Return a :class:`surf.rest.Rest` class responsible for exposing **REST** api functions for integration into REST aware web frameworks.
surf/resource/__init__.py:879
Method
results_format
(self)
surf/plugin/sparql_protocol/reader.py:73
Method
save
Save the `resource` to the data `store`.
surf/resource/__init__.py:760
Method
set_data
(self, data)
surf/test/resource/test_resource_value.py:16
Method
set_data
(self, data)
surf/test/resource/test_result_proxy.py:15
Method
set_dirty
(self, dirty)
surf/resource/__init__.py:225
Function
set_logger
(logger)
surf/log.py:104
Method
set_namespace
(self, prefix, namespace)
plugins/surf.allegro_franz/allegro_franz/writer.py:181
Method
set_query
(self,query)
surf/query/translator/__init__.py:49
Method
set_triple
See :func:`surf.plugin.writer.RDFWriter.set_triple` method.
surf/store.py:212
Method
set_triple
Replace a triple in the `store` and specified ``context``. `None` can be used as a wildcard.
surf/plugin/writer.py:153
Method
show
**REST** : GET /id: Show a specific item. show / retrieve the specified resource :param str id: the resources id :re
surf/rest.py:132
Method
size
Return the number of `triples` in the current `store`.
surf/plugin/writer.py:138
Method
statements
(self, id, s = None, p = None, o = None, context = None, infer = False, format = 'xml')
plugins/surf.sesame2/sesame2/sesame2.py:360
Function
store_proxy
()
surf/test/resource/test_result_proxy.py:34
Function
store_session
Return initialized SuRF store and session objects.
surf/test/resource/test_resource.py:10
Function
store_value
()
surf/test/resource/test_resource_value.py:79
Function
symbol
Return the part of a URI after the last **/** or *#*, `property` is a string denoting a URI .. code-block:: python >>> print ns.sym
surf/namespace.py:165
Function
test_all_empty_list
Test ResultProxy with no filters, no returned data.
surf/test/resource/test_result_proxy.py:41
Function
test_ask
Try ASK.
surf/test/query/test_sparql.py:187
Function
test_attr2rdf_period
Check that attr2rdf handles minus symbol in predicate names.
surf/test/test_util.py:14
Function
test_auto_load
Test that session.auto_load works.
surf/test/resource/test_resource.py:219
Function
test_class_instances
Test that dirty class instances are not lost to GC.
surf/test/resource/test_resource.py:83
Function
test_class_mapping
Test class mapping.
surf/test/resource/test_resource.py:55
Function
test_clear
CLEAR GRAPH
surf/test/query/test_sparul.py:99
Function
test_close_multiples_stores
Test that closing a session with multiple stores work.
surf/test/test_session.py:7
Function
test_close_unicode_exception
Test that closing a store handles exceptions.
surf/test/test_store.py:34
Function
test_contains
Test LazyResourceLoader.__contains__.
surf/test/resource/test_resource_value.py:49
Function
test_context
Test context.
surf/test/resource/test_resource_value.py:137
Function
test_context
Test context.
surf/test/resource/test_result_proxy.py:99
Function
test_convert_unicode_exception
Test RDFQueryReader.convert() handles exceptions with unicode.
surf/test/plugin/test_query_reader.py:8
Function
test_decimal_to_rdf
Test conversion from decimal.Decimal to Literal.
surf/test/test_util.py:51
Function
test_default_namespace
Test resource initialization in specified namespace.
surf/test/resource/test_resource.py:128
Function
test_delete_from
Try to produce DELETE DATA FROM ... { ... } query.
surf/test/query/test_sparul.py:51
Function
test_delete_where
DELETE ... WHERE ...
surf/test/query/test_sparul.py:78
Function
test_describe
Try to produce DESCRIBE query.
surf/test/query/test_sparql.py:120
Function
test_dict_access
Test that resources support dictionary-style attribute access.
surf/test/resource/test_resource.py:196
Function
test_empty_attribute_sync
Test synchronization between empty attribute and rdf_direct.
surf/test/resource/test_resource.py:18
Function
test_exceptions
Test that exceptions are raised on invalid queries.
surf/test/plugin/test_sparql_protocol.py:53
Function
test_filter
Test filter.
surf/test/resource/test_resource_value.py:149
Function
test_filter
Test filter.
surf/test/resource/test_result_proxy.py:111
Function
test_from
Try to produce query that contains FROM clauses.
surf/test/query/test_sparql.py:76
Function
test_from_named
Try to produce query that contains FROM & FROM NAMED clauses.
surf/test/query/test_sparql.py:97
Function
test_from_none
Check that .from_(None) raises.
surf/test/query/test_sparql.py:140
Function
test_full
Test full().
surf/test/resource/test_resource_value.py:100
Function
test_full
Test full().
surf/test/resource/test_result_proxy.py:62
Function
test_get_by
Test Resource.get_by() method.
surf/test/test_resource_standalone.py:22
Function
test_get_by
Test get_by.
surf/test/resource/test_resource_value.py:124
Function
test_get_by
Test get_by.
surf/test/resource/test_result_proxy.py:86
Function
test_get_by_resource
Test that get_by accepts Resources as values.
surf/test/resource/test_resource_value.py:161
Function
test_get_by_resource
Test that get_by accepts Resources as values.
surf/test/resource/test_result_proxy.py:123
Function
test_get_namespace
()
surf/test/test_namespace.py:15
Function
test_get_namespace_url
()
surf/test/test_namespace.py:26
Function
test_get_one_exceptions
Test RessourceValue.one.
surf/test/resource/test_resource_value.py:65
Function
test_get_prefix
()
surf/test/test_namespace.py:35
Function
test_get_prefix_predefined
Test get_prefix with predefined namespaces.
surf/test/test_namespace.py:44
Function
test_init_namespace
Test resource initialization in specified namespace.
surf/test/resource/test_resource.py:102
Function
test_insert
Try to produce INSERT ... query.
surf/test/query/test_sparul.py:39
Function
test_insert_data_into
INSERT DATA INTO ... { ... }
surf/test/query/test_sparul.py:63
Function
test_instance
Test Resource._instance().
surf/test/resource/test_resource.py:158
Function
test_limit_offset
Test limit, offset.
surf/test/resource/test_resource_value.py:88
Function
test_limit_offset
Test limit, offset.
surf/test/resource/test_result_proxy.py:50
Function
test_load
LOAD ...
surf/test/query/test_sparul.py:113
Function
test_load_into
LOAD ... INTO ...
surf/test/query/test_sparul.py:127
Function
test_loaded_attribute_sync
Test synchronization between loaded attribute and rdf_direct.
surf/test/resource/test_resource.py:37
Function
test_multiple_sessions
Test that multiple sessions coexist correctly.
surf/test/resource/test_resource.py:141
Function
test_multiples
Test synchronization between empty attribute and rdf_direct.
surf/test/test_store.py:11
Function
test_order_desc
Test order, desc.
surf/test/resource/test_resource_value.py:112
Function
test_order_desc
Test order, desc.
surf/test/resource/test_result_proxy.py:74
Function
test_query_attribute_unicode
Test that query_attribute calls ResultProxy with string arguments. query_attribute sets up and returns ResultProxy instance. Here we test
surf/test/resource/test_resource.py:236
Function
test_rdf2attr
()
surf/test/test_util.py:9
Function
test_rdf2attr_surf
Test rdf2attr with SURF namespace. This once had a bug which generated attribute names like "__fallback_namespace_label" instead of
surf/test/test_util.py:60
Function
test_rdflib_load
()
surf/test/plugin/test_rdflib.py:29
Function
test_rdflib_query
()
surf/test/plugin/test_rdflib.py:39
Function
test_rdflib_store
Create a SuRF rdflib based store
surf/test/plugin/test_rdflib.py:9
Function
test_register
()
surf/test/test_namespace.py:9
Function
test_simple
Try to produce a simple "SELECT ... WHERE ..." query.
surf/test/query/test_sparql.py:39
Function
test_single
()
surf/test/test_util.py:23
Function
test_str
Test that __str__ translates query to string.
surf/test/query/test_sparul.py:153
Function
test_str
Try str(query).
surf/test/query/test_sparql.py:168
Function
test_subquery
Try to produce query that contains subquery in WHERE clause.
surf/test/query/test_sparql.py:55
Function
test_successful_close
Test that store handles successful reader and writer closes.
surf/test/test_store.py:93
Function
test_to_table
Test _to_table with empty bindings.
surf/test/plugin/test_sparql_protocol.py:38
Function
test_type_mapping
Test that XSD types are mapped to Python types.
surf/test/resource/test_resource.py:174
Function
test_unicode
Check that returned query string is unicode.
surf/test/query/test_sparul.py:142
← previous
next →
501–600 of 613, ranked by callers