Did I find the right examples for you? yes no

All Samples(33)  |  Call(0)  |  Derive(20)  |  Import(13)

src/h/u/humfrey-HEAD/humfrey/sparql/views/admin.py   humfrey(Download)
from humfrey.misc import views as misc_views
from humfrey.results.views.standard import RDFView
from humfrey.sparql.views import StoreView, QueryView, CannedQueryView
from humfrey.sparql.models import Store
from humfrey.utils.namespaces import NS
class GraphDataView(StoreChooseMixin, StoreView, misc_views.PassThroughView):
    def get_target_url(self, request):
        return "{0}?{1}".format(self.store.graph_store_endpoint,
                                urllib.urlencode({'graph': request.GET['graph']}))
 
    class ElasticSearchPassThroughView(StoreChooseMixin, StoreView, misc_views.PassThroughView):
        permission_requirements = {'get': 'sparql.query_store',
                                   'post': 'sparql.query_store',
                                   'head': 'sparql.query_store'}
        def get_target_url(self, request, index=None):

src/d/a/dataox-HEAD/dataox/core/views.py   dataox(Download)
from humfrey.results.views.standard import RDFView, ResultSetView
from humfrey.utils.namespaces import NS
from humfrey.sparql.views import StoreView, CannedQueryView
from humfrey.linkeddata.resource import Resource
from humfrey.linkeddata.views import MappingView
class ExampleResourceView(ResultSetView, HTMLView, StoreView, MappingView):
    _QUERY = """
        CONSTRUCT {
            ?dataset a void:Dataset ;
              rdfs:label ?datasetLabel ;
class ExampleQueryView(ResultSetView, HTMLView, StoreView, MappingView):
    _QUERY = """
        SELECT ?dataset ?datasetLabel ?value ?label ?comment WHERE {
            ?dataset a void:Dataset ;
              rdfs:label ?datasetLabel ;

src/d/a/dataox-HEAD/dataox/equipment/views.py   dataox(Download)
from humfrey.results.views.standard import RDFView
from humfrey.sparql.models import Store
from humfrey.sparql.views import CannedQueryView, StoreView
from humfrey.utils.namespaces import NS
 
class ContributeView(HTMLView, MappingView, StoreView):
    recipients_to = [('Research Services', 'research.facilities@admin.ox.ac.uk')]
    recipients_cc = [('Open Data Team', 'opendata-admin@maillist.ox.ac.uk')]
 
    @method_decorator(login_required(login_url='/webauth/login/'))

src/d/a/dataox-HEAD/dataox/old_feeds/views.py   dataox(Download)
from humfrey.linkeddata.views import MappingView
from humfrey.results.views.standard import RDFView, ResultSetView
from humfrey.sparql.views import CannedQueryView, StoreView
 
class IndexView(HTMLView):
class VacancyView(FeedView, RDFView, StoreView, MappingView):
    template_name = "old_feeds/vacancy"
    _json_indent=2
 
    all = False

src/h/u/humfrey-HEAD/humfrey/desc/views.py   humfrey(Download)
from humfrey.results.views.json import JSONRDFView
from humfrey.results.views.standard import RDFView
from humfrey.sparql.views import StoreView
from humfrey.utils.namespaces import NS, expand
 
logger = logging.getLogger(__name__)
 
class IdView(MappingView, StoreView, ContentNegotiatedView):
class DescView(MappingView, StoreView):
    """
    Will redirect to DocView if described by endpoint, otherwise to the URI given.
 
    Allows us to be lazy when determining whether to go on- or off-site.
class DocView(MappingView, StoreView, RDFView, JSONRDFView, HTMLView):
    check_canonical = True
 
    doc_rdf_processors = getattr(settings, 'DOC_RDF_PROCESSORS', ())
    template_name = 'doc/base'

src/h/u/humfrey-HEAD/humfrey/elasticsearch/views.py   humfrey(Download)
import rdflib
 
from humfrey.sparql.views import StoreView
from humfrey.sparql.utils import get_labels
from humfrey.linkeddata.uri import doc_forwards
class ElasticSearchView(HTMLView, JSONPView, MappingView, StoreView):
    def get(self, request):
        query = self.get_query()
        if query is not None:
            results = self.get_results(query)
class SearchView(HTMLView, JSONPView, MappingView, OpenSearchView, StoreView):
    page_size = 10
 
    # e.g. {'filter.category.uri': ('filter.subcategory.uri',)}
    dependent_parameters = {}

src/h/u/humfrey-HEAD/humfrey/thumbnail/views.py   humfrey(Download)
from humfrey.utils.namespaces import expand
from humfrey.sparql.models import Store
from humfrey.sparql.views import StoreView
 
from .encoding import encode_parameters
 
IMAGE_TYPES = set(map(expand, getattr(settings, 'IMAGE_TYPES', ('foaf:depiction',))))
 
class ThumbnailView(StoreView):

src/h/u/humfrey-HEAD/humfrey/pingback/views.py   humfrey(Download)
from django.views.generic import View
 
from humfrey.sparql.views import StoreView
 
from .models import InboundPingback
 
class PingbackView(StoreView):

src/h/u/humfrey-HEAD/humfrey/feeds/views.py   humfrey(Download)
from django.http import Http404
from django_conneg.views import ContentNegotiatedView, HTMLView, JSONPView
from humfrey.linkeddata.views import MappingView
from humfrey.sparql.views import StoreView
 
class FeedView(HTMLView, StoreView, MappingView):
    pass
 
class FeedConfigView(FeedView):
    template_name = 'feeds/config'

src/h/u/humfrey-0.3.9/humfrey/desc/views.py   humfrey(Download)
 
from humfrey.results.views.standard import RDFView
from humfrey.sparql.views import StoreView
from humfrey.utils.namespaces import NS, expand
 
logger = logging.getLogger(__name__)
 
class IdView(MappingView, StoreView, ContentNegotiatedView):
class DescView(MappingView, StoreView):
    """
    Will redirect to DocView if described by endpoint, otherwise to the URI given.
 
    Allows us to be lazy when determining whether to go on- or off-site.
class DocView(MappingView, StoreView, RDFView, HTMLView):
    check_canonical = True
 
    doc_rdf_processors = getattr(settings, 'DOC_RDF_PROCESSORS', ())
    template_name = 'doc/base'

  1 | 2  Next