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
close
Close the `plugin`.
surf/plugin/writer.py:170
Method
close
Close the `plugin` and free any resources it may hold
surf/plugin/__init__.py:53
Method
close
(self)
surf/plugin/rdflib/reader.py:102
Method
close
(self)
surf/plugin/rdflib/writer.py:169
Method
close
(self)
surf/plugin/sparql_protocol/reader.py:116
Method
close
(self)
surf/test/test_store.py:55
Method
close
(self)
surf/test/test_store.py:80
Method
commit_pending_transaction_on_close
(self)
surf/plugin/rdflib/reader.py:75
Method
commit_pending_transaction_on_close
(self)
surf/plugin/rdflib/writer.py:80
Method
concept
Return the `concept` URI of the following `resource`. `resource` can be a `string` or a `URIRef`. :param resource: the given
surf/plugin/reader.py:142
Method
concept
Return the Resources `concept` uri (type). If parameter ``store`` is specified, concept will be retrieved from there. If resource wa
surf/resource/__init__.py:859
Function
construct
Construct and return :class:`surf.query.Query` object of type **CONSTRUCT**
surf/query/__init__.py:513
Method
context
Specify context/graph that resources should be loaded from.
surf/resource/result_proxy.py:199
Method
contexts
(self, id)
plugins/surf.sesame2/sesame2/sesame2.py:326
Function
default_session
Prepare store and session.
surf/test/test_resource_standalone.py:10
Method
default_store
The `default store` of the session. See `default_store_key` to see how the `default store` is selected.
surf/session.py:199
Method
default_store_key
The `default store key` of the session. If it is set explicitly on `session` creation it is returned, else the first `store key` is
surf/session.py:185
Method
delete
**REST** : DELETE /id: Delete an existing item. removes an instance from the underlying :class:`surf.store.Store` store :par
surf/rest.py:122
Method
desc
Set sorting order to descending.
surf/resource/result_proxy.py:113
Function
disable_logger
(name=None)
surf/log.py:123
Method
edit
**REST** : GET /id;edit: alias for :meth:`surf.rest.Rest.update` method :param str id: the resources id :param dict
surf/rest.py:112
Method
endpoint
(self)
surf/plugin/sparql_protocol/reader.py:69
Method
endpoint
(self)
surf/plugin/sparql_protocol/writer.py:151
Method
execute
see :meth:`surf.plugin.query_reader.RDFQueryReader.execute` method.
surf/store.py:152
Method
execute_sparql
(self, q_string, format = 'JSON')
plugins/surf.allegro_franz/allegro_franz/reader.py:116
Method
execute_sparql
see :meth:`surf.plugin.query_reader.RDFQueryReader.execute_sparql` method.
surf/store.py:160
Method
execute_sparql
(self, q_string, format=None)
surf/plugin/rdflib/reader.py:96
Method
filter
get the `filter` `query` attribute. Syntactic sugar for :meth:`surf.resource.Resource.query_attribute` method.
surf/resource/lazy.py:232
Method
filter
Add filter conditions. Expects arguments in form:: ns_predicate = "(%s > 15)" ``ns_predicate`` specifies which predica
surf/resource/result_proxy.py:160
Method
from_
(self, *uris)
surf/query/update.py:92
Method
full
Enable eager-loading of resource attributes. With this modifier, resources will have their attributes already loaded.
surf/resource/result_proxy.py:70
Method
get_by
(self, params)
surf/store.py:148
Method
get_by
(self, params)
surf/plugin/reader.py:166
Method
get_by
get the `get_by` `query` attribute. Syntactic sugar for :meth:`surf.resource.Resource.query_attribute` method.
surf/resource/lazy.py:226
Method
get_by
Retrieve all instances that match specified filters and class. Filters are specified as keyword arguments, argument names follow SuRF
surf/resource/__init__.py:669
Method
get_by_attribute
Retrieve all `instances` from the data store that have the specified `attributes` and are of `rdf:type` of the resource class
surf/resource/__init__.py:572
Method
get_dirty
(self)
surf/resource/__init__.py:239
Method
get_first
return the first `resource` or None otherwise.
surf/resource/lazy.py:87
Method
get_something
(self)
surf/test/resource/test_resource.py:61
Function
get_store_session
Return initialized SuRF store and session objects.
surf/test/plugin/test_sparql_protocol.py:12
Method
getvalues_callable
Return stored values for this attribute.
surf/resource/__init__.py:395
Method
graph
(self)
surf/plugin/rdflib/writer.py:76
Function
group
Return group graph pattern. Returned object can be used as argument in :meth:`Query.where` method. group()` accepts multiple arguments,
surf/query/__init__.py:438
Method
index
**REST** : GET /: All items in the collection, :return: all instances for the current :class:`surf.resources.Resource` :rtyp
surf/rest.py:69
Method
index_info
(self, id)
plugins/surf.sesame2/sesame2/allegro.py:120
Method
index_triples
Index triples if this functionality is present. Return `True` if successful.
plugins/surf.allegro_franz/allegro_franz/writer.py:136
Method
index_triples
See :func:`surf.plugin.writer.RDFWriter.index_triples` method.
surf/store.py:224
Method
index_triples
Perform `index` of the `triples` if such functionality is present. Return `True` if operation successful.
surf/plugin/writer.py:176
Method
index_triples
Index triples if this functionality is present. :return: True if successful :rtype: bool
surf/plugin/rdflib/writer.py:134
Method
index_triples
performs index of the triples if such functionality is present, returns True if operation successful
surf/plugin/sparql_protocol/writer.py:286
Method
inference
Toggle `logical inference` on / off. The property has any effect only if such functionality is supported by the underlying :class:`s
surf/plugin/__init__.py:59
Method
instance_factory
Specify the function for converting triples into instances. ``instance_factory_func`` function can also be specified as argument to
surf/resource/result_proxy.py:31
Method
instances_by_attribute
:func:`surf.plugin.reader.RDFReader.instances_by_attribute` method.
surf/store.py:141
Function
is_attr_direct
Checks whether this is a direct or inverse edge / property. The naming convention defined by the :attr:`pattern_direct` and :attr:`pattern_in
surf/util.py:203
Method
is_present
:func:`surf.plugin.reader.RDFReader.is_present` method.
surf/store.py:131
Method
is_present
Check whether the `resource` is present in the underlying :class:`surf.store.Store` store :param resource: the given resource
surf/plugin/reader.py:131
Method
is_present
Return True if the `resource` is present in data `store`. Resource is assumed to be present if there is at least one triple having `
surf/resource/__init__.py:781
Method
limit
get the `limit` `query` attribute. Syntactic sugar for :meth:`surf.resource.Resource.query_attribute` method.
surf/resource/lazy.py:196
Method
limit
Set the limit for returned result count.
surf/resource/result_proxy.py:56
Method
load
(self, remote_uri)
surf/query/update.py:107
Method
load_resource
Create an `instance` of the `class` specified by `uri`, while `subject` is the subject of the new resource instance. The other param
surf/session.py:327
Method
load_triples
loads triples from supported sources if such functionality is present returns True if operation successfull
plugins/surf.allegro_franz/allegro_franz/writer.py:147
Method
load_triples
loads triples from supported sources if such functionality is present returns True if operation successfull
plugins/surf.sesame2/sesame2/writer.py:154
Method
load_triples
Load `triples` from supported `sources` if such functionality is present. Return `True` if operation successful.
surf/plugin/writer.py:184
Method
load_triples
Load files (or resources on the web) into the triple-store. :param str source: the source file to load RDF triples from :par
surf/plugin/rdflib/writer.py:144
Method
load_triples
Load resources on the web into the triple-store. :param str source: path to the sources of triples to load :param context: t
surf/plugin/sparql_protocol/writer.py:294
Method
log_level
(self)
surf/session.py:162
Function
make_class
(name, bases, adict)
surf/noconflict.py:66
Method
mappings
(self, id)
plugins/surf.sesame2/sesame2/allegro.py:123
Function
mock_get_by
Verify that all passed keywords are strings.
surf/test/resource/test_resource.py:245
Function
mock_instance_factory
(params, instance_data)
surf/test/resource/test_resource_value.py:26
Function
mock_instance_factory
(params, instance_data)
surf/test/resource/test_result_proxy.py:29
Function
modify
()
surf/query/update.py:144
Method
named_group
Add ``GROUP ?name { ... }`` construct to *WHERE* clause. ``name`` is the variable name that will be bound to graph IRI. ``*
surf/query/__init__.py:317
Method
namespace
(self, prefix)
plugins/surf.allegro_franz/allegro_franz/writer.py:178
Method
namespace
Return the `namespace` of the currenlt Resources class type.
surf/resource/__init__.py:849
Method
namespaces
(self)
plugins/surf.allegro_franz/allegro_franz/writer.py:175
Method
namespaces
(self, id)
plugins/surf.sesame2/sesame2/sesame2.py:334
Method
new
**REST** : GET /new: Form to create a new item. alias for :meth:`surf.rest.Rest.create` method :param dict json_params: extr
surf/rest.py:90
Method
offset
get the `offset` `query` attribute. Syntactic sugar for :meth:`surf.resource.Resource.query_attribute` method.
surf/resource/lazy.py:202
Method
offset
Set the limit for returned results.
surf/resource/result_proxy.py:63
Method
order
Request results to be ordered. If no arguments are specified, resources will be ordered by their subject URIs. If ``value``
surf/resource/result_proxy.py:92
Method
pop
(self, i = -1)
surf/resource/lazy.py:168
Method
prepare_getvalues_callable
Return callable that returns stored values for this attr.
surf/resource/__init__.py:392
Function
pretty_rdf
Returns a string of the given URI under the form `namespace:symbol`, if `namespace` is registered, else returns an empty string :param s
surf/util.py:300
Method
prolog_query
(self, id, query, infer = False, limit = None)
plugins/surf.sesame2/sesame2/sesame2.py:307
Method
query_data
the query `data`, internal structure representing the contents of the *WHERE* clause
surf/query/__init__.py:206
Method
query_from
list of URIs that will go into query FROM clauses
surf/query/__init__.py:192
Method
query_from_named
list of URIs that will go into query FROM NAMED clauses
surf/query/__init__.py:199
Method
query_limit
the query `limit`, can be a number or None
surf/query/__init__.py:213
Method
query_modifier
the query `modifier` can be: *DISTINCT*, *REDUCED*, or `None`
surf/query/__init__.py:178
Method
query_offset
the query `offset`, can be a number or None
surf/query/__init__.py:220
Method
query_order_by
the query `order by` variables
surf/query/__init__.py:227
Method
query_type
the query `type` can be: *SELECT*, *ASK*, *DESCRIBE*or *CONSTRUCT*
surf/query/__init__.py:171
Method
query_vars
the query `variables` to return as the resultset
surf/query/__init__.py:185
Method
rdflib_identifier
(self)
surf/plugin/rdflib/reader.py:67
Method
rdflib_identifier
(self)
surf/plugin/rdflib/writer.py:72
Method
rdflib_store
(self)
surf/plugin/rdflib/reader.py:63
Method
rdflib_store
(self)
surf/plugin/rdflib/writer.py:68
Method
reduced
Add *REDUCED* modifier.
surf/query/__init__.py:240
← previous
next →
401–500 of 613, ranked by callers