MCPcopy Create free account

hub / github.com/cosminbasca/surfrdf / functions

Functions613 in github.com/cosminbasca/surfrdf

↓ 40 callersMethodappend
(self, value)
surf/resource/lazy.py:140
↓ 33 callersMethodget
Return the `value(s)` of the corresponding `attribute`. :param resource: the given resource :type resource: :class:`surf.res
surf/plugin/reader.py:98
↓ 20 callersMethodget_class
See :func:`surf.session.Session.map_type`. The `uri` parameter can be any of the following: - a `URIRef` - a
surf/session.py:272
↓ 20 callersFunctionselect
Construct and return :class:`surf.query.Query` object of type **SELECT** ``*vars`` are variables to be selected. Example: .. code-
surf/query/__init__.py:490
↓ 20 callersMethodwhere
Add graph pattern(s) to *WHERE* clause. `where()` accepts multiple arguments. Each argument represents a a graph pattern and
surf/query/__init__.py:273
↓ 18 callersMethodtranslate
(self)
surf/query/translator/sparql.py:49
↓ 17 callersFunctioncanonical
Strip extra whitespace, convert to lowercase. This can be used to compare generated SPARQL queries and ignore whitespace, capitaliza
surf/test/query/test_sparul.py:9
↓ 17 callersFunctioncanonical
Strip extra whitespace, convert to lowercase. This can be used to compare generated SPARQL queries and ignore whitespace, capitaliza
surf/test/query/test_sparql.py:9
↓ 17 callersFunctiondebug
(msg, *args)
surf/log.py:48
↓ 16 callersMethodextend
(self, L)
surf/resource/lazy.py:147
↓ 16 callersMethodsesame2_request
(self, method, sesame2_method, sesame2_params = {}, body = '', params = {}, headers = {})
plugins/surf.sesame2/sesame2/sesame2.py:275
↓ 15 callersMethod__prepare_values
(self)
surf/resource/lazy.py:68
↓ 15 callersMethodfrom_
Add graph URI(s) that will go in separate *FROM* clause. Each argument can be either `string` or :class:`surf.rdf.URIRef`.
surf/query/__init__.py:247
↓ 14 callersMethodclear
See :func:`surf.plugin.writer.RDFWriter.clear` method.
surf/store.py:167
↓ 11 callersMethod_execute
To be implemented by classes the inherit from `RDFQueryReader`. This method is called internally by :meth:`execute`.
surf/plugin/query_reader.py:386
↓ 11 callersMethodconvert
Convert the results from the query to a multilevel dictionary. This method is used by the :class:`surf.resource.Resource` class.
surf/plugin/query_reader.py:439
↓ 11 callersFunctioninfo
(msg, *args)
surf/log.py:54
↓ 11 callersMethodtemplate
(self, *statements)
surf/query/update.py:98
↓ 10 callersMethod_statement
(self, statement)
surf/query/translator/sparql.py:137
↓ 10 callersMethodget_allegro
(self)
plugins/surf.sesame2/sesame2/writer.py:83
↓ 10 callersFunctionrdf2attr
Inverse of `attr2rdf`, return the attribute name, given the `uri` and whether it is `direct` or not. .. code-block:: python >>> pri
surf/util.py:181
↓ 10 callersFunctiontoSesame
(term,factory)
plugins/surf.allegro_franz/allegro_franz/util.py:75
↓ 10 callersFunctionvalidate_statement
(statement)
surf/query/__init__.py:395
↓ 9 callersMethod_rdf_node
(self, entity)
plugins/surf.sesame2/sesame2/sesame2.py:114
↓ 9 callersMethodall
Retrieve all or limited number of `instances`.
surf/resource/__init__.py:657
↓ 9 callersFunctionattr2rdf
Convert an `attribute name` in the form: .. code-block:: python # direct predicate instance1.foaf_name # inverse pr
surf/util.py:140
↓ 8 callersMethod__query_attribute
(self)
surf/resource/lazy.py:193
↓ 8 callersMethodadd
(self, graph, context = None)
plugins/surf.sesame2/sesame2/sesame2.py:143
↓ 8 callersMethodget
:func:`surf.plugin.reader.RDFReader.get` method.
surf/store.py:120
↓ 8 callersMethodremove_statements
(self, id, s = None, p = None, o = None, context = None)
plugins/surf.sesame2/sesame2/sesame2.py:370
↓ 7 callersMethod__add_default_context
Return default context if context is None.
surf/store.py:90
↓ 7 callersMethodclose
Close the `store`. Both the `reader` and the `writer` plugins are closed. See :func:`surf.plugin.writer.RDFWriter.close` and
surf/store.py:100
↓ 7 callersMethoddistinct
Add *DISTINCT* modifier.
surf/query/__init__.py:233
↓ 7 callersFunctionerror
(msg, *args)
surf/log.py:64
↓ 7 callersMethodexpect_args
(self, args)
surf/test/resource/test_resource_value.py:13
↓ 7 callersMethodexpect_args
(self, args)
surf/test/resource/test_result_proxy.py:12
↓ 7 callersMethodget_resource
Same as `map_type` but `set` the resource from the `graph`.
surf/session.py:306
↓ 7 callersFunctionis_uri
Checks whether the given `uri` is a *URI* reference :param str uri: the given `uri` :return: True if a *URI* reference :rtype: bool
surf/util.py:286
↓ 7 callersMethodset_dirty
mark this `resource` as **dirty**. By doing so, `SuRF` will refresh it's content as soon as it's necessary
surf/resource/lazy.py:97
↓ 6 callersMethod__remove
(self, s = None, p = None, o = None, context = None)
plugins/surf.allegro_franz/allegro_franz/writer.py:132
↓ 6 callersMethod_remove_from_graph
(self, s=None, p=None, o=None, context=None)
surf/plugin/rdflib/writer.py:130
↓ 6 callersMethodcommit
Commits all changes. In essence the method updates all the `dirty` registered `resources`.
surf/session.py:351
↓ 6 callersFunctiondelete
(data = False)
surf/query/update.py:133
↓ 6 callersFunctioninsert
(data = False)
surf/query/update.py:129
↓ 6 callersMethodkeys
The `keys` that are assigned to the managed `stores`.
surf/session.py:127
↓ 6 callersMethodoptional_group
Add optional group graph pattern to *WHERE* clause. `optional_group()` accepts multiple arguments, similarly to :meth:`where
surf/query/__init__.py:293
↓ 6 callersMethodorder_by
Add *ORDER_BY* modifier to query.
surf/query/__init__.py:375
↓ 6 callersMethodserialize
Return a serialized version of the internal graph represenatation of the resource, the format is the same as expected by rdflib's gra
surf/resource/__init__.py:715
↓ 6 callersMethodto_rdf
return an **RDF** representation of the `resource`
surf/resource/lazy.py:104
↓ 6 callersFunctionuri_split
Split the `uri` into base path and remainder, the base is everything that comes before the last *#*' or */* including it .. code-block::
surf/util.py:101
↓ 5 callersMethod_instance
Create an instance from the `subject` and it's associated `concept` (`uris`) URIs. Only the first `concept` URI is considere
surf/resource/__init__.py:294
↓ 5 callersMethodgroup
(self, *statements)
surf/query/__init__.py:305
↓ 5 callersMethodinto
(self, *uris)
surf/query/update.py:84
↓ 5 callersMethodlimit
Add *LIMIT* modifier to query.
surf/query/__init__.py:359
↓ 4 callersMethod__add
(self, s = None, p = None, o = None, context = None)
plugins/surf.allegro_franz/allegro_franz/writer.py:128
↓ 4 callersMethod__add
(self, s=None, p=None, o=None, context=None)
surf/plugin/rdflib/writer.py:126
↓ 4 callersMethod__set_predicate_values
set the prediate - value(s) to the resource using lazy loading, `results` is a dict under the form: {'predicate':{'value':[concept,co
surf/resource/__init__.py:557
↓ 4 callersMethod__str__
(self)
surf/query/__init__.py:391
↓ 4 callersMethod_term
(self, term)
surf/query/translator/sparql.py:93
↓ 4 callersMethod_to_table
(self, result)
surf/plugin/query_reader.py:396
↓ 4 callersMethodadd_statements
(self, id, rdf_data = None, context = None, baseURI = None, saveStrings = False, update = True, content_type =
plugins/surf.sesame2/sesame2/sesame2.py:387
↓ 4 callersMethodfilter
Add *FILTER* construct to query *WHERE* clause. ``filter`` must be either `string`/`unicode` or :class:`surf.query.Filter` o
surf/query/__init__.py:341
↓ 4 callersMethodget_by
Add filter conditions. Arguments are expected in form:: foaf_name = "John" Multiple arguments are supported. A
surf/resource/result_proxy.py:120
↓ 4 callersMethodload
:func:`surf.plugin.reader.RDFReader.load` method.
surf/store.py:126
↓ 4 callersMethodload
Fully load the `resource` from the underlying :class:`surf.store.Store` store. This method returns all statements about the `resource
surf/plugin/reader.py:113
↓ 4 callersFunctionvalue_to_rdf
Convert the value to an :mod:`rdflib` compatible type if appropriate. :param object value: the value :return: the converted value (if po
surf/util.py:321
↓ 3 callersFunction_apply_solution_modifiers
Apply limit, offset, order parameters to query.
surf/plugin/query_reader.py:143
↓ 3 callersMethod_execute
Execute several queries.
surf/plugin/sparql_protocol/writer.py:189
↓ 3 callersFunction_group_by_context
(resources)
surf/plugin/sparql_protocol/writer.py:54
↓ 3 callersMethod_remove_from_endpoint
(self, s=None, p=None, o=None, context=None)
surf/plugin/sparql_protocol/writer.py:240
↓ 3 callersFunctiondo_download
()
ez_setup.py:96
↓ 3 callersFunctiondownload_setuptools
Download setuptools from a specified location and return its filename `version` should be a valid setuptools version number that is available
ez_setup.py:121
↓ 3 callersMethodget_by
(self, params)
surf/test/resource/test_result_proxy.py:18
↓ 3 callersMethodgraph
(self, uri)
surf/query/update.py:115
↓ 3 callersFunctionload
()
surf/query/update.py:137
↓ 3 callersMethodload_triples
See :func:`surf.plugin.writer.RDFWriter.load_triples` method.
surf/store.py:229
↓ 3 callersMethodmap_type
Create and return a `class` based on the `uri` given. Also will add the `classes` to the inheritance list.
surf/session.py:245
↓ 3 callersMethodoffset
Add *OFFSET* modifier to query.
surf/query/__init__.py:367
↓ 3 callersMethodopen_repository
(self, id, name = None)
plugins/surf.sesame2/sesame2/allegro.py:66
↓ 3 callersFunctionoptional_group
Return optional group graph pattern. Returned object can be used as argument in :meth:`Query.where` method. `optional_group()` accepts
surf/query/__init__.py:424
↓ 3 callersFunctionquery_s
Construct :class:`surf.query.Query` with `?p`, `?v` and `?c` as unknowns. :param s: the `subject` :param bool direct: whether the predic
surf/plugin/query_reader.py:67
↓ 3 callersMethodsave
Replace the ``*resources`` in store with their current state.
surf/plugin/writer.py:106
↓ 3 callersMethodsize
See :func:`surf.plugin.writer.RDFWriter.size` method.
surf/store.py:200
↓ 3 callersMethodunion
(self, *statements)
surf/query/__init__.py:311
↓ 3 callersMethodupdate
**REST** : PUT /id: Update an existing item., update an instances attributes with the supplied parameters :param str id: the
surf/rest.py:99
↓ 3 callersMethodupdate
Update the resource in the data `store`. This method does not remove other triples related to it (the inverse triples of type <s',p,
surf/resource/__init__.py:770
↓ 2 callersMethod__execute_get_by
(self)
surf/resource/result_proxy.py:206
↓ 2 callersMethod__query
(self, id, query, infer = False, queryLn = 'SPARQL', limit = None, headers = {})
plugins/surf.sesame2/sesame2/sesame2.py:298
↓ 2 callersMethod__setattr__
The `set` method - responsible for *caching* the `value` to the corresponding object attribute given by `name`. .. note: Thi
surf/resource/__init__.py:381
↓ 2 callersMethod__tontriples
(self, s, p, o)
plugins/surf.sesame2/sesame2/writer.py:147
↓ 2 callersMethod_add
(self, s, p, o, context=None)
surf/plugin/sparql_protocol/writer.py:237
↓ 2 callersFunction_init_plugins
(plugins, entry_point_name)
surf/plugin/manager.py:58
↓ 2 callersMethod_lazy
Do `lazy` instantiation of rdf predicates value is a dictionary {val:[concept,concept,...]}, returns an instance of `Resource
surf/resource/__init__.py:324
↓ 2 callersMethod_param_stmt
(self, params, s, p, o)
plugins/surf.sesame2/sesame2/sesame2.py:352
↓ 2 callersFunction_prepare_add_many_query
(resources, context=None)
surf/plugin/sparql_protocol/writer.py:62
↓ 2 callersFunction_prepare_delete_many_query
(resources, context, inverse=False)
surf/plugin/sparql_protocol/writer.py:77
↓ 2 callersFunction_unicode
(namespace)
surf/namespace.py:116
↓ 2 callersFunctionask
Construct and return :class:`surf.query.Query` object of type **ASK**
surf/query/__init__.py:506
↓ 2 callersFunctionclear
()
surf/query/update.py:140
↓ 2 callersMethodcontext
get the `context` `query` attribute. Syntactic sugar for :meth:`surf.resource.Resource.query_attribute` method.
surf/resource/lazy.py:238
next →1–100 of 613, ranked by callers