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
↓ 2 callers
Method
desc
get the `desc` `query` attribute. Syntactic sugar for :meth:`surf.resource.Resource.query_attribute` method.
surf/resource/lazy.py:220
↓ 2 callers
Method
first
Return first resource or None if there aren't any.
surf/resource/result_proxy.py:238
↓ 2 callers
Method
full
get the `full` `query` attribute. Syntactic sugar for :meth:`surf.resource.Resource.query_attribute` method.
surf/resource/lazy.py:208
↓ 2 callers
Method
get_allegro
(self)
plugins/surf.sesame2/sesame2/reader.py:82
↓ 2 callers
Method
get_by
(self, params)
surf/test/resource/test_resource_value.py:19
↓ 2 callers
Function
get_namespace
Return the `namespace` short hand notation and the URI based on the URI `base`. The namespace is a `rdf.namespace.Namespace` .. cod
surf/namespace.py:228
↓ 2 callers
Function
get_namespace_url
Return the `namespace` URI registered under the specified `prefix` .. code-block:: python >>> url = ns.get_namespace_url('TEST')
surf/namespace.py:258
↓ 2 callers
Method
insert
(self, i, value)
surf/resource/lazy.py:154
↓ 2 callers
Method
instances_by_attribute
Return all `URIs` that are instances of ``resource`` and have the specified `attributes`. If ``direct`` is `False`, than the
surf/plugin/reader.py:154
↓ 2 callers
Function
json_to_rdflib
Convert a json result entry to an :mod:`rdfLib` type. :param dict json_object: the *JSON* object :return: the converted value (if possib
surf/util.py:352
↓ 2 callers
Method
map_instance
Create an `instance` of the `class` specified by `uri` and `classes` to be inherited, see `map_type` for more information.
surf/session.py:288
↓ 2 callers
Method
order
get the `order` `query` attribute. Syntactic sugar for :meth:`surf.resource.Resource.query_attribute` method.
surf/resource/lazy.py:214
↓ 2 callers
Function
order_terms
(s, p, o)
surf/plugin/query_reader.py:154
↓ 2 callers
Method
protocol
(self)
plugins/surf.sesame2/sesame2/sesame2.py:290
↓ 2 callers
Function
register
register reader and writer plugins :param str name: the plugin name :param reader: the reader plugin :param writer: the writer plugin
surf/plugin/manager.py:81
↓ 2 callers
Method
remove
See :func:`surf.plugin.writer.RDFWriter.remove` method.
surf/store.py:192
↓ 2 callers
Method
remove
Completely remove the ``*resources`` from the `store`.
surf/plugin/writer.py:126
↓ 2 callers
Method
repositories
(self)
plugins/surf.sesame2/sesame2/sesame2.py:294
↓ 2 callers
Method
save
See :func:`surf.plugin.writer.RDFWriter.save` method.
surf/store.py:174
↓ 2 callers
Method
set
Load the `resource` from a `graph`. The `graph` must be a `rdflib` `ConjunctiveGraph` or `Graph` .. note: Currently the meth
surf/resource/__init__.py:812
↓ 2 callers
Function
set_logger_level
(level, name=None)
surf/log.py:110
↓ 2 callers
Function
single
alias for :class:`Single` :param attr: the given attribute :type attr: :class:`rdflib.term.URIRef` or str :return: a :class:`Single`
surf/util.py:405
↓ 2 callers
Method
size
(self, id)
plugins/surf.sesame2/sesame2/sesame2.py:330
↓ 2 callers
Function
to_rdf
(attr_name)
surf/util.py:166
↓ 2 callers
Method
to_rdf
Convert any value to it's appropriate `rdflib` construct.
surf/resource/__init__.py:373
↓ 2 callers
Method
update
Update the ``*resources`` to the `store` - persist.
surf/plugin/writer.py:116
↓ 2 callers
Function
uri_to_classname
Handy function to convert a `uri` to a Python valid `class name` .. code-block:: python >>> # prints Ns1some_class, where Ns1 is th
surf/util.py:122
↓ 2 callers
Method
xml
(self)
plugins/surf.sesame2/sesame2/sesame2.py:193
↓ 1 callers
Function
__add_direct
(prefix)
surf/namespace.py:140
↓ 1 callers
Function
__add_inverted
(prefix)
surf/namespace.py:136
↓ 1 callers
Method
__build_filter
(self, s, p, o)
surf/plugin/sparql_protocol/writer.py:277
↓ 1 callers
Method
__deserialize
serializes the response based on the Content-Type or Accept header
plugins/surf.sesame2/sesame2/sesame2.py:252
↓ 1 callers
Method
__eq__
Return True if the two `resources` have the same `subject` and are both of type `Resource`, False otherwise.
surf/resource/__init__.py:60
↓ 1 callers
Method
__eq__
Return True if the two `resources` have the same `subject` and are both of type `Resource`, False otherwise.
surf/resource/__init__.py:896
↓ 1 callers
Method
__execute_ask
(self, q_string)
plugins/surf.allegro_franz/allegro_franz/reader.py:105
↓ 1 callers
Method
__execute_select
(self, q_string)
plugins/surf.allegro_franz/allegro_franz/reader.py:110
↓ 1 callers
Method
__init__
(self, reader, *args, **kwargs)
surf/plugin/writer.py:56
↓ 1 callers
Method
__init__
(self, type, *vars)
surf/query/__init__.py:156
↓ 1 callers
Method
__iterator
(self)
surf/resource/result_proxy.py:220
↓ 1 callers
Method
__setitem__
Set the `store` for the specified key, if value not a `Store` instance ignored.
surf/session.py:105
↓ 1 callers
Method
_add_many
(self, triples, context=None)
surf/plugin/sparql_protocol/writer.py:213
↓ 1 callers
Method
_add_triple
(self, s=None, p=None, o=None, context=None)
surf/plugin/writer.py:87
↓ 1 callers
Method
_ask
Return boolean value of an **ASK** query.
surf/plugin/query_reader.py:380
↓ 1 callers
Method
_clear
(self,context=None)
surf/plugin/writer.py:67
↓ 1 callers
Method
_concept
To be implemented by classes that inherit :class:`surf.plugin.RDFReader`. This method is called directly by the :meth:`concept` meth
surf/plugin/reader.py:78
↓ 1 callers
Method
_convert
(self, query_result, *keys)
surf/plugin/query_reader.py:399
↓ 1 callers
Method
_filter
(self, stmt)
surf/query/translator/sparql.py:131
↓ 1 callers
Method
_get
To be implemented by classes that inherit :class:`surf.plugin.RDFReader`. This method is called directly by the :meth:`get` method.
surf/plugin/reader.py:51
↓ 1 callers
Method
_get_by
(self, params)
surf/plugin/reader.py:95
↓ 1 callers
Method
_get_by_n_queries
(self, params)
surf/plugin/query_reader.py:270
↓ 1 callers
Method
_get_by_subquery
(self, params)
surf/plugin/query_reader.py:299
↓ 1 callers
Method
_group
(self, g)
surf/query/translator/sparql.py:118
↓ 1 callers
Method
_instances_by_attribute
To be implemented by classes that inherit :class:`surf.plugin.RDFReader`. This method is called directly by the :meth:`instances_by_
surf/plugin/reader.py:87
↓ 1 callers
Method
_is_present
To be implemented by classes that inherit :class:`surf.plugin.RDFReader`. This method is called directly by the :meth:`is_present` m
surf/plugin/reader.py:69
↓ 1 callers
Method
_load
To be implemented by classes that inherit :class:`surf.plugin.RDFReader`. This method is called directly by the :meth:`load` method.
surf/plugin/reader.py:60
↓ 1 callers
Method
_named_group
(self, g)
surf/query/translator/sparql.py:121
↓ 1 callers
Method
_optional_group
(self, g)
surf/query/translator/sparql.py:125
↓ 1 callers
Function
_prepare_selective_delete_query
(resources, context=None)
surf/plugin/sparql_protocol/writer.py:109
↓ 1 callers
Function
_register_surf
()
surf/plugin/manager.py:96
↓ 1 callers
Method
_remove
(self, *resources, **kwargs)
surf/plugin/writer.py:79
↓ 1 callers
Method
_remove_triple
(self, s=None, p=None, o=None, context=None)
surf/plugin/writer.py:94
↓ 1 callers
Method
_results_to_json
(self, results)
plugins/surf.allegro_franz/allegro_franz/reader.py:136
↓ 1 callers
Method
_save
(self, *resources)
surf/plugin/writer.py:71
↓ 1 callers
Method
_set_triple
(self, s=None, p=None, o=None, context=None)
surf/plugin/writer.py:91
↓ 1 callers
Method
_size
(self)
surf/plugin/writer.py:83
↓ 1 callers
Method
_subquery
(self, stmt)
surf/query/translator/sparql.py:134
↓ 1 callers
Method
_term
(self, term)
surf/plugin/sparql_protocol/writer.py:324
↓ 1 callers
Method
_to_table
(self, _)
surf/test/plugin/test_query_reader.py:23
↓ 1 callers
Method
_translate
(self, query)
surf/query/translator/sparql.py:55
↓ 1 callers
Method
_translate_ask
(self, query)
surf/query/translator/sparql.py:84
↓ 1 callers
Method
_translate_clear
(self, query)
surf/query/translator/sparul.py:73
↓ 1 callers
Method
_translate_delete
(self, query)
surf/query/translator/sparul.py:97
↓ 1 callers
Method
_translate_insert
(self, query)
surf/query/translator/sparul.py:81
↓ 1 callers
Method
_translate_load
(self, query)
surf/query/translator/sparul.py:59
↓ 1 callers
Method
_triple_pattern
(self, statement)
surf/query/translator/sparql.py:113
↓ 1 callers
Method
_union
(self, g)
surf/query/translator/sparql.py:128
↓ 1 callers
Method
_update
(self, *resources)
surf/plugin/writer.py:75
↓ 1 callers
Method
_uri
For **internal** use only, convert the `uri` to a `URIRef`.
surf/session.py:214
↓ 1 callers
Function
_validate_md5
(egg_name, data)
ez_setup.py:69
↓ 1 callers
Function
_validate_variable
(variable)
surf/query/__init__.py:116
↓ 1 callers
Method
add_triple
Add a triple to the `store`, in the specified ``context``. `None` can be used as a wildcard.
surf/plugin/writer.py:145
↓ 1 callers
Function
all
Return all registered namespaces as a dict, if `copy` is `True` than a copy of the dictionary is returned. By default, the actual internal dict i
surf/namespace.py:144
↓ 1 callers
Method
bind_namespaces_to_graph
Bind the 'resources' registered namespaces to the supplied `graph`.
surf/resource/__init__.py:355
↓ 1 callers
Function
classmaker
(left_metas=(), right_metas=())
surf/noconflict.py:65
↓ 1 callers
Method
clear
(self, context = None)
plugins/surf.sesame2/sesame2/sesame2.py:170
↓ 1 callers
Method
close
(self)
plugins/surf.sesame2/sesame2/reader.py:123
↓ 1 callers
Method
close
Close the `session`. .. note:: It is good practice to close the `session` when it's no longer needed. Re
surf/session.py:228
↓ 1 callers
Method
concept
:func:`surf.plugin.reader.RDFReader.concept` method.
surf/store.py:136
↓ 1 callers
Method
create
**REST** : POST /: Create a new item, creates a new :class:`surf.resource.Resource` instance :param dict json_params: extra
surf/rest.py:78
↓ 1 callers
Method
create_repository
(self, id, title, name = None, if_exists = 'open', readable = True, writable = True)
plugins/surf.sesame2/sesame2/allegro.py:69
↓ 1 callers
Function
de_camel_case
Adds spaces to a camel case string. Failure to space out string returns the original string. :param str camel_case: the camel cased string
surf/util.py:265
↓ 1 callers
Function
describe
Construct and return :class:`surf.query.Query` object of type **DESCRIBE**
surf/query/__init__.py:520
↓ 1 callers
Method
execute
Execute a `query` of type :class:`surf.query.Query`.
surf/plugin/query_reader.py:428
↓ 1 callers
Method
execute_sparql
(self, query, format='JSON')
plugins/surf.sesame2/sesame2/reader.py:107
↓ 1 callers
Method
execute_sparql
(self, q_string, format='JSON')
surf/plugin/sparql_protocol/reader.py:101
↓ 1 callers
Method
from_named
Add graph URI(s) that will go in separate *FROM NAMED* clause. Each argument can be either `string` or :class:`surf.rdf.URIRef`.
surf/query/__init__.py:260
↓ 1 callers
Function
get_binding
(node)
plugins/surf.sesame2/sesame2/sesame2.py:57
↓ 1 callers
Method
get_dirty_instances
Return all the unsaved (dirty) `instances` of type `Resource`.
surf/resource/__init__.py:365
↓ 1 callers
Function
get_fallback_namespace
()
surf/namespace.py:225
↓ 1 callers
Function
get_logger
(name=LOGGER_NAME, handler=None)
surf/log.py:69
← previous
next →
101–200 of 613, ranked by callers