├── pip-requirements.txt ├── urbanopus-solr ├── collection1 │ ├── core.properties │ ├── conf │ │ ├── spellings.txt │ │ ├── lang │ │ │ ├── contractions_ga.txt │ │ │ ├── hyphenations_ga.txt │ │ │ ├── contractions_ca.txt │ │ │ ├── stemdict_nl.txt │ │ │ ├── contractions_fr.txt │ │ │ ├── contractions_it.txt │ │ │ ├── stopwords_hy.txt │ │ │ ├── stopwords_el.txt │ │ │ ├── stopwords_ga.txt │ │ │ ├── stopwords_eu.txt │ │ │ ├── userdict_ja.txt │ │ │ ├── stopwords_en.txt │ │ │ ├── stopwords_th.txt │ │ │ ├── stopwords_ar.txt │ │ │ ├── stopwords_gl.txt │ │ │ ├── stopwords_cz.txt │ │ │ ├── stopwords_ja.txt │ │ │ ├── stopwords_lv.txt │ │ │ ├── stopwords_bg.txt │ │ │ ├── stopwords_ckb.txt │ │ │ ├── stopwords_ca.txt │ │ │ ├── stopwords_tr.txt │ │ │ ├── stopwords_ro.txt │ │ │ ├── stopwords_hu.txt │ │ │ ├── stopwords_hi.txt │ │ │ ├── stopwords_fi.txt │ │ │ ├── stopwords_fa.txt │ │ │ ├── stopwords_da.txt │ │ │ ├── stopwords_sv.txt │ │ │ ├── stopwords_fr.txt │ │ │ ├── stopwords_id.txt │ │ │ ├── stopwords_nl.txt │ │ │ ├── stopwords_no.txt │ │ │ ├── stopwords_pt.txt │ │ │ ├── stopwords_de.txt │ │ │ ├── stopwords_it.txt │ │ │ └── stopwords_es.txt │ │ ├── velocity │ │ │ ├── suggest.vm │ │ │ ├── facets.vm │ │ │ ├── header.vm │ │ │ ├── error.vm │ │ │ ├── did_you_mean.vm │ │ │ ├── facet_pivot.vm │ │ │ ├── facet_queries.vm │ │ │ ├── join_doc.vm │ │ │ ├── layout.vm │ │ │ ├── results_list.vm │ │ │ ├── pagination_bottom.vm │ │ │ ├── hit.vm │ │ │ ├── cluster.vm │ │ │ ├── hit_plain.vm │ │ │ ├── facet_fields.vm │ │ │ ├── cluster_results.vm │ │ │ ├── browse.vm │ │ │ ├── debug.vm │ │ │ ├── facet_ranges.vm │ │ │ ├── pagination_top.vm │ │ │ ├── jquery.autocomplete.css │ │ │ ├── query_group.vm │ │ │ ├── hit_grouped.vm │ │ │ ├── tabs.vm │ │ │ ├── footer.vm │ │ │ ├── head.vm │ │ │ ├── product_doc.vm │ │ │ ├── query.vm │ │ │ ├── query_spatial.vm │ │ │ ├── query_form.vm │ │ │ ├── mime_type_lists.vm │ │ │ ├── main.css │ │ │ ├── richtext_doc.vm │ │ │ ├── README.txt │ │ │ └── VM_global_library.vm │ │ ├── _schema_analysis_synonyms_english.json │ │ ├── _schema_analysis_stopwords_english.json │ │ ├── stopwords.txt │ │ ├── clustering │ │ │ └── carrot2 │ │ │ │ ├── stc-attributes.xml │ │ │ │ ├── kmeans-attributes.xml │ │ │ │ └── lingo-attributes.xml │ │ ├── protwords.txt │ │ ├── scripts.conf │ │ ├── admin-extra.menu-top.html │ │ ├── admin-extra.menu-bottom.html │ │ ├── admin-extra.html │ │ ├── synonyms.txt │ │ ├── elevate.xml │ │ ├── update-script.js │ │ ├── xslt │ │ │ ├── example_rss.xsl │ │ │ ├── example_atom.xsl │ │ │ ├── updateXml.xsl │ │ │ └── example.xsl │ │ ├── mapping-ISOLatin1Accent.txt │ │ └── currency.xml │ └── README.txt └── README.txt ├── .gitignore ├── ckanext ├── __init__.py └── wotkit │ ├── __init__.py │ ├── theme │ └── templates │ │ ├── package │ │ ├── read.html │ │ └── snippets │ │ │ └── package_basic_fields.html │ │ └── user │ │ ├── new_user_form.html │ │ └── edit_user_form.html │ ├── auth.py │ ├── validators.py │ ├── billing_log_middleware.py │ └── config_globals.py ├── setup.py └── README.md /pip-requirements.txt: -------------------------------------------------------------------------------- 1 | requests>=1.1.0 2 | wotkitpy -------------------------------------------------------------------------------- /urbanopus-solr/collection1/core.properties: -------------------------------------------------------------------------------- 1 | name=collection1 -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/spellings.txt: -------------------------------------------------------------------------------- 1 | pizza 2 | history -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.egg-info 2 | *.pyc 3 | *.swp 4 | *.swo 5 | *~ 6 | #* 7 | .#* 8 | build/ 9 | dist/ 10 | distribute-* -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/contractions_ga.txt: -------------------------------------------------------------------------------- 1 | # Set of Irish contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | d 4 | m 5 | b 6 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/hyphenations_ga.txt: -------------------------------------------------------------------------------- 1 | # Set of Irish hyphenations for StopFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | h 4 | n 5 | t 6 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/contractions_ca.txt: -------------------------------------------------------------------------------- 1 | # Set of Catalan contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | d 4 | l 5 | m 6 | n 7 | s 8 | t 9 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/suggest.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Provides cynamic spelling suggestions 3 | * as you type in the search form 4 | *# 5 | 6 | #foreach($t in $response.response.terms.name) 7 | $t.key 8 | #end 9 | -------------------------------------------------------------------------------- /ckanext/__init__.py: -------------------------------------------------------------------------------- 1 | # this is a namespace package 2 | try: 3 | import pkg_resources 4 | pkg_resources.declare_namespace(__name__) 5 | except ImportError: 6 | import pkgutil 7 | __path__ = pkgutil.extend_path(__path__, __name__) 8 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stemdict_nl.txt: -------------------------------------------------------------------------------- 1 | # Set of overrides for the dutch stemmer 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | fiets fiets 4 | bromfiets bromfiets 5 | ei eier 6 | kind kinder 7 | -------------------------------------------------------------------------------- /ckanext/wotkit/__init__.py: -------------------------------------------------------------------------------- 1 | # this is a namespace package 2 | try: 3 | import pkg_resources 4 | pkg_resources.declare_namespace(__name__) 5 | except ImportError: 6 | import pkgutil 7 | __path__ = pkgutil.extend_path(__path__, __name__) 8 | -------------------------------------------------------------------------------- /urbanopus-solr/README.txt: -------------------------------------------------------------------------------- 1 | Installation 2 | ------------ 3 | 4 | Drop the collection1 folder into {solr-install}/examples/solr 5 | 6 | Then add the core to the solr instance using the web UI. 7 | 8 | Open the core (may need page refresh) and then use the DataImport module. -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/_schema_analysis_synonyms_english.json: -------------------------------------------------------------------------------- 1 | { 2 | "initArgs":{ 3 | "ignoreCase":true, 4 | "format":"solr" 5 | }, 6 | "managedMap":{ 7 | "GB":["GiB","Gigabyte"], 8 | "happy":["glad","joyful"], 9 | "TV":["Television"] 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/contractions_fr.txt: -------------------------------------------------------------------------------- 1 | # Set of French contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | l 4 | m 5 | t 6 | qu 7 | n 8 | s 9 | j 10 | d 11 | c 12 | jusqu 13 | quoiqu 14 | lorsqu 15 | puisqu 16 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/facets.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Overall Facet display block 3 | * Invokes the 4 facet and 1 cluster template 4 | *# 5 | 6 | #parse('facet_fields.vm') 7 | #parse('facet_queries.vm') 8 | #parse('facet_ranges.vm') 9 | #parse('facet_pivot.vm') 10 | #parse('cluster.vm') 11 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/header.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Render the top section of the page visible to users 3 | *# 4 | 5 | 8 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/error.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Show Error Message, if any 3 | *# 4 | 5 | ## Show Error Message, if any 6 | ## Usually rendered inside div class=error 7 | 8 | #if( $response.response.error.code ) 9 |

ERROR $response.response.error.code

10 | $response.response.error.msg 11 | #end 12 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/did_you_mean.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Hyperlinked spelling suggestions in results list 3 | *# 4 | 5 | #set($dym = $response.response.spellcheck.suggestions.collation.collationQuery) 6 | #if($dym) 7 | Did you mean 8 | $esc.html($dym)? 9 | #end 10 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/contractions_it.txt: -------------------------------------------------------------------------------- 1 | # Set of Italian contractions for ElisionFilter 2 | # TODO: load this as a resource from the analyzer and sync it in build.xml 3 | c 4 | l 5 | all 6 | dall 7 | dell 8 | nell 9 | sull 10 | coll 11 | pell 12 | gl 13 | agl 14 | dagl 15 | degl 16 | negl 17 | sugl 18 | un 19 | m 20 | t 21 | s 22 | v 23 | d 24 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/facet_pivot.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display Pivot-Based Facets 3 | * e.g.: facets specified by &facet.pivot= 4 | *# 5 | 6 |

7 | Pivot Facets 8 |

9 | 10 | #set($pivot = $response.response.facet_counts.facet_pivot) 11 | 12 | #display_facet_pivot($pivot, "") 13 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/facet_queries.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display facets based on specific facet queries 3 | * e.g.: facets specified by &facet.query= 4 | *# 5 | 6 | #set($field = $response.response.facet_counts.facet_queries) 7 | 8 |

9 | Query Facets 10 |

11 | 12 | #display_facet_query($field, "", "") 13 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/join_doc.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display documents that are joined to other documents 3 | *# 4 | 5 |
6 | #field('compName_s') 7 |
8 | 9 |
10 | Id: #field('id') 11 | (company-details document for 12 | join 13 | ) 14 |
15 | 16 |
17 | Address: #field('address_s') 18 |
19 | 20 | #parse('debug.vm') 21 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_hy.txt: -------------------------------------------------------------------------------- 1 | # example set of Armenian stopwords. 2 | այդ 3 | այլ 4 | այն 5 | այս 6 | դու 7 | դուք 8 | եմ 9 | են 10 | ենք 11 | ես 12 | եք 13 | է 14 | էի 15 | էին 16 | էինք 17 | էիր 18 | էիք 19 | էր 20 | ըստ 21 | թ 22 | ի 23 | ին 24 | իսկ 25 | իր 26 | կամ 27 | համար 28 | հետ 29 | հետո 30 | մենք 31 | մեջ 32 | մի 33 | ն 34 | նա 35 | նաև 36 | նրա 37 | նրանք 38 | որ 39 | որը 40 | որոնք 41 | որպես 42 | ու 43 | ում 44 | պիտի 45 | վրա 46 | և 47 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/layout.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Overall HTML page layout 3 | *# 4 | 5 | 6 | 7 | #parse("head.vm") 8 | 9 | 10 |
Solr Admin
11 | 14 |
15 | #parse("tabs.vm") 16 |
17 |
18 | $content 19 |
20 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/results_list.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Render the main Results List 3 | *# 4 | 5 | ## Usually displayed inside
6 | 7 | #if($response.response.get('grouped')) 8 | 9 | #foreach($grouping in $response.response.get('grouped')) 10 | #parse("hit_grouped.vm") 11 | #end 12 | 13 | #else 14 | 15 | #foreach($doc in $response.results) 16 | #parse("hit.vm") 17 | ## Can get an extremely simple view of the doc 18 | ## which might be nicer for debugging 19 | ##parse("hit_plain.vm") 20 | #end 21 | 22 | #end 23 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/pagination_bottom.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Paging and Statistics at bottom of results 3 | *# 4 | 5 | ## Usually rendered in pagination div tag 6 | 7 | #if($response.response.get('grouped')) 8 | ## pass 9 | #else 10 | 11 | #link_to_previous_page("previous") 12 | 13 | $page.results_found 14 | results found. 15 | 16 | Page $page.current_page_number 17 | of $page.page_count 18 | 19 | #link_to_next_page("next") 20 | 21 | #end 22 |
23 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/hit.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Called for each matching document but then 3 | * calls one of product_doc, join_doc or richtext_doc 4 | * depending on which fields the doc has 5 | *# 6 | 7 | #set($docId = $doc.getFieldValue('id')) 8 | 9 |
10 | 11 | ## Has a "name" field ? 12 | #if($doc.getFieldValue('name')) 13 | #parse("product_doc.vm") 14 | 15 | ## Has a "compName_s" field ? 16 | #elseif($doc.getFieldValue('compName_s')) 17 | #parse("join_doc.vm") 18 | 19 | ## Fallback to richtext_doc 20 | #else 21 | #parse("richtext_doc.vm") 22 | 23 | #end 24 | 25 |
26 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/_schema_analysis_stopwords_english.json: -------------------------------------------------------------------------------- 1 | { 2 | "initArgs":{"ignoreCase":true}, 3 | "managedList":[ 4 | "a", 5 | "an", 6 | "and", 7 | "are", 8 | "as", 9 | "at", 10 | "be", 11 | "but", 12 | "by", 13 | "for", 14 | "if", 15 | "in", 16 | "into", 17 | "is", 18 | "it", 19 | "no", 20 | "not", 21 | "of", 22 | "on", 23 | "or", 24 | "stopworda", 25 | "stopwordb", 26 | "such", 27 | "that", 28 | "the", 29 | "their", 30 | "then", 31 | "there", 32 | "these", 33 | "they", 34 | "this", 35 | "to", 36 | "was", 37 | "will", 38 | "with"]} 39 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/cluster.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Check if Clustering is Enabled and then 3 | * call cluster_results.vm 4 | *# 5 | 6 |

7 | Clusters 8 |

9 | 10 | ## Div tag has placeholder text by default 11 |
12 | Run Solr with java -Dsolr.clustering.enabled=true -jar start.jar to see clustered search results. 13 |
14 | 15 | ## Replace the div content *if* Carrot^2 is available 16 | 20 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/hit_plain.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * An extremely plain / debug version of hit.vm 3 | *# 4 | 5 | 6 | ## For each field 7 | #foreach( $fieldName in $doc.fieldNames ) 8 | ## For each value 9 | #foreach( $value in $doc.getFieldValues($fieldName) ) 10 | 11 | ## Field Name 12 | 17 | ## Field Value(s) 18 | 21 | 22 | #end ## end for each value 23 | #end ## end for each field 24 |
13 | #if( $foreach.count == 1 ) 14 | $fieldName: 15 | #end 16 | 19 | $esc.html($value)
20 |
25 |
26 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/facet_fields.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display facets based on field values 3 | * e.g.: fields specified by &facet.field= 4 | *# 5 | 6 | #if($response.facetFields) 7 |

8 | Field Facets 9 |

10 | #foreach($field in $response.facetFields) 11 | ## Hide facets without value 12 | #if($field.values.size() > 0) 13 | $field.name 14 | 21 | #end ## end if > 0 22 | #end ## end for each facet field 23 | #end ## end if response has facet fields 24 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | from setuptools import setup, find_packages 2 | import sys, os 3 | 4 | version = '0.0' 5 | 6 | setup( 7 | name='ckanext-wotkit', 8 | version=version, 9 | description="proxy to wotkit", 10 | long_description="""\ 11 | """, 12 | classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers 13 | keywords='', 14 | author='Mark Duppenthaler', 15 | author_email='mduppes@gmail.com', 16 | url='', 17 | license='', 18 | packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), 19 | namespace_packages=['ckanext', 'ckanext.wotkit'], 20 | include_package_data=True, 21 | zip_safe=False, 22 | install_requires=[ 23 | # -*- Extra requirements: -*- 24 | ], 25 | entry_points=\ 26 | """ 27 | [ckan.plugins] 28 | # Add plugins here, eg 29 | wotkit=ckanext.wotkit.plugin:WotkitPlugin 30 | """, 31 | ) 32 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/cluster_results.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Actual rendering of Clusters 3 | *# 4 | 5 | ## For each cluster 6 | #foreach ($clusters in $response.response.clusters) 7 | 8 | #set($labels = $clusters.get('labels')) 9 | #set($docs = $clusters.get('docs')) 10 | 11 | ## This Cluster's Heading 12 |

13 | #foreach ($label in $labels) 14 | ## Keep the following line together to prevent 15 | ## a space appearing before each comma 16 | $label#if( $foreach.hasNext ),#end 17 | #end 18 |

19 | 20 | ## This Cluster's Documents 21 |
    22 | ## For each doc in this cluster 23 | #foreach ($cluDoc in $docs) 24 |
  1. 25 | 26 | $cluDoc 27 |
  2. 28 | #end 29 |
30 | 31 | #end ## end for each Cluster 32 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/stopwords.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/browse.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Main entry point into the /browse templates 3 | *# 4 | 5 | #set($searcher = $request.searcher) 6 | #set($params = $request.params) 7 | #set($clusters = $response.response.clusters) 8 | #set($mltResults = $response.response.get("moreLikeThis")) 9 | #set($annotate = $params.get("annotateBrowse")) 10 | #parse('query_form.vm') 11 | #parse('did_you_mean.vm') 12 | 13 | 16 | 17 | 20 | 21 | ## Show Error Message, if any 22 |
23 | #parse("error.vm") 24 |
25 | 26 | ## Render Results, actual matching docs 27 |
28 | #parse("results_list.vm") 29 |
30 | 31 | 34 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/debug.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Show Debugging Information, if enabled 3 | *# 4 | 5 | #if( $params.getBool("debugQuery",false) ) 6 | 7 | toggle explain 8 | 9 |
10 |     $response.getExplainMap().get($doc.getFirstValue('id'))
11 |   
12 | 13 | 14 | toggle all fields 15 | 16 | 17 | #foreach($fieldname in $doc.fieldNames) 18 |
19 | $fieldname : 20 | 21 | #foreach($value in $doc.getFieldValues($fieldname)) 22 | $esc.html($value) 23 | #end 24 | 25 |
26 | #end 27 |
28 | #end 29 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/facet_ranges.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display facets based on ranges of values, AKA "Bukets" 3 | * e.g.: ranges specified by &facet.range= 4 | *# 5 | 6 |

7 | Range Facets 8 |

9 | 10 | #foreach ($field in $response.response.facet_counts.facet_ranges) 11 | ## Hide facets without value 12 | #if($field.value.counts.size() > 0) 13 | #set($name = $field.key) 14 | #set($display = $name) 15 | #set($f = $field.value.counts) 16 | #set($start = $field.value.start) 17 | #set($end = $field.value.end) 18 | #set($gap = $field.value.gap) 19 | #set($before = $field.value.before) 20 | #set($after = $field.value.after) 21 | #display_facet_range($f, $display, $name, $start, $end, $gap, $before, $after) 22 | #end ## end if has any values 23 | #end ## end for each facet range 24 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/pagination_top.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Paging and Statistics at top of results 3 | *# 4 | 5 | ## Usually rendered in pagination div tag 6 | 7 | ## Grouped Results / Not Paginated 8 | #if($response.response.get('grouped')) 9 | 10 | 11 | 12 | $response.response.get('grouped').size() group(s) 13 | 14 | found in ${response.responseHeader.QTime} ms 15 | 16 | 17 | ## Regular Results / Use Paging Links if needed 18 | #else 19 | 20 | 21 | $page.results_found 22 | results found in 23 | ${response.responseHeader.QTime} ms 24 | 25 | 26 | Page $page.current_page_number 27 | of $page.page_count 28 | 29 | #end ## end else non-grouped results, normal pagination 30 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/clustering/carrot2/stc-attributes.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/clustering/carrot2/kmeans-attributes.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_el.txt: -------------------------------------------------------------------------------- 1 | # Lucene Greek Stopwords list 2 | # Note: by default this file is used after GreekLowerCaseFilter, 3 | # so when modifying this file use 'σ' instead of 'ς' 4 | ο 5 | η 6 | το 7 | οι 8 | τα 9 | του 10 | τησ 11 | των 12 | τον 13 | την 14 | και 15 | κι 16 | κ 17 | ειμαι 18 | εισαι 19 | ειναι 20 | ειμαστε 21 | ειστε 22 | στο 23 | στον 24 | στη 25 | στην 26 | μα 27 | αλλα 28 | απο 29 | για 30 | προσ 31 | με 32 | σε 33 | ωσ 34 | παρα 35 | αντι 36 | κατα 37 | μετα 38 | θα 39 | να 40 | δε 41 | δεν 42 | μη 43 | μην 44 | επι 45 | ενω 46 | εαν 47 | αν 48 | τοτε 49 | που 50 | πωσ 51 | ποιοσ 52 | ποια 53 | ποιο 54 | ποιοι 55 | ποιεσ 56 | ποιων 57 | ποιουσ 58 | αυτοσ 59 | αυτη 60 | αυτο 61 | αυτοι 62 | αυτων 63 | αυτουσ 64 | αυτεσ 65 | αυτα 66 | εκεινοσ 67 | εκεινη 68 | εκεινο 69 | εκεινοι 70 | εκεινεσ 71 | εκεινα 72 | εκεινων 73 | εκεινουσ 74 | οπωσ 75 | ομωσ 76 | ισωσ 77 | οσο 78 | οτι 79 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ckanext-wotkit 2 | ============== 3 | 4 | Extensions to the CKAN open data portal for WoTKit integration 5 | 6 | 7 | Installation 8 | ============ 9 | 10 | To install this package, from your CKAN virtualenv, run the following from your CKAN base folder (e.g. ``pyenv/``):: 11 | 12 | ``pip install -e git+https://github.com/SenseTecnic/ckanext-wotkit#egg=ckanext-wotkit`` 13 | 14 | ``pip install -r src/ckanext-wotkit/pip-requirements.txt`` 15 | 16 | Then activate it by setting ``ckan.plugins = wotkit`` in your main ``ini``-file. 17 | 18 | 19 | Changelog 20 | =========================== 21 | Release 1.2: 22 | * Billing logs implemented. The log directory is configured in the .ini file. 23 | 24 | Release 1.4: 25 | * Added support for the option to set datasets to invisible. Only the dataset's creator may perform this change. Invisible datasets can only be viewed by the creator. 26 | * Made editing datasets only available to the dataset's creator. 27 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/protwords.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | # Use a protected word file to protect against the stemmer reducing two 15 | # unrelated words to the same base word. 16 | 17 | # Some non-words that normally won't be encountered, 18 | # just to test that they won't be stemmed. 19 | dontstems 20 | zwhacky 21 | 22 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/scripts.conf: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | user= 17 | solr_hostname=localhost 18 | solr_port=8983 19 | rsyncd_port=18983 20 | data_dir= 21 | webapp_name=solr 22 | master_host= 23 | master_data_dir= 24 | master_status_dir= 25 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/jquery.autocomplete.css: -------------------------------------------------------------------------------- 1 | .ac_results { 2 | padding: 0px; 3 | border: 1px solid black; 4 | background-color: white; 5 | overflow: hidden; 6 | z-index: 99999; 7 | } 8 | 9 | .ac_results ul { 10 | width: 100%; 11 | list-style-position: outside; 12 | list-style: none; 13 | padding: 0; 14 | margin: 0; 15 | } 16 | 17 | .ac_results li { 18 | margin: 0px; 19 | padding: 2px 5px; 20 | cursor: default; 21 | display: block; 22 | /* 23 | if width will be 100% horizontal scrollbar will apear 24 | when scroll mode will be used 25 | */ 26 | /*width: 100%;*/ 27 | font: menu; 28 | font-size: 12px; 29 | /* 30 | it is very important, if line-height not setted or setted 31 | in relative units scroll will be broken in firefox 32 | */ 33 | line-height: 16px; 34 | overflow: hidden; 35 | } 36 | 37 | .ac_loading { 38 | background: white url('indicator.gif') right center no-repeat; 39 | } 40 | 41 | .ac_odd { 42 | background-color: #eee; 43 | } 44 | 45 | .ac_over { 46 | background-color: #0A246A; 47 | color: white; 48 | } 49 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/admin-extra.menu-top.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 26 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/clustering/carrot2/lingo-attributes.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/admin-extra.menu-bottom.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 26 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_ga.txt: -------------------------------------------------------------------------------- 1 | 2 | a 3 | ach 4 | ag 5 | agus 6 | an 7 | aon 8 | ar 9 | arna 10 | as 11 | b' 12 | ba 13 | beirt 14 | bhúr 15 | caoga 16 | ceathair 17 | ceathrar 18 | chomh 19 | chtó 20 | chuig 21 | chun 22 | cois 23 | céad 24 | cúig 25 | cúigear 26 | d' 27 | daichead 28 | dar 29 | de 30 | deich 31 | deichniúr 32 | den 33 | dhá 34 | do 35 | don 36 | dtí 37 | dá 38 | dár 39 | dó 40 | faoi 41 | faoin 42 | faoina 43 | faoinár 44 | fara 45 | fiche 46 | gach 47 | gan 48 | go 49 | gur 50 | haon 51 | hocht 52 | i 53 | iad 54 | idir 55 | in 56 | ina 57 | ins 58 | inár 59 | is 60 | le 61 | leis 62 | lena 63 | lenár 64 | m' 65 | mar 66 | mo 67 | mé 68 | na 69 | nach 70 | naoi 71 | naonúr 72 | ná 73 | ní 74 | níor 75 | nó 76 | nócha 77 | ocht 78 | ochtar 79 | os 80 | roimh 81 | sa 82 | seacht 83 | seachtar 84 | seachtó 85 | seasca 86 | seisear 87 | siad 88 | sibh 89 | sinn 90 | sna 91 | sé 92 | sí 93 | tar 94 | thar 95 | thú 96 | triúr 97 | trí 98 | trína 99 | trínár 100 | tríocha 101 | tú 102 | um 103 | ár 104 | é 105 | éis 106 | í 107 | ó 108 | ón 109 | óna 110 | ónár 111 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/admin-extra.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 25 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_eu.txt: -------------------------------------------------------------------------------- 1 | # example set of basque stopwords 2 | al 3 | anitz 4 | arabera 5 | asko 6 | baina 7 | bat 8 | batean 9 | batek 10 | bati 11 | batzuei 12 | batzuek 13 | batzuetan 14 | batzuk 15 | bera 16 | beraiek 17 | berau 18 | berauek 19 | bere 20 | berori 21 | beroriek 22 | beste 23 | bezala 24 | da 25 | dago 26 | dira 27 | ditu 28 | du 29 | dute 30 | edo 31 | egin 32 | ere 33 | eta 34 | eurak 35 | ez 36 | gainera 37 | gu 38 | gutxi 39 | guzti 40 | haiei 41 | haiek 42 | haietan 43 | hainbeste 44 | hala 45 | han 46 | handik 47 | hango 48 | hara 49 | hari 50 | hark 51 | hartan 52 | hau 53 | hauei 54 | hauek 55 | hauetan 56 | hemen 57 | hemendik 58 | hemengo 59 | hi 60 | hona 61 | honek 62 | honela 63 | honetan 64 | honi 65 | hor 66 | hori 67 | horiei 68 | horiek 69 | horietan 70 | horko 71 | horra 72 | horrek 73 | horrela 74 | horretan 75 | horri 76 | hortik 77 | hura 78 | izan 79 | ni 80 | noiz 81 | nola 82 | non 83 | nondik 84 | nongo 85 | nor 86 | nora 87 | ze 88 | zein 89 | zen 90 | zenbait 91 | zenbat 92 | zer 93 | zergatik 94 | ziren 95 | zituen 96 | zu 97 | zuek 98 | zuen 99 | zuten 100 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/userdict_ja.txt: -------------------------------------------------------------------------------- 1 | # 2 | # This is a sample user dictionary for Kuromoji (JapaneseTokenizer) 3 | # 4 | # Add entries to this file in order to override the statistical model in terms 5 | # of segmentation, readings and part-of-speech tags. Notice that entries do 6 | # not have weights since they are always used when found. This is by-design 7 | # in order to maximize ease-of-use. 8 | # 9 | # Entries are defined using the following CSV format: 10 | # , ... , ... , 11 | # 12 | # Notice that a single half-width space separates tokens and readings, and 13 | # that the number tokens and readings must match exactly. 14 | # 15 | # Also notice that multiple entries with the same is undefined. 16 | # 17 | # Whitespace only lines are ignored. Comments are not allowed on entry lines. 18 | # 19 | 20 | # Custom segmentation for kanji compounds 21 | 日本経済新聞,日本 経済 新聞,ニホン ケイザイ シンブン,カスタム名詞 22 | 関西国際空港,関西 国際 空港,カンサイ コクサイ クウコウ,カスタム名詞 23 | 24 | # Custom segmentation for compound katakana 25 | トートバッグ,トート バッグ,トート バッグ,かずカナ名詞 26 | ショルダーバッグ,ショルダー バッグ,ショルダー バッグ,かずカナ名詞 27 | 28 | # Custom reading for former sumo wrestler 29 | 朝青龍,朝青龍,アサショウリュウ,カスタム人名 30 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/query_group.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Query settings for grouping by fields, 3 | * e.g.: Manufacturer or Popularity 4 | *# 5 | 6 | #set($queryOpts = $params.get("queryOpts")) 7 | 8 | #if($queryOpts == "group") 9 |
10 | #set($groupF = $request.params.get('group.field')) 11 | 12 | 38 | 39 | 40 | 41 |
42 | 43 | #end 44 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/synonyms.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | #----------------------------------------------------------------------- 14 | #some test synonym mappings unlikely to appear in real input text 15 | aaafoo => aaabar 16 | bbbfoo => bbbfoo bbbbar 17 | cccfoo => cccbar cccbaz 18 | fooaaa,baraaa,bazaaa 19 | 20 | # Some synonym groups specific to this example 21 | GB,gib,gigabyte,gigabytes 22 | MB,mib,megabyte,megabytes 23 | Television, Televisions, TV, TVs 24 | #notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming 25 | #after us won't split it into two words. 26 | 27 | # Synonym mappings can be used for spelling correction too 28 | pixima => pixma 29 | 30 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_en.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # a couple of test stopwords to test that the words are really being 17 | # configured from this file: 18 | stopworda 19 | stopwordb 20 | 21 | # Standard english stop words taken from Lucene's StopAnalyzer 22 | a 23 | an 24 | and 25 | are 26 | as 27 | at 28 | be 29 | but 30 | by 31 | for 32 | if 33 | in 34 | into 35 | is 36 | it 37 | no 38 | not 39 | of 40 | on 41 | or 42 | such 43 | that 44 | the 45 | their 46 | then 47 | there 48 | these 49 | they 50 | this 51 | to 52 | was 53 | will 54 | with 55 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/hit_grouped.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Display grouped results 3 | *# 4 | 5 |
6 | 7 |
8 | $grouping.key 9 |
10 | 11 |
12 | Total Matches in Group: $grouping.value.matches 13 |
14 | 15 |
## list of groups 16 | 17 | #foreach ($group in $grouping.value.groups) 18 |
19 | #if($group.groupValue)$group.groupValue#{else}No group#end 20 | 21 | ($group.doclist.numFound) 22 | 23 |
24 | 25 |
28 | #foreach ($doc in $group.doclist) 29 | #set($docId = $doc.getFieldValue('id')) 30 | #if($doc.getFieldValue('name')) 31 | #parse("product_doc.vm") 32 | #elseif($doc.getFieldValue('compName_s')) 33 | #parse("join_doc.vm") 34 | #else 35 | #parse("richtext_doc.vm") 36 | #end 37 | #end 38 |
39 | 40 | #end ## end of foreach group in grouping.value.groups 41 |
## div tag for entire list of groups 42 | 43 |
## end of div class=result-document 44 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_th.txt: -------------------------------------------------------------------------------- 1 | # Thai stopwords from: 2 | # "Opinion Detection in Thai Political News Columns 3 | # Based on Subjectivity Analysis" 4 | # Khampol Sukhum, Supot Nitsuwat, and Choochart Haruechaiyasak 5 | ไว้ 6 | ไม่ 7 | ไป 8 | ได้ 9 | ให้ 10 | ใน 11 | โดย 12 | แห่ง 13 | แล้ว 14 | และ 15 | แรก 16 | แบบ 17 | แต่ 18 | เอง 19 | เห็น 20 | เลย 21 | เริ่ม 22 | เรา 23 | เมื่อ 24 | เพื่อ 25 | เพราะ 26 | เป็นการ 27 | เป็น 28 | เปิดเผย 29 | เปิด 30 | เนื่องจาก 31 | เดียวกัน 32 | เดียว 33 | เช่น 34 | เฉพาะ 35 | เคย 36 | เข้า 37 | เขา 38 | อีก 39 | อาจ 40 | อะไร 41 | ออก 42 | อย่าง 43 | อยู่ 44 | อยาก 45 | หาก 46 | หลาย 47 | หลังจาก 48 | หลัง 49 | หรือ 50 | หนึ่ง 51 | ส่วน 52 | ส่ง 53 | สุด 54 | สําหรับ 55 | ว่า 56 | วัน 57 | ลง 58 | ร่วม 59 | ราย 60 | รับ 61 | ระหว่าง 62 | รวม 63 | ยัง 64 | มี 65 | มาก 66 | มา 67 | พร้อม 68 | พบ 69 | ผ่าน 70 | ผล 71 | บาง 72 | น่า 73 | นี้ 74 | นํา 75 | นั้น 76 | นัก 77 | นอกจาก 78 | ทุก 79 | ที่สุด 80 | ที่ 81 | ทําให้ 82 | ทํา 83 | ทาง 84 | ทั้งนี้ 85 | ทั้ง 86 | ถ้า 87 | ถูก 88 | ถึง 89 | ต้อง 90 | ต่างๆ 91 | ต่าง 92 | ต่อ 93 | ตาม 94 | ตั้งแต่ 95 | ตั้ง 96 | ด้าน 97 | ด้วย 98 | ดัง 99 | ซึ่ง 100 | ช่วง 101 | จึง 102 | จาก 103 | จัด 104 | จะ 105 | คือ 106 | ความ 107 | ครั้ง 108 | คง 109 | ขึ้น 110 | ของ 111 | ขอ 112 | ขณะ 113 | ก่อน 114 | ก็ 115 | การ 116 | กับ 117 | กัน 118 | กว่า 119 | กล่าว 120 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/tabs.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Provides navigation/access to Advanced search options 3 | * Usually displayed near the top of the page 4 | *# 5 | 6 | ##TODO: Make some nice tabs here 7 | 8 | #set($queryOpts = $params.get("queryOpts")) 9 | 10 |
11 | 12 | Type of Search: 13 | 14 | ##queryOpts=$queryOpts 15 | 16 | ## return to Simple Search 17 | ##set( $selected = ($queryOpts && $queryOpts != "") ) 18 | #set( $selected = ! $queryOpts ) 19 | 20 | #if($selected) 21 | Simple 22 | #else 23 | 24 | Simple 25 | #end 26 | 27 | 28 | ## GEO-Spatial / Location Based 29 | #set( $selected = ($queryOpts == "spatial") ) 30 | 31 | #if($selected) 32 | Spatial 33 | #else 34 | 35 | Spatial 36 | #end 37 | 38 | 39 | ## Group By Field 40 | #set( $selected = ($queryOpts == "group") ) 41 | 42 | #if($selected) 43 | Group By 44 | #else 45 | 46 | Group By 47 | #end 48 | 49 | 50 |
51 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/elevate.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/footer.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Render the bottom section of the page visible to users 3 | *# 4 | 5 |
6 |
7 | Options: 8 | 9 | #if($request.params.get('debugQuery')) 10 | 11 | disable debug 12 | #else 13 | 14 | enable debug 15 | #end 16 | - 17 | #if($annotate) 18 | 19 | disable annotation 20 | #else 21 | 22 | enable annotation 23 | #end 24 | - 25 | 26 | XML results 27 | 28 |
29 | 30 |
31 | Generated by VelocityResponseWriter 32 |
33 |
34 | Documentation: 35 | Solr Home Page, 36 | Solr Wiki 37 |
38 |
39 | Disclaimer: 40 | The locations displayed in this demonstration are purely fictional. 41 | It is more than likely that no store with the items listed actually 42 | exists at that location! 43 |
44 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/head.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Provide elements for the section of the HTML document 3 | *# 4 | 5 | ## An example of using an arbitrary request parameter 6 | #param('title') 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 36 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_ar.txt: -------------------------------------------------------------------------------- 1 | # This file was created by Jacques Savoy and is distributed under the BSD license. 2 | # See http://members.unine.ch/jacques.savoy/clef/index.html. 3 | # Also see http://www.opensource.org/licenses/bsd-license.html 4 | # Cleaned on October 11, 2009 (not normalized, so use before normalization) 5 | # This means that when modifying this list, you might need to add some 6 | # redundant entries, for example containing forms with both أ and ا 7 | من 8 | ومن 9 | منها 10 | منه 11 | في 12 | وفي 13 | فيها 14 | فيه 15 | و 16 | ف 17 | ثم 18 | او 19 | أو 20 | ب 21 | بها 22 | به 23 | ا 24 | أ 25 | اى 26 | اي 27 | أي 28 | أى 29 | لا 30 | ولا 31 | الا 32 | ألا 33 | إلا 34 | لكن 35 | ما 36 | وما 37 | كما 38 | فما 39 | عن 40 | مع 41 | اذا 42 | إذا 43 | ان 44 | أن 45 | إن 46 | انها 47 | أنها 48 | إنها 49 | انه 50 | أنه 51 | إنه 52 | بان 53 | بأن 54 | فان 55 | فأن 56 | وان 57 | وأن 58 | وإن 59 | التى 60 | التي 61 | الذى 62 | الذي 63 | الذين 64 | الى 65 | الي 66 | إلى 67 | إلي 68 | على 69 | عليها 70 | عليه 71 | اما 72 | أما 73 | إما 74 | ايضا 75 | أيضا 76 | كل 77 | وكل 78 | لم 79 | ولم 80 | لن 81 | ولن 82 | هى 83 | هي 84 | هو 85 | وهى 86 | وهي 87 | وهو 88 | فهى 89 | فهي 90 | فهو 91 | انت 92 | أنت 93 | لك 94 | لها 95 | له 96 | هذه 97 | هذا 98 | تلك 99 | ذلك 100 | هناك 101 | كانت 102 | كان 103 | يكون 104 | تكون 105 | وكانت 106 | وكان 107 | غير 108 | بعض 109 | قد 110 | نحو 111 | بين 112 | بينما 113 | منذ 114 | ضمن 115 | حيث 116 | الان 117 | الآن 118 | خلال 119 | بعد 120 | قبل 121 | حتى 122 | عند 123 | عندما 124 | لدى 125 | جميع 126 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/update-script.js: -------------------------------------------------------------------------------- 1 | /* 2 | This is a basic skeleton JavaScript update processor. 3 | 4 | In order for this to be executed, it must be properly wired into solrconfig.xml; by default it is commented out in 5 | the example solrconfig.xml and must be uncommented to be enabled. 6 | 7 | See http://wiki.apache.org/solr/ScriptUpdateProcessor for more details. 8 | */ 9 | 10 | function processAdd(cmd) { 11 | 12 | doc = cmd.solrDoc; // org.apache.solr.common.SolrInputDocument 13 | id = doc.getFieldValue("id"); 14 | logger.info("update-script#processAdd: id=" + id); 15 | 16 | // Set a field value: 17 | // doc.setField("foo_s", "whatever"); 18 | 19 | // Get a configuration parameter: 20 | // config_param = params.get('config_param'); // "params" only exists if processor configured with 21 | 22 | // Get a request parameter: 23 | // some_param = req.getParams().get("some_param") 24 | 25 | // Add a field of field names that match a pattern: 26 | // - Potentially useful to determine the fields/attributes represented in a result set, via faceting on field_name_ss 27 | // field_names = doc.getFieldNames().toArray(); 28 | // for(i=0; i < field_names.length; i++) { 29 | // field_name = field_names[i]; 30 | // if (/attr_.*/.test(field_name)) { doc.addField("attribute_ss", field_names[i]); } 31 | // } 32 | 33 | } 34 | 35 | function processDelete(cmd) { 36 | // no-op 37 | } 38 | 39 | function processMergeIndexes(cmd) { 40 | // no-op 41 | } 42 | 43 | function processCommit(cmd) { 44 | // no-op 45 | } 46 | 47 | function processRollback(cmd) { 48 | // no-op 49 | } 50 | 51 | function finish() { 52 | // no-op 53 | } 54 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/product_doc.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Render a hit representing a Product 3 | * assumed to have a field called "name" 4 | *# 5 | 6 |
#field('name') #if($params.getBool('mlt', false) == false)More Like This#end
7 | ##do we have a physical store for this product 8 | #set($store = $doc.getFieldValue('store')) 9 | #if($store)#end 10 |
Id: #field('id')
11 |
Price: #field('price_c')
12 |
Features: #field('features')
13 |
In Stock: #field('inStock')
14 |
15 | #set($mlt = $mltResults.get($docId)) 16 | #set($mltOn = $params.getBool('mlt')) 17 | #if($mltOn == true)
Similar Items
#end 18 | #if ($mltOn && $mlt && $mlt.size() > 0) 19 |
    20 | #foreach($mltHit in $mlt) 21 | #set($mltId = $mltHit.getFieldValue('id')) 22 |
  • Name: $mltHit.getFieldValue('name')
    23 |
    Price: $!number.currency($mltHit.getFieldValue('price')) In Stock: $mltHit.getFieldValue('inStock')
    24 | 25 |
  • 26 | #end 27 |
28 | #elseif($mltOn && $mlt.size() == 0) 29 |
No Similar Items Found
30 | #end 31 |
32 | #parse('debug.vm') 33 | -------------------------------------------------------------------------------- /ckanext/wotkit/theme/templates/package/read.html: -------------------------------------------------------------------------------- 1 | {% extends "package/read_base.html" %} 2 | 3 | {% set pkg = c.pkg_dict %} 4 | 5 | {% block subtitle %}{{ pkg.title or pkg.name }}{% endblock %} 6 | 7 | {% block primary_content_inner %} 8 | {{ super() }} 9 | {% block package_description %} 10 | {%if pkg.pkg_invisible == 'True' %} 11 | 12 | 13 | {{ _('Private') }} 14 | 15 | {% elif pkg.private %} 16 | 17 | 18 | {{ _('Organization Private') }} 19 | 20 | {% endif %} 21 | 22 |

23 | {% block page_heading %} 24 | {{ pkg.title or pkg.name }} 25 | {% if pkg.state.startswith('draft') %} 26 | [{{ _('Draft') }}] 27 | {% endif %} 28 | {% endblock %} 29 |

30 | {% block package_notes %} 31 | {% if c.pkg_notes_formatted %} 32 |
33 | {{ c.pkg_notes_formatted }} 34 |
35 | {% endif %} 36 | {% endblock %} 37 | {# FIXME why is this here? seems wrong #} 38 | 39 | {% endblock %} 40 | 41 | {% block package_resources %} 42 | {% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources %} 43 | {% endblock %} 44 | 45 | {% block package_tags %} 46 | {% snippet "package/snippets/tags.html", tags=pkg.tags %} 47 | {% endblock %} 48 | 49 | {% block package_additional_info %} 50 | {% snippet "package/snippets/additional_info.html", pkg_dict=pkg %} 51 | {% endblock %} 52 | 53 | {% endblock %} 54 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_gl.txt: -------------------------------------------------------------------------------- 1 | # galican stopwords 2 | a 3 | aínda 4 | alí 5 | aquel 6 | aquela 7 | aquelas 8 | aqueles 9 | aquilo 10 | aquí 11 | ao 12 | aos 13 | as 14 | así 15 | á 16 | ben 17 | cando 18 | che 19 | co 20 | coa 21 | comigo 22 | con 23 | connosco 24 | contigo 25 | convosco 26 | coas 27 | cos 28 | cun 29 | cuns 30 | cunha 31 | cunhas 32 | da 33 | dalgunha 34 | dalgunhas 35 | dalgún 36 | dalgúns 37 | das 38 | de 39 | del 40 | dela 41 | delas 42 | deles 43 | desde 44 | deste 45 | do 46 | dos 47 | dun 48 | duns 49 | dunha 50 | dunhas 51 | e 52 | el 53 | ela 54 | elas 55 | eles 56 | en 57 | era 58 | eran 59 | esa 60 | esas 61 | ese 62 | eses 63 | esta 64 | estar 65 | estaba 66 | está 67 | están 68 | este 69 | estes 70 | estiven 71 | estou 72 | eu 73 | é 74 | facer 75 | foi 76 | foron 77 | fun 78 | había 79 | hai 80 | iso 81 | isto 82 | la 83 | las 84 | lle 85 | lles 86 | lo 87 | los 88 | mais 89 | me 90 | meu 91 | meus 92 | min 93 | miña 94 | miñas 95 | moi 96 | na 97 | nas 98 | neste 99 | nin 100 | no 101 | non 102 | nos 103 | nosa 104 | nosas 105 | noso 106 | nosos 107 | nós 108 | nun 109 | nunha 110 | nuns 111 | nunhas 112 | o 113 | os 114 | ou 115 | ó 116 | ós 117 | para 118 | pero 119 | pode 120 | pois 121 | pola 122 | polas 123 | polo 124 | polos 125 | por 126 | que 127 | se 128 | senón 129 | ser 130 | seu 131 | seus 132 | sexa 133 | sido 134 | sobre 135 | súa 136 | súas 137 | tamén 138 | tan 139 | te 140 | ten 141 | teñen 142 | teño 143 | ter 144 | teu 145 | teus 146 | ti 147 | tido 148 | tiña 149 | tiven 150 | túa 151 | túas 152 | un 153 | unha 154 | unhas 155 | uns 156 | vos 157 | vosa 158 | vosas 159 | voso 160 | vosos 161 | vós 162 | -------------------------------------------------------------------------------- /ckanext/wotkit/theme/templates/user/new_user_form.html: -------------------------------------------------------------------------------- 1 | {% import "macros/form.html" as form %} 2 | 3 |
4 | {{ form.errors(error_summary) }} 5 | {{ form.input("name", id="field-username", label=_("Username"), placeholder="username", value=data.name, error=errors.name, classes=["control-medium"]) }} 6 | {{ form.input("fullname", id="field-fullname", label=_("Full Name"), placeholder="Joe Bloggs", value=data.fullname, error=errors.fullname, classes=["control-medium"]) }} 7 | {{ form.input("email", id="field-email", label=_("Email"), type="email", placeholder="joe@example.com", value=data.email, error=errors.email, classes=["control-medium"]) }} 8 | {{ form.input("password1", id="field-password", label=_("Password"), type="password", placeholder="••••••••", value=data.password1, error=errors.password1, classes=["control-medium"]) }} 9 | {{ form.input("password2", id="field-confirm-password", label=_("Confirm"), type="password", placeholder="••••••••", value=data.password2, error=errors.password1, classes=["control-medium"]) }} 10 |
11 | 12 |
13 | 22 |
23 |
24 | 25 |
26 | 27 |
28 |
29 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_cz.txt: -------------------------------------------------------------------------------- 1 | a 2 | s 3 | k 4 | o 5 | i 6 | u 7 | v 8 | z 9 | dnes 10 | cz 11 | tímto 12 | budeš 13 | budem 14 | byli 15 | jseš 16 | můj 17 | svým 18 | ta 19 | tomto 20 | tohle 21 | tuto 22 | tyto 23 | jej 24 | zda 25 | proč 26 | máte 27 | tato 28 | kam 29 | tohoto 30 | kdo 31 | kteří 32 | mi 33 | nám 34 | tom 35 | tomuto 36 | mít 37 | nic 38 | proto 39 | kterou 40 | byla 41 | toho 42 | protože 43 | asi 44 | ho 45 | naši 46 | napište 47 | re 48 | což 49 | tím 50 | takže 51 | svých 52 | její 53 | svými 54 | jste 55 | aj 56 | tu 57 | tedy 58 | teto 59 | bylo 60 | kde 61 | ke 62 | pravé 63 | ji 64 | nad 65 | nejsou 66 | či 67 | pod 68 | téma 69 | mezi 70 | přes 71 | ty 72 | pak 73 | vám 74 | ani 75 | když 76 | však 77 | neg 78 | jsem 79 | tento 80 | článku 81 | články 82 | aby 83 | jsme 84 | před 85 | pta 86 | jejich 87 | byl 88 | ještě 89 | až 90 | bez 91 | také 92 | pouze 93 | první 94 | vaše 95 | která 96 | nás 97 | nový 98 | tipy 99 | pokud 100 | může 101 | strana 102 | jeho 103 | své 104 | jiné 105 | zprávy 106 | nové 107 | není 108 | vás 109 | jen 110 | podle 111 | zde 112 | už 113 | být 114 | více 115 | bude 116 | již 117 | než 118 | který 119 | by 120 | které 121 | co 122 | nebo 123 | ten 124 | tak 125 | má 126 | při 127 | od 128 | po 129 | jsou 130 | jak 131 | další 132 | ale 133 | si 134 | se 135 | ve 136 | to 137 | jako 138 | za 139 | zpět 140 | ze 141 | do 142 | pro 143 | je 144 | na 145 | atd 146 | atp 147 | jakmile 148 | přičemž 149 | já 150 | on 151 | ona 152 | ono 153 | oni 154 | ony 155 | my 156 | vy 157 | jí 158 | ji 159 | mě 160 | mne 161 | jemu 162 | tomu 163 | těm 164 | těmu 165 | němu 166 | němuž 167 | jehož 168 | jíž 169 | jelikož 170 | jež 171 | jakož 172 | načež 173 | -------------------------------------------------------------------------------- /ckanext/wotkit/auth.py: -------------------------------------------------------------------------------- 1 | import ckan.plugins as p 2 | from ckan.common import OrderedDict, _, json, request, c, g, response 3 | 4 | import pprint 5 | 6 | # This is the main auth function that will check if the dataset is invisible to the current user 7 | def _package_invisible_check_auth(context, pkg_dict): 8 | if not 'id' in pkg_dict: 9 | pkg_dict['id'] = pkg_dict.get('resource_id') 10 | 11 | user = c.userobj 12 | 13 | if 'pkg_invisible' not in pkg_dict or pkg_dict['pkg_invisible'] == 'False': 14 | return {'success' : True} 15 | elif user is None: 16 | return { 17 | 'success': False, 18 | 'msg': p.toolkit._('User not authorized to view or update package') 19 | } 20 | else: 21 | if 'pkg_creator' not in pkg_dict: 22 | return { 23 | 'success': False, 24 | 'msg': p.toolkit._('User {0} not authorized to view or update package {1}' 25 | .format(str(user), pkg_dict['id'])) 26 | } 27 | else: 28 | if pkg_dict['pkg_creator'] == user.id: 29 | return {'success' : True} 30 | else: 31 | return { 32 | 'success': False, 33 | 'msg': p.toolkit._('User {0} not authorized to view or update package {1}' 34 | .format(str(user), pkg_dict['id'])) 35 | } 36 | 37 | def invisible_package_search(context, pkg_dict): 38 | return _package_invisible_check_auth(context, pkg_dict) 39 | 40 | def invisible_package_show(context, pkg_dict): 41 | return _package_invisible_check_auth(context, pkg_dict) 42 | 43 | def require_creator_to_update(context, pkg_dict): 44 | user = c.userobj 45 | 46 | # If user is not logged in, return false 47 | if user is None: 48 | return {'success': False} 49 | 50 | # If creator field is not set (legacy data), return true 51 | if 'pkg_creator' not in c.pkg_dict: 52 | return {'success' : True} 53 | 54 | # If current user is the creator, return true 55 | if user.id != c.pkg_dict['pkg_creator']: 56 | return {'success': False} 57 | else: 58 | return {'success' : True} 59 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_ja.txt: -------------------------------------------------------------------------------- 1 | # 2 | # This file defines a stopword set for Japanese. 3 | # 4 | # This set is made up of hand-picked frequent terms from segmented Japanese Wikipedia. 5 | # Punctuation characters and frequent kanji have mostly been left out. See LUCENE-3745 6 | # for frequency lists, etc. that can be useful for making your own set (if desired) 7 | # 8 | # Note that there is an overlap between these stopwords and the terms stopped when used 9 | # in combination with the JapanesePartOfSpeechStopFilter. When editing this file, note 10 | # that comments are not allowed on the same line as stopwords. 11 | # 12 | # Also note that stopping is done in a case-insensitive manner. Change your StopFilter 13 | # configuration if you need case-sensitive stopping. Lastly, note that stopping is done 14 | # using the same character width as the entries in this file. Since this StopFilter is 15 | # normally done after a CJKWidthFilter in your chain, you would usually want your romaji 16 | # entries to be in half-width and your kana entries to be in full-width. 17 | # 18 | の 19 | に 20 | は 21 | を 22 | た 23 | が 24 | で 25 | て 26 | と 27 | し 28 | れ 29 | さ 30 | ある 31 | いる 32 | も 33 | する 34 | から 35 | な 36 | こと 37 | として 38 | い 39 | や 40 | れる 41 | など 42 | なっ 43 | ない 44 | この 45 | ため 46 | その 47 | あっ 48 | よう 49 | また 50 | もの 51 | という 52 | あり 53 | まで 54 | られ 55 | なる 56 | へ 57 | か 58 | だ 59 | これ 60 | によって 61 | により 62 | おり 63 | より 64 | による 65 | ず 66 | なり 67 | られる 68 | において 69 | ば 70 | なかっ 71 | なく 72 | しかし 73 | について 74 | せ 75 | だっ 76 | その後 77 | できる 78 | それ 79 | う 80 | ので 81 | なお 82 | のみ 83 | でき 84 | き 85 | つ 86 | における 87 | および 88 | いう 89 | さらに 90 | でも 91 | ら 92 | たり 93 | その他 94 | に関する 95 | たち 96 | ます 97 | ん 98 | なら 99 | に対して 100 | 特に 101 | せる 102 | 及び 103 | これら 104 | とき 105 | では 106 | にて 107 | ほか 108 | ながら 109 | うち 110 | そして 111 | とともに 112 | ただし 113 | かつて 114 | それぞれ 115 | または 116 | お 117 | ほど 118 | ものの 119 | に対する 120 | ほとんど 121 | と共に 122 | といった 123 | です 124 | とも 125 | ところ 126 | ここ 127 | ##### End of file 128 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/query.vm: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | Find: 5 |
Boost by Price 6 | #parse("querySpatial.vm") 7 | #parse("queryGroup.vm") 8 |
9 |
10 | 11 | #if($request.params.get('debugQuery')) 12 | 13 | #end 14 | #if($annotate == true) 15 | 16 | #end 17 | #foreach($fq in $request.params.getParams('fq')) 18 | #if ($fq != "{!bbox}") 19 | 20 | #end 21 | #end 22 |
23 | #foreach($fq in $params.getParams('fq')) 24 | #set($previous_fq_count=$velocityCount - 1) 25 | #if($fq != '') 26 | > $fq 27 | #end 28 | #end 29 |
30 |
31 | #if($request.params.get('debugQuery')) 32 | toggle parsed query 33 | 34 | #end 35 | #set($queryOpts = $request.params.get("queryOpts")) 36 | #if($queryOpts && $queryOpts != "") 37 | 38 | #end 39 |
40 |
41 | 42 |
43 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_lv.txt: -------------------------------------------------------------------------------- 1 | # Set of Latvian stopwords from A Stemming Algorithm for Latvian, Karlis Kreslins 2 | # the original list of over 800 forms was refined: 3 | # pronouns, adverbs, interjections were removed 4 | # 5 | # prepositions 6 | aiz 7 | ap 8 | ar 9 | apakš 10 | ārpus 11 | augšpus 12 | bez 13 | caur 14 | dēļ 15 | gar 16 | iekš 17 | iz 18 | kopš 19 | labad 20 | lejpus 21 | līdz 22 | no 23 | otrpus 24 | pa 25 | par 26 | pār 27 | pēc 28 | pie 29 | pirms 30 | pret 31 | priekš 32 | starp 33 | šaipus 34 | uz 35 | viņpus 36 | virs 37 | virspus 38 | zem 39 | apakšpus 40 | # Conjunctions 41 | un 42 | bet 43 | jo 44 | ja 45 | ka 46 | lai 47 | tomēr 48 | tikko 49 | turpretī 50 | arī 51 | kaut 52 | gan 53 | tādēļ 54 | tā 55 | ne 56 | tikvien 57 | vien 58 | kā 59 | ir 60 | te 61 | vai 62 | kamēr 63 | # Particles 64 | ar 65 | diezin 66 | droši 67 | diemžēl 68 | nebūt 69 | ik 70 | it 71 | taču 72 | nu 73 | pat 74 | tiklab 75 | iekšpus 76 | nedz 77 | tik 78 | nevis 79 | turpretim 80 | jeb 81 | iekam 82 | iekām 83 | iekāms 84 | kolīdz 85 | līdzko 86 | tiklīdz 87 | jebšu 88 | tālab 89 | tāpēc 90 | nekā 91 | itin 92 | jā 93 | jau 94 | jel 95 | nē 96 | nezin 97 | tad 98 | tikai 99 | vis 100 | tak 101 | iekams 102 | vien 103 | # modal verbs 104 | būt 105 | biju 106 | biji 107 | bija 108 | bijām 109 | bijāt 110 | esmu 111 | esi 112 | esam 113 | esat 114 | būšu 115 | būsi 116 | būs 117 | būsim 118 | būsiet 119 | tikt 120 | tiku 121 | tiki 122 | tika 123 | tikām 124 | tikāt 125 | tieku 126 | tiec 127 | tiek 128 | tiekam 129 | tiekat 130 | tikšu 131 | tiks 132 | tiksim 133 | tiksiet 134 | tapt 135 | tapi 136 | tapāt 137 | topat 138 | tapšu 139 | tapsi 140 | taps 141 | tapsim 142 | tapsiet 143 | kļūt 144 | kļuvu 145 | kļuvi 146 | kļuva 147 | kļuvām 148 | kļuvāt 149 | kļūstu 150 | kļūsti 151 | kļūst 152 | kļūstam 153 | kļūstat 154 | kļūšu 155 | kļūsi 156 | kļūs 157 | kļūsim 158 | kļūsiet 159 | # verbs 160 | varēt 161 | varēju 162 | varējām 163 | varēšu 164 | varēsim 165 | var 166 | varēji 167 | varējāt 168 | varēsi 169 | varēsiet 170 | varat 171 | varēja 172 | varēs 173 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_bg.txt: -------------------------------------------------------------------------------- 1 | # This file was created by Jacques Savoy and is distributed under the BSD license. 2 | # See http://members.unine.ch/jacques.savoy/clef/index.html. 3 | # Also see http://www.opensource.org/licenses/bsd-license.html 4 | а 5 | аз 6 | ако 7 | ала 8 | бе 9 | без 10 | беше 11 | би 12 | бил 13 | била 14 | били 15 | било 16 | близо 17 | бъдат 18 | бъде 19 | бяха 20 | в 21 | вас 22 | ваш 23 | ваша 24 | вероятно 25 | вече 26 | взема 27 | ви 28 | вие 29 | винаги 30 | все 31 | всеки 32 | всички 33 | всичко 34 | всяка 35 | във 36 | въпреки 37 | върху 38 | г 39 | ги 40 | главно 41 | го 42 | д 43 | да 44 | дали 45 | до 46 | докато 47 | докога 48 | дори 49 | досега 50 | доста 51 | е 52 | едва 53 | един 54 | ето 55 | за 56 | зад 57 | заедно 58 | заради 59 | засега 60 | затова 61 | защо 62 | защото 63 | и 64 | из 65 | или 66 | им 67 | има 68 | имат 69 | иска 70 | й 71 | каза 72 | как 73 | каква 74 | какво 75 | както 76 | какъв 77 | като 78 | кога 79 | когато 80 | което 81 | които 82 | кой 83 | който 84 | колко 85 | която 86 | къде 87 | където 88 | към 89 | ли 90 | м 91 | ме 92 | между 93 | мен 94 | ми 95 | мнозина 96 | мога 97 | могат 98 | може 99 | моля 100 | момента 101 | му 102 | н 103 | на 104 | над 105 | назад 106 | най 107 | направи 108 | напред 109 | например 110 | нас 111 | не 112 | него 113 | нея 114 | ни 115 | ние 116 | никой 117 | нито 118 | но 119 | някои 120 | някой 121 | няма 122 | обаче 123 | около 124 | освен 125 | особено 126 | от 127 | отгоре 128 | отново 129 | още 130 | пак 131 | по 132 | повече 133 | повечето 134 | под 135 | поне 136 | поради 137 | после 138 | почти 139 | прави 140 | пред 141 | преди 142 | през 143 | при 144 | пък 145 | първо 146 | с 147 | са 148 | само 149 | се 150 | сега 151 | си 152 | скоро 153 | след 154 | сме 155 | според 156 | сред 157 | срещу 158 | сте 159 | съм 160 | със 161 | също 162 | т 163 | тази 164 | така 165 | такива 166 | такъв 167 | там 168 | твой 169 | те 170 | тези 171 | ти 172 | тн 173 | то 174 | това 175 | тогава 176 | този 177 | той 178 | толкова 179 | точно 180 | трябва 181 | тук 182 | тъй 183 | тя 184 | тях 185 | у 186 | харесва 187 | ч 188 | че 189 | често 190 | чрез 191 | ще 192 | щом 193 | я 194 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_ckb.txt: -------------------------------------------------------------------------------- 1 | # set of kurdish stopwords 2 | # note these have been normalized with our scheme (e represented with U+06D5, etc) 3 | # constructed from: 4 | # * Fig 5 of "Building A Test Collection For Sorani Kurdish" (Esmaili et al) 5 | # * "Sorani Kurdish: A Reference Grammar with selected readings" (Thackston) 6 | # * Corpus-based analysis of 77M word Sorani collection: wikipedia, news, blogs, etc 7 | 8 | # and 9 | و 10 | # which 11 | کە 12 | # of 13 | ی 14 | # made/did 15 | کرد 16 | # that/which 17 | ئەوەی 18 | # on/head 19 | سەر 20 | # two 21 | دوو 22 | # also 23 | هەروەها 24 | # from/that 25 | لەو 26 | # makes/does 27 | دەکات 28 | # some 29 | چەند 30 | # every 31 | هەر 32 | 33 | # demonstratives 34 | # that 35 | ئەو 36 | # this 37 | ئەم 38 | 39 | # personal pronouns 40 | # I 41 | من 42 | # we 43 | ئێمە 44 | # you 45 | تۆ 46 | # you 47 | ئێوە 48 | # he/she/it 49 | ئەو 50 | # they 51 | ئەوان 52 | 53 | # prepositions 54 | # to/with/by 55 | بە 56 | پێ 57 | # without 58 | بەبێ 59 | # along with/while/during 60 | بەدەم 61 | # in the opinion of 62 | بەلای 63 | # according to 64 | بەپێی 65 | # before 66 | بەرلە 67 | # in the direction of 68 | بەرەوی 69 | # in front of/toward 70 | بەرەوە 71 | # before/in the face of 72 | بەردەم 73 | # without 74 | بێ 75 | # except for 76 | بێجگە 77 | # for 78 | بۆ 79 | # on/in 80 | دە 81 | تێ 82 | # with 83 | دەگەڵ 84 | # after 85 | دوای 86 | # except for/aside from 87 | جگە 88 | # in/from 89 | لە 90 | لێ 91 | # in front of/before/because of 92 | لەبەر 93 | # between/among 94 | لەبەینی 95 | # concerning/about 96 | لەبابەت 97 | # concerning 98 | لەبارەی 99 | # instead of 100 | لەباتی 101 | # beside 102 | لەبن 103 | # instead of 104 | لەبرێتی 105 | # behind 106 | لەدەم 107 | # with/together with 108 | لەگەڵ 109 | # by 110 | لەلایەن 111 | # within 112 | لەناو 113 | # between/among 114 | لەنێو 115 | # for the sake of 116 | لەپێناوی 117 | # with respect to 118 | لەرەوی 119 | # by means of/for 120 | لەرێ 121 | # for the sake of 122 | لەرێگا 123 | # on/on top of/according to 124 | لەسەر 125 | # under 126 | لەژێر 127 | # between/among 128 | ناو 129 | # between/among 130 | نێوان 131 | # after 132 | پاش 133 | # before 134 | پێش 135 | # like 136 | وەک 137 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/query_spatial.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Query logic for selecting location / Geospatial search 3 | *# 4 | 5 | #set($queryOpts = $params.get("queryOpts")) 6 | 7 | #if($queryOpts == "spatial") 8 | 9 |
10 | 11 | #set($loc = $request.params.get('pt')) 12 | ## Normalize first trip through to "none" because 13 | ## an empty string generates an error message later on 14 | #if( ! $loc ) 15 | #set( $loc = "none" ) 16 | #end 17 | 18 | #set($dist = $request.params.get('d', "10")) 19 | 20 | ## Cities for The Select List 21 | #set( $cities = { 22 | "none": "No Filter", 23 | "45.17614,-93.87341": "Buffalo, MN", 24 | "37.7752,-100.0232": "Dodge City, KS", 25 | "35.0752,-97.032": "Oklahoma City, OK", 26 | "37.7752,-122.4232": "San Francisco CA" 27 | }) 28 | 29 | 46 | 47 | 48 | Distance (KM): 49 | 52 | 53 | 54 | 55 | 56 | 57 | 58 |
59 | 60 | 74 | 75 | #end 76 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/README.txt: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | 17 | Example SolrCore Instance Directory 18 | ============================= 19 | 20 | This directory is provided as an example of what an "Instance Directory" 21 | should look like for a SolrCore 22 | 23 | It's not strictly necessary that you copy all of the files in this 24 | directory when setting up a new SolrCores, but it is recommended. 25 | 26 | 27 | Basic Directory Structure 28 | ------------------------- 29 | 30 | The Solr Home directory typically contains the following sub-directories... 31 | 32 | conf/ 33 | This directory is mandatory and must contain your solrconfig.xml 34 | and schema.xml. Any other optional configuration files would also 35 | be kept here. 36 | 37 | data/ 38 | This directory is the default location where Solr will keep your 39 | index, and is used by the replication scripts for dealing with 40 | snapshots. You can override this location in the 41 | conf/solrconfig.xml. Solr will create this directory if it does not 42 | already exist. 43 | 44 | lib/ 45 | This directory is optional. If it exists, Solr will load any Jars 46 | found in this directory and use them to resolve any "plugins" 47 | specified in your solrconfig.xml or schema.xml (ie: Analyzers, 48 | Request Handlers, etc...). Alternatively you can use the 49 | syntax in conf/solrconfig.xml to direct Solr to your plugins. See 50 | the example conf/solrconfig.xml file for details. 51 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/query_form.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Renders the main query form 3 | *# 4 | 5 |
6 |
7 | 8 |
9 | 10 | Find: 11 | 12 | 13 | 14 | 15 |
16 | 17 | 20 | Boost by Price 21 | 22 | 23 | #parse("query_spatial.vm") 24 | #parse("query_group.vm") 25 |
26 |
27 | 28 | #if($request.params.get('debugQuery')) 29 | 30 | #end 31 | #if($annotate == true) 32 | 33 | #end 34 | #foreach($fq in $request.params.getParams('fq')) 35 | #if ($fq != "{!bbox}") 36 | 37 | #end 38 | #end 39 | 40 |
41 | #foreach($fq in $params.getParams('fq')) 42 | #set($previous_fq_count=$velocityCount - 1) 43 | #if($fq != '') 44 | > 45 | $fq 48 | #end 49 | #end 50 |
51 | 52 |
53 | #if($request.params.get('debugQuery')) 54 | toggle parsed query 55 | 56 | #end 57 | #set($queryOpts = $request.params.get("queryOpts")) 58 | #if($queryOpts && $queryOpts != "") 59 | 60 | #end 61 |
62 | 63 |
64 |
65 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_ca.txt: -------------------------------------------------------------------------------- 1 | # Catalan stopwords from http://github.com/vcl/cue.language (Apache 2 Licensed) 2 | a 3 | abans 4 | ací 5 | ah 6 | així 7 | això 8 | al 9 | als 10 | aleshores 11 | algun 12 | alguna 13 | algunes 14 | alguns 15 | alhora 16 | allà 17 | allí 18 | allò 19 | altra 20 | altre 21 | altres 22 | amb 23 | ambdós 24 | ambdues 25 | apa 26 | aquell 27 | aquella 28 | aquelles 29 | aquells 30 | aquest 31 | aquesta 32 | aquestes 33 | aquests 34 | aquí 35 | baix 36 | cada 37 | cadascú 38 | cadascuna 39 | cadascunes 40 | cadascuns 41 | com 42 | contra 43 | d'un 44 | d'una 45 | d'unes 46 | d'uns 47 | dalt 48 | de 49 | del 50 | dels 51 | des 52 | després 53 | dins 54 | dintre 55 | donat 56 | doncs 57 | durant 58 | e 59 | eh 60 | el 61 | els 62 | em 63 | en 64 | encara 65 | ens 66 | entre 67 | érem 68 | eren 69 | éreu 70 | es 71 | és 72 | esta 73 | està 74 | estàvem 75 | estaven 76 | estàveu 77 | esteu 78 | et 79 | etc 80 | ets 81 | fins 82 | fora 83 | gairebé 84 | ha 85 | han 86 | has 87 | havia 88 | he 89 | hem 90 | heu 91 | hi 92 | ho 93 | i 94 | igual 95 | iguals 96 | ja 97 | l'hi 98 | la 99 | les 100 | li 101 | li'n 102 | llavors 103 | m'he 104 | ma 105 | mal 106 | malgrat 107 | mateix 108 | mateixa 109 | mateixes 110 | mateixos 111 | me 112 | mentre 113 | més 114 | meu 115 | meus 116 | meva 117 | meves 118 | molt 119 | molta 120 | moltes 121 | molts 122 | mon 123 | mons 124 | n'he 125 | n'hi 126 | ne 127 | ni 128 | no 129 | nogensmenys 130 | només 131 | nosaltres 132 | nostra 133 | nostre 134 | nostres 135 | o 136 | oh 137 | oi 138 | on 139 | pas 140 | pel 141 | pels 142 | per 143 | però 144 | perquè 145 | poc 146 | poca 147 | pocs 148 | poques 149 | potser 150 | propi 151 | qual 152 | quals 153 | quan 154 | quant 155 | que 156 | què 157 | quelcom 158 | qui 159 | quin 160 | quina 161 | quines 162 | quins 163 | s'ha 164 | s'han 165 | sa 166 | semblant 167 | semblants 168 | ses 169 | seu 170 | seus 171 | seva 172 | seva 173 | seves 174 | si 175 | sobre 176 | sobretot 177 | sóc 178 | solament 179 | sols 180 | son 181 | són 182 | sons 183 | sota 184 | sou 185 | t'ha 186 | t'han 187 | t'he 188 | ta 189 | tal 190 | també 191 | tampoc 192 | tan 193 | tant 194 | tanta 195 | tantes 196 | teu 197 | teus 198 | teva 199 | teves 200 | ton 201 | tons 202 | tot 203 | tota 204 | totes 205 | tots 206 | un 207 | una 208 | unes 209 | uns 210 | us 211 | va 212 | vaig 213 | vam 214 | van 215 | vas 216 | veu 217 | vosaltres 218 | vostra 219 | vostre 220 | vostres 221 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/xslt/example_rss.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 23 | 24 | 26 | 27 | 32 | 33 | 34 | 35 | Example Solr RSS 2.0 Feed 36 | http://localhost:8983/solr 37 | 38 | This has been formatted by the sample "example_rss.xsl" transform - 39 | use your own XSLT to get a nicer RSS feed. 40 | 41 | en-us 42 | http://localhost:8983/solr 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | <xsl:value-of select="str[@name='name']"/> 54 | 55 | http://localhost:8983/solr/select?q=id: 56 | 57 | 58 | 59 | 60 | 61 | 62 | http://localhost:8983/solr/select?q=id: 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /ckanext/wotkit/validators.py: -------------------------------------------------------------------------------- 1 | ################################################### 2 | # 3 | # Additional validators used by the plugin 4 | # 5 | ################################################### 6 | import re 7 | import ckan.lib.navl.dictization_functions as df 8 | import ckan.plugins.toolkit as tk 9 | 10 | from ckan.common import OrderedDict, _, json, request, c, g, response 11 | from ckan.model import (MAX_TAG_LENGTH, MIN_TAG_LENGTH, 12 | PACKAGE_NAME_MIN_LENGTH, PACKAGE_NAME_MAX_LENGTH, 13 | PACKAGE_VERSION_MAX_LENGTH, 14 | VOCABULARY_NAME_MAX_LENGTH, 15 | VOCABULARY_NAME_MIN_LENGTH) 16 | 17 | Invalid = df.Invalid 18 | StopOnError = df.StopOnError 19 | Missing = df.Missing 20 | missing = df.missing 21 | 22 | # Makes sure the pkg_creator key is set to the current user ID 23 | def convert_to_extras_custom(key, data, errors, context): 24 | 25 | # get the current number of extras field 26 | unflattened = df.unflatten(data) 27 | 28 | if("extras" in unflattened): 29 | extras_count = len(unflattened['extras']) 30 | else: 31 | extras_count = 0 32 | 33 | data.update({ 34 | ('extras', (extras_count), 'id') : [tk.get_validator('ignore')], 35 | ('extras', (extras_count), 'revision_timestamp') : [tk.get_validator('ignore')], 36 | ('extras', (extras_count), 'state') : [tk.get_validator('ignore')], 37 | ('extras', (extras_count), 'deleted') : [], # this needs to be blank so the fields won't be deleted 38 | }) 39 | 40 | if key[-1] == "pkg_creator": 41 | data.update({ 42 | ('extras', (extras_count), 'key') : key[-1], 43 | ('extras', (extras_count), 'value') : c.userobj.id 44 | }) 45 | elif key[-1] == "pkg_invisible": 46 | if data[key] != ( "True" or "False" ): 47 | data[key] = "False" 48 | data.update({ 49 | ('extras', (extras_count), 'key') : key[-1], 50 | ('extras', (extras_count), 'value') : data[key] 51 | }) 52 | pass 53 | 54 | name_match = re.compile('[a-z0-9_\-]*$') 55 | def name_validator(val, context): 56 | WOTKIT_MIN_NAME_LENGTH = 4 57 | 58 | # check basic textual rules 59 | if val in ['new', 'edit', 'search']: 60 | raise Invalid(_('That name cannot be used')) 61 | 62 | if len(val) < WOTKIT_MIN_NAME_LENGTH: 63 | raise Invalid(_('Name must be at least %s characters long') % WOTKIT_MIN_NAME_LENGTH) 64 | if len(val) > PACKAGE_NAME_MAX_LENGTH: 65 | raise Invalid(_('Name must be a maximum of %i characters long') % PACKAGE_NAME_MAX_LENGTH) 66 | if not name_match.match(val): 67 | raise Invalid(_('Url must be purely lowercase alphanumeric ' 68 | '(ascii) characters and these symbols: -_')) 69 | return val -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_tr.txt: -------------------------------------------------------------------------------- 1 | # Turkish stopwords from LUCENE-559 2 | # merged with the list from "Information Retrieval on Turkish Texts" 3 | # (http://www.users.muohio.edu/canf/papers/JASIST2008offPrint.pdf) 4 | acaba 5 | altmış 6 | altı 7 | ama 8 | ancak 9 | arada 10 | aslında 11 | ayrıca 12 | bana 13 | bazı 14 | belki 15 | ben 16 | benden 17 | beni 18 | benim 19 | beri 20 | beş 21 | bile 22 | bin 23 | bir 24 | birçok 25 | biri 26 | birkaç 27 | birkez 28 | birşey 29 | birşeyi 30 | biz 31 | bize 32 | bizden 33 | bizi 34 | bizim 35 | böyle 36 | böylece 37 | bu 38 | buna 39 | bunda 40 | bundan 41 | bunlar 42 | bunları 43 | bunların 44 | bunu 45 | bunun 46 | burada 47 | çok 48 | çünkü 49 | da 50 | daha 51 | dahi 52 | de 53 | defa 54 | değil 55 | diğer 56 | diye 57 | doksan 58 | dokuz 59 | dolayı 60 | dolayısıyla 61 | dört 62 | edecek 63 | eden 64 | ederek 65 | edilecek 66 | ediliyor 67 | edilmesi 68 | ediyor 69 | eğer 70 | elli 71 | en 72 | etmesi 73 | etti 74 | ettiği 75 | ettiğini 76 | gibi 77 | göre 78 | halen 79 | hangi 80 | hatta 81 | hem 82 | henüz 83 | hep 84 | hepsi 85 | her 86 | herhangi 87 | herkesin 88 | hiç 89 | hiçbir 90 | için 91 | iki 92 | ile 93 | ilgili 94 | ise 95 | işte 96 | itibaren 97 | itibariyle 98 | kadar 99 | karşın 100 | katrilyon 101 | kendi 102 | kendilerine 103 | kendini 104 | kendisi 105 | kendisine 106 | kendisini 107 | kez 108 | ki 109 | kim 110 | kimden 111 | kime 112 | kimi 113 | kimse 114 | kırk 115 | milyar 116 | milyon 117 | mu 118 | mü 119 | mı 120 | nasıl 121 | ne 122 | neden 123 | nedenle 124 | nerde 125 | nerede 126 | nereye 127 | niye 128 | niçin 129 | o 130 | olan 131 | olarak 132 | oldu 133 | olduğu 134 | olduğunu 135 | olduklarını 136 | olmadı 137 | olmadığı 138 | olmak 139 | olması 140 | olmayan 141 | olmaz 142 | olsa 143 | olsun 144 | olup 145 | olur 146 | olursa 147 | oluyor 148 | on 149 | ona 150 | ondan 151 | onlar 152 | onlardan 153 | onları 154 | onların 155 | onu 156 | onun 157 | otuz 158 | oysa 159 | öyle 160 | pek 161 | rağmen 162 | sadece 163 | sanki 164 | sekiz 165 | seksen 166 | sen 167 | senden 168 | seni 169 | senin 170 | siz 171 | sizden 172 | sizi 173 | sizin 174 | şey 175 | şeyden 176 | şeyi 177 | şeyler 178 | şöyle 179 | şu 180 | şuna 181 | şunda 182 | şundan 183 | şunları 184 | şunu 185 | tarafından 186 | trilyon 187 | tüm 188 | üç 189 | üzere 190 | var 191 | vardı 192 | ve 193 | veya 194 | ya 195 | yani 196 | yapacak 197 | yapılan 198 | yapılması 199 | yapıyor 200 | yapmak 201 | yaptı 202 | yaptığı 203 | yaptığını 204 | yaptıkları 205 | yedi 206 | yerine 207 | yetmiş 208 | yine 209 | yirmi 210 | yoksa 211 | yüz 212 | zaten 213 | -------------------------------------------------------------------------------- /ckanext/wotkit/theme/templates/user/edit_user_form.html: -------------------------------------------------------------------------------- 1 | {% import 'macros/form.html' as form %} 2 | 3 |
4 | {{ form.errors(error_summary) }} 5 | 6 |
7 | {{ _('Change your details') }} 8 | 9 | {{ form.input('name', label=_('Username'), id='field-username', value=data.name, error=errors.name, classes=['control-medium'], attrs={'readonly': 'True'}) }} 10 | 11 | {{ form.input('fullname', label=_('Full name'), id='field-fullname', value=data.fullname, error=errors.fullname, placeholder=_('eg. Joe Bloggs'), classes=['control-medium']) }} 12 | 13 | {{ form.input('email', label=_('Email'), id='field-email', type='email', value=data.email, error=errors.email, placeholder=_('eg. joe@example.com'), classes=['control-medium']) }} 14 | 15 | {{ form.markdown('about', label=_('About'), id='field-about', value=data.about, error=errors.about, placeholder=_('A little information about yourself')) }} 16 | 17 | {% if c.show_email_notifications %} 18 | {% call form.checkbox('activity_streams_email_notifications', label=_('Subscribe to notification emails'), id='field-activity-streams-email-notifications', value=True, checked=c.userobj.activity_streams_email_notifications) %} 19 | {{ form.info(_("You will receive notification emails from {site_title}, e.g. when you have new activities on your dashboard.".format(site_title=g.site_title)), classes=['info-help-tight']) }} 20 | {% endcall %} 21 | {% endif %} 22 |
23 | 24 |
25 | 34 |
35 |
36 |
37 | 38 |
39 | {{ _('Change your password') }} 40 | 41 | {{ form.input('password1', type='password', label=_('Password'), id='field-password', value=data.password1, error=errors.password1, classes=['control-medium'], attrs={'autocomplete': 'off'} ) }} 42 | 43 | {{ form.input('password2', type='password', label=_('Confirm Password'), id='field-password-confirm', value=data.password2, error=errors.password2, classes=['control-medium'], attrs={'autocomplete': 'off'}) }} 44 |
45 | 46 |
47 | 48 |
49 |
50 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_ro.txt: -------------------------------------------------------------------------------- 1 | # This file was created by Jacques Savoy and is distributed under the BSD license. 2 | # See http://members.unine.ch/jacques.savoy/clef/index.html. 3 | # Also see http://www.opensource.org/licenses/bsd-license.html 4 | acea 5 | aceasta 6 | această 7 | aceea 8 | acei 9 | aceia 10 | acel 11 | acela 12 | acele 13 | acelea 14 | acest 15 | acesta 16 | aceste 17 | acestea 18 | aceşti 19 | aceştia 20 | acolo 21 | acum 22 | ai 23 | aia 24 | aibă 25 | aici 26 | al 27 | ăla 28 | ale 29 | alea 30 | ălea 31 | altceva 32 | altcineva 33 | am 34 | ar 35 | are 36 | aş 37 | aşadar 38 | asemenea 39 | asta 40 | ăsta 41 | astăzi 42 | astea 43 | ăstea 44 | ăştia 45 | asupra 46 | aţi 47 | au 48 | avea 49 | avem 50 | aveţi 51 | azi 52 | bine 53 | bucur 54 | bună 55 | ca 56 | că 57 | căci 58 | când 59 | care 60 | cărei 61 | căror 62 | cărui 63 | cât 64 | câte 65 | câţi 66 | către 67 | câtva 68 | ce 69 | cel 70 | ceva 71 | chiar 72 | cînd 73 | cine 74 | cineva 75 | cît 76 | cîte 77 | cîţi 78 | cîtva 79 | contra 80 | cu 81 | cum 82 | cumva 83 | curând 84 | curînd 85 | da 86 | dă 87 | dacă 88 | dar 89 | datorită 90 | de 91 | deci 92 | deja 93 | deoarece 94 | departe 95 | deşi 96 | din 97 | dinaintea 98 | dintr 99 | dintre 100 | drept 101 | după 102 | ea 103 | ei 104 | el 105 | ele 106 | eram 107 | este 108 | eşti 109 | eu 110 | face 111 | fără 112 | fi 113 | fie 114 | fiecare 115 | fii 116 | fim 117 | fiţi 118 | iar 119 | ieri 120 | îi 121 | îl 122 | îmi 123 | împotriva 124 | în 125 | înainte 126 | înaintea 127 | încât 128 | încît 129 | încotro 130 | între 131 | întrucât 132 | întrucît 133 | îţi 134 | la 135 | lângă 136 | le 137 | li 138 | lîngă 139 | lor 140 | lui 141 | mă 142 | mâine 143 | mea 144 | mei 145 | mele 146 | mereu 147 | meu 148 | mi 149 | mine 150 | mult 151 | multă 152 | mulţi 153 | ne 154 | nicăieri 155 | nici 156 | nimeni 157 | nişte 158 | noastră 159 | noastre 160 | noi 161 | noştri 162 | nostru 163 | nu 164 | ori 165 | oricând 166 | oricare 167 | oricât 168 | orice 169 | oricînd 170 | oricine 171 | oricît 172 | oricum 173 | oriunde 174 | până 175 | pe 176 | pentru 177 | peste 178 | pînă 179 | poate 180 | pot 181 | prea 182 | prima 183 | primul 184 | prin 185 | printr 186 | sa 187 | să 188 | săi 189 | sale 190 | sau 191 | său 192 | se 193 | şi 194 | sînt 195 | sîntem 196 | sînteţi 197 | spre 198 | sub 199 | sunt 200 | suntem 201 | sunteţi 202 | ta 203 | tăi 204 | tale 205 | tău 206 | te 207 | ţi 208 | ţie 209 | tine 210 | toată 211 | toate 212 | tot 213 | toţi 214 | totuşi 215 | tu 216 | un 217 | una 218 | unde 219 | undeva 220 | unei 221 | unele 222 | uneori 223 | unor 224 | vă 225 | vi 226 | voastră 227 | voastre 228 | voi 229 | voştri 230 | vostru 231 | vouă 232 | vreo 233 | vreun 234 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/xslt/example_atom.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 23 | 24 | 26 | 27 | 32 | 33 | 34 | 35 | 36 | Example Solr Atom 1.0 Feed 37 | 38 | This has been formatted by the sample "example_atom.xsl" transform - 39 | use your own XSLT to get a nicer Atom feed. 40 | 41 | 42 | Apache Solr 43 | solr-user@lucene.apache.org 44 | 45 | 47 | 48 | 49 | 50 | tag:localhost,2007:example 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | <xsl:value-of select="str[@name='name']"/> 60 | 61 | tag:localhost,2007: 62 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_hu.txt: -------------------------------------------------------------------------------- 1 | | From svn.tartarus.org/snowball/trunk/website/algorithms/hungarian/stop.txt 2 | | This file is distributed under the BSD License. 3 | | See http://snowball.tartarus.org/license.php 4 | | Also see http://www.opensource.org/licenses/bsd-license.html 5 | | - Encoding was converted to UTF-8. 6 | | - This notice was added. 7 | | 8 | | NOTE: To use this file with StopFilterFactory, you must specify format="snowball" 9 | 10 | | Hungarian stop word list 11 | | prepared by Anna Tordai 12 | 13 | a 14 | ahogy 15 | ahol 16 | aki 17 | akik 18 | akkor 19 | alatt 20 | által 21 | általában 22 | amely 23 | amelyek 24 | amelyekben 25 | amelyeket 26 | amelyet 27 | amelynek 28 | ami 29 | amit 30 | amolyan 31 | amíg 32 | amikor 33 | át 34 | abban 35 | ahhoz 36 | annak 37 | arra 38 | arról 39 | az 40 | azok 41 | azon 42 | azt 43 | azzal 44 | azért 45 | aztán 46 | azután 47 | azonban 48 | bár 49 | be 50 | belül 51 | benne 52 | cikk 53 | cikkek 54 | cikkeket 55 | csak 56 | de 57 | e 58 | eddig 59 | egész 60 | egy 61 | egyes 62 | egyetlen 63 | egyéb 64 | egyik 65 | egyre 66 | ekkor 67 | el 68 | elég 69 | ellen 70 | elő 71 | először 72 | előtt 73 | első 74 | én 75 | éppen 76 | ebben 77 | ehhez 78 | emilyen 79 | ennek 80 | erre 81 | ez 82 | ezt 83 | ezek 84 | ezen 85 | ezzel 86 | ezért 87 | és 88 | fel 89 | felé 90 | hanem 91 | hiszen 92 | hogy 93 | hogyan 94 | igen 95 | így 96 | illetve 97 | ill. 98 | ill 99 | ilyen 100 | ilyenkor 101 | ison 102 | ismét 103 | itt 104 | jó 105 | jól 106 | jobban 107 | kell 108 | kellett 109 | keresztül 110 | keressünk 111 | ki 112 | kívül 113 | között 114 | közül 115 | legalább 116 | lehet 117 | lehetett 118 | legyen 119 | lenne 120 | lenni 121 | lesz 122 | lett 123 | maga 124 | magát 125 | majd 126 | majd 127 | már 128 | más 129 | másik 130 | meg 131 | még 132 | mellett 133 | mert 134 | mely 135 | melyek 136 | mi 137 | mit 138 | míg 139 | miért 140 | milyen 141 | mikor 142 | minden 143 | mindent 144 | mindenki 145 | mindig 146 | mint 147 | mintha 148 | mivel 149 | most 150 | nagy 151 | nagyobb 152 | nagyon 153 | ne 154 | néha 155 | nekem 156 | neki 157 | nem 158 | néhány 159 | nélkül 160 | nincs 161 | olyan 162 | ott 163 | össze 164 | ő 165 | ők 166 | őket 167 | pedig 168 | persze 169 | rá 170 | s 171 | saját 172 | sem 173 | semmi 174 | sok 175 | sokat 176 | sokkal 177 | számára 178 | szemben 179 | szerint 180 | szinte 181 | talán 182 | tehát 183 | teljes 184 | tovább 185 | továbbá 186 | több 187 | úgy 188 | ugyanis 189 | új 190 | újabb 191 | újra 192 | után 193 | utána 194 | utolsó 195 | vagy 196 | vagyis 197 | valaki 198 | valami 199 | valamint 200 | való 201 | vagyok 202 | van 203 | vannak 204 | volt 205 | voltam 206 | voltak 207 | voltunk 208 | vissza 209 | vele 210 | viszont 211 | volna 212 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/xslt/updateXml.xsl: -------------------------------------------------------------------------------- 1 | 17 | 18 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/mime_type_lists.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Define some Mime-Types, short and long form 3 | *# 4 | 5 | ## MimeType to extension map for detecting file type 6 | ## and showing proper icon 7 | ## List of types match the icons in /solr/img/filetypes 8 | 9 | ## Short MimeType Names 10 | ## Was called $supportedtypes 11 | #set($supportedMimeTypes = "7z;ai;aiff;asc;audio;bin;bz2;c;cfc;cfm;chm;class;conf;cpp;cs;css;csv;deb;divx;doc;dot;eml;enc;file;gif;gz;hlp;htm;html;image;iso;jar;java;jpeg;jpg;js;lua;m;mm;mov;mp3;mpg;odc;odf;odg;odi;odp;ods;odt;ogg;pdf;pgp;php;pl;png;ppt;ps;py;ram;rar;rb;rm;rpm;rtf;sig;sql;swf;sxc;sxd;sxi;sxw;tar;tex;tgz;txt;vcf;video;vsd;wav;wma;wmv;xls;xml;xpi;xvid;zip") 12 | 13 | ## Long Form: map MimeType headers to our Short names 14 | ## Was called $extMap 15 | #set( $mimeExtensionsMap = { 16 | "application/x-7z-compressed": "7z", 17 | "application/postscript": "ai", 18 | "application/pgp-signature": "asc", 19 | "application/octet-stream": "bin", 20 | "application/x-bzip2": "bz2", 21 | "text/x-c": "c", 22 | "application/vnd.ms-htmlhelp": "chm", 23 | "application/java-vm": "class", 24 | "text/css": "css", 25 | "text/csv": "csv", 26 | "application/x-debian-package": "deb", 27 | "application/msword": "doc", 28 | "message/rfc822": "eml", 29 | "image/gif": "gif", 30 | "application/winhlp": "hlp", 31 | "text/html": "html", 32 | "application/java-archive": "jar", 33 | "text/x-java-source": "java", 34 | "image/jpeg": "jpeg", 35 | "application/javascript": "js", 36 | "application/vnd.oasis.opendocument.chart": "odc", 37 | "application/vnd.oasis.opendocument.formula": "odf", 38 | "application/vnd.oasis.opendocument.graphics": "odg", 39 | "application/vnd.oasis.opendocument.image": "odi", 40 | "application/vnd.oasis.opendocument.presentation": "odp", 41 | "application/vnd.oasis.opendocument.spreadsheet": "ods", 42 | "application/vnd.oasis.opendocument.text": "odt", 43 | "application/pdf": "pdf", 44 | "application/pgp-encrypted": "pgp", 45 | "image/png": "png", 46 | "application/vnd.ms-powerpoint": "ppt", 47 | "audio/x-pn-realaudio": "ram", 48 | "application/x-rar-compressed": "rar", 49 | "application/vnd.rn-realmedia": "rm", 50 | "application/rtf": "rtf", 51 | "application/x-shockwave-flash": "swf", 52 | "application/vnd.sun.xml.calc": "sxc", 53 | "application/vnd.sun.xml.draw": "sxd", 54 | "application/vnd.sun.xml.impress": "sxi", 55 | "application/vnd.sun.xml.writer": "sxw", 56 | "application/x-tar": "tar", 57 | "application/x-tex": "tex", 58 | "text/plain": "txt", 59 | "text/x-vcard": "vcf", 60 | "application/vnd.visio": "vsd", 61 | "audio/x-wav": "wav", 62 | "audio/x-ms-wma": "wma", 63 | "video/x-ms-wmv": "wmv", 64 | "application/vnd.ms-excel": "xls", 65 | "application/xml": "xml", 66 | "application/x-xpinstall": "xpi", 67 | "application/zip": "zip" 68 | }) 69 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_hi.txt: -------------------------------------------------------------------------------- 1 | # Also see http://www.opensource.org/licenses/bsd-license.html 2 | # See http://members.unine.ch/jacques.savoy/clef/index.html. 3 | # This file was created by Jacques Savoy and is distributed under the BSD license. 4 | # Note: by default this file also contains forms normalized by HindiNormalizer 5 | # for spelling variation (see section below), such that it can be used whether or 6 | # not you enable that feature. When adding additional entries to this list, 7 | # please add the normalized form as well. 8 | अंदर 9 | अत 10 | अपना 11 | अपनी 12 | अपने 13 | अभी 14 | आदि 15 | आप 16 | इत्यादि 17 | इन 18 | इनका 19 | इन्हीं 20 | इन्हें 21 | इन्हों 22 | इस 23 | इसका 24 | इसकी 25 | इसके 26 | इसमें 27 | इसी 28 | इसे 29 | उन 30 | उनका 31 | उनकी 32 | उनके 33 | उनको 34 | उन्हीं 35 | उन्हें 36 | उन्हों 37 | उस 38 | उसके 39 | उसी 40 | उसे 41 | एक 42 | एवं 43 | एस 44 | ऐसे 45 | और 46 | कई 47 | कर 48 | करता 49 | करते 50 | करना 51 | करने 52 | करें 53 | कहते 54 | कहा 55 | का 56 | काफ़ी 57 | कि 58 | कितना 59 | किन्हें 60 | किन्हों 61 | किया 62 | किर 63 | किस 64 | किसी 65 | किसे 66 | की 67 | कुछ 68 | कुल 69 | के 70 | को 71 | कोई 72 | कौन 73 | कौनसा 74 | गया 75 | घर 76 | जब 77 | जहाँ 78 | जा 79 | जितना 80 | जिन 81 | जिन्हें 82 | जिन्हों 83 | जिस 84 | जिसे 85 | जीधर 86 | जैसा 87 | जैसे 88 | जो 89 | तक 90 | तब 91 | तरह 92 | तिन 93 | तिन्हें 94 | तिन्हों 95 | तिस 96 | तिसे 97 | तो 98 | था 99 | थी 100 | थे 101 | दबारा 102 | दिया 103 | दुसरा 104 | दूसरे 105 | दो 106 | द्वारा 107 | न 108 | नहीं 109 | ना 110 | निहायत 111 | नीचे 112 | ने 113 | पर 114 | पर 115 | पहले 116 | पूरा 117 | पे 118 | फिर 119 | बनी 120 | बही 121 | बहुत 122 | बाद 123 | बाला 124 | बिलकुल 125 | भी 126 | भीतर 127 | मगर 128 | मानो 129 | मे 130 | में 131 | यदि 132 | यह 133 | यहाँ 134 | यही 135 | या 136 | यिह 137 | ये 138 | रखें 139 | रहा 140 | रहे 141 | ऱ्वासा 142 | लिए 143 | लिये 144 | लेकिन 145 | व 146 | वर्ग 147 | वह 148 | वह 149 | वहाँ 150 | वहीं 151 | वाले 152 | वुह 153 | वे 154 | वग़ैरह 155 | संग 156 | सकता 157 | सकते 158 | सबसे 159 | सभी 160 | साथ 161 | साबुत 162 | साभ 163 | सारा 164 | से 165 | सो 166 | ही 167 | हुआ 168 | हुई 169 | हुए 170 | है 171 | हैं 172 | हो 173 | होता 174 | होती 175 | होते 176 | होना 177 | होने 178 | # additional normalized forms of the above 179 | अपनि 180 | जेसे 181 | होति 182 | सभि 183 | तिंहों 184 | इंहों 185 | दवारा 186 | इसि 187 | किंहें 188 | थि 189 | उंहों 190 | ओर 191 | जिंहें 192 | वहिं 193 | अभि 194 | बनि 195 | हि 196 | उंहिं 197 | उंहें 198 | हें 199 | वगेरह 200 | एसे 201 | रवासा 202 | कोन 203 | निचे 204 | काफि 205 | उसि 206 | पुरा 207 | भितर 208 | हे 209 | बहि 210 | वहां 211 | कोइ 212 | यहां 213 | जिंहों 214 | तिंहें 215 | किसि 216 | कइ 217 | यहि 218 | इंहिं 219 | जिधर 220 | इंहें 221 | अदि 222 | इतयादि 223 | हुइ 224 | कोनसा 225 | इसकि 226 | दुसरे 227 | जहां 228 | अप 229 | किंहों 230 | उनकि 231 | भि 232 | वरग 233 | हुअ 234 | जेसा 235 | नहिं 236 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_fi.txt: -------------------------------------------------------------------------------- 1 | | From svn.tartarus.org/snowball/trunk/website/algorithms/finnish/stop.txt 2 | | This file is distributed under the BSD License. 3 | | See http://snowball.tartarus.org/license.php 4 | | Also see http://www.opensource.org/licenses/bsd-license.html 5 | | - Encoding was converted to UTF-8. 6 | | - This notice was added. 7 | | 8 | | NOTE: To use this file with StopFilterFactory, you must specify format="snowball" 9 | 10 | | forms of BE 11 | 12 | olla 13 | olen 14 | olet 15 | on 16 | olemme 17 | olette 18 | ovat 19 | ole | negative form 20 | 21 | oli 22 | olisi 23 | olisit 24 | olisin 25 | olisimme 26 | olisitte 27 | olisivat 28 | olit 29 | olin 30 | olimme 31 | olitte 32 | olivat 33 | ollut 34 | olleet 35 | 36 | en | negation 37 | et 38 | ei 39 | emme 40 | ette 41 | eivät 42 | 43 | |Nom Gen Acc Part Iness Elat Illat Adess Ablat Allat Ess Trans 44 | minä minun minut minua minussa minusta minuun minulla minulta minulle | I 45 | sinä sinun sinut sinua sinussa sinusta sinuun sinulla sinulta sinulle | you 46 | hän hänen hänet häntä hänessä hänestä häneen hänellä häneltä hänelle | he she 47 | me meidän meidät meitä meissä meistä meihin meillä meiltä meille | we 48 | te teidän teidät teitä teissä teistä teihin teillä teiltä teille | you 49 | he heidän heidät heitä heissä heistä heihin heillä heiltä heille | they 50 | 51 | tämä tämän tätä tässä tästä tähän tallä tältä tälle tänä täksi | this 52 | tuo tuon tuotä tuossa tuosta tuohon tuolla tuolta tuolle tuona tuoksi | that 53 | se sen sitä siinä siitä siihen sillä siltä sille sinä siksi | it 54 | nämä näiden näitä näissä näistä näihin näillä näiltä näille näinä näiksi | these 55 | nuo noiden noita noissa noista noihin noilla noilta noille noina noiksi | those 56 | ne niiden niitä niissä niistä niihin niillä niiltä niille niinä niiksi | they 57 | 58 | kuka kenen kenet ketä kenessä kenestä keneen kenellä keneltä kenelle kenenä keneksi| who 59 | ketkä keiden ketkä keitä keissä keistä keihin keillä keiltä keille keinä keiksi | (pl) 60 | mikä minkä minkä mitä missä mistä mihin millä miltä mille minä miksi | which what 61 | mitkä | (pl) 62 | 63 | joka jonka jota jossa josta johon jolla jolta jolle jona joksi | who which 64 | jotka joiden joita joissa joista joihin joilla joilta joille joina joiksi | (pl) 65 | 66 | | conjunctions 67 | 68 | että | that 69 | ja | and 70 | jos | if 71 | koska | because 72 | kuin | than 73 | mutta | but 74 | niin | so 75 | sekä | and 76 | sillä | for 77 | tai | or 78 | vaan | but 79 | vai | or 80 | vaikka | although 81 | 82 | 83 | | prepositions 84 | 85 | kanssa | with 86 | mukaan | according to 87 | noin | about 88 | poikki | across 89 | yli | over, across 90 | 91 | | other 92 | 93 | kun | when 94 | niin | so 95 | nyt | now 96 | itse | self 97 | 98 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_fa.txt: -------------------------------------------------------------------------------- 1 | # This file was created by Jacques Savoy and is distributed under the BSD license. 2 | # See http://members.unine.ch/jacques.savoy/clef/index.html. 3 | # Also see http://www.opensource.org/licenses/bsd-license.html 4 | # Note: by default this file is used after normalization, so when adding entries 5 | # to this file, use the arabic 'ي' instead of 'ی' 6 | انان 7 | نداشته 8 | سراسر 9 | خياه 10 | ايشان 11 | وي 12 | تاكنون 13 | بيشتري 14 | دوم 15 | پس 16 | ناشي 17 | وگو 18 | يا 19 | داشتند 20 | سپس 21 | هنگام 22 | هرگز 23 | پنج 24 | نشان 25 | امسال 26 | ديگر 27 | گروهي 28 | شدند 29 | چطور 30 | ده 31 | و 32 | دو 33 | نخستين 34 | ولي 35 | چرا 36 | چه 37 | وسط 38 | ه 39 | كدام 40 | قابل 41 | يك 42 | رفت 43 | هفت 44 | همچنين 45 | در 46 | هزار 47 | بله 48 | بلي 49 | شايد 50 | اما 51 | شناسي 52 | گرفته 53 | دهد 54 | داشته 55 | دانست 56 | داشتن 57 | خواهيم 58 | ميليارد 59 | وقتيكه 60 | امد 61 | خواهد 62 | جز 63 | اورده 64 | شده 65 | بلكه 66 | خدمات 67 | شدن 68 | برخي 69 | نبود 70 | بسياري 71 | جلوگيري 72 | حق 73 | كردند 74 | نوعي 75 | بعري 76 | نكرده 77 | نظير 78 | نبايد 79 | بوده 80 | بودن 81 | داد 82 | اورد 83 | هست 84 | جايي 85 | شود 86 | دنبال 87 | داده 88 | بايد 89 | سابق 90 | هيچ 91 | همان 92 | انجا 93 | كمتر 94 | كجاست 95 | گردد 96 | كسي 97 | تر 98 | مردم 99 | تان 100 | دادن 101 | بودند 102 | سري 103 | جدا 104 | ندارند 105 | مگر 106 | يكديگر 107 | دارد 108 | دهند 109 | بنابراين 110 | هنگامي 111 | سمت 112 | جا 113 | انچه 114 | خود 115 | دادند 116 | زياد 117 | دارند 118 | اثر 119 | بدون 120 | بهترين 121 | بيشتر 122 | البته 123 | به 124 | براساس 125 | بيرون 126 | كرد 127 | بعضي 128 | گرفت 129 | توي 130 | اي 131 | ميليون 132 | او 133 | جريان 134 | تول 135 | بر 136 | مانند 137 | برابر 138 | باشيم 139 | مدتي 140 | گويند 141 | اكنون 142 | تا 143 | تنها 144 | جديد 145 | چند 146 | بي 147 | نشده 148 | كردن 149 | كردم 150 | گويد 151 | كرده 152 | كنيم 153 | نمي 154 | نزد 155 | روي 156 | قصد 157 | فقط 158 | بالاي 159 | ديگران 160 | اين 161 | ديروز 162 | توسط 163 | سوم 164 | ايم 165 | دانند 166 | سوي 167 | استفاده 168 | شما 169 | كنار 170 | داريم 171 | ساخته 172 | طور 173 | امده 174 | رفته 175 | نخست 176 | بيست 177 | نزديك 178 | طي 179 | كنيد 180 | از 181 | انها 182 | تمامي 183 | داشت 184 | يكي 185 | طريق 186 | اش 187 | چيست 188 | روب 189 | نمايد 190 | گفت 191 | چندين 192 | چيزي 193 | تواند 194 | ام 195 | ايا 196 | با 197 | ان 198 | ايد 199 | ترين 200 | اينكه 201 | ديگري 202 | راه 203 | هايي 204 | بروز 205 | همچنان 206 | پاعين 207 | كس 208 | حدود 209 | مختلف 210 | مقابل 211 | چيز 212 | گيرد 213 | ندارد 214 | ضد 215 | همچون 216 | سازي 217 | شان 218 | مورد 219 | باره 220 | مرسي 221 | خويش 222 | برخوردار 223 | چون 224 | خارج 225 | شش 226 | هنوز 227 | تحت 228 | ضمن 229 | هستيم 230 | گفته 231 | فكر 232 | بسيار 233 | پيش 234 | براي 235 | روزهاي 236 | انكه 237 | نخواهد 238 | بالا 239 | كل 240 | وقتي 241 | كي 242 | چنين 243 | كه 244 | گيري 245 | نيست 246 | است 247 | كجا 248 | كند 249 | نيز 250 | يابد 251 | بندي 252 | حتي 253 | توانند 254 | عقب 255 | خواست 256 | كنند 257 | بين 258 | تمام 259 | همه 260 | ما 261 | باشند 262 | مثل 263 | شد 264 | اري 265 | باشد 266 | اره 267 | طبق 268 | بعد 269 | اگر 270 | صورت 271 | غير 272 | جاي 273 | بيش 274 | ريزي 275 | اند 276 | زيرا 277 | چگونه 278 | بار 279 | لطفا 280 | مي 281 | درباره 282 | من 283 | ديده 284 | همين 285 | گذاري 286 | برداري 287 | علت 288 | گذاشته 289 | هم 290 | فوق 291 | نه 292 | ها 293 | شوند 294 | اباد 295 | همواره 296 | هر 297 | اول 298 | خواهند 299 | چهار 300 | نام 301 | امروز 302 | مان 303 | هاي 304 | قبل 305 | كنم 306 | سعي 307 | تازه 308 | را 309 | هستند 310 | زير 311 | جلوي 312 | عنوان 313 | بود 314 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_da.txt: -------------------------------------------------------------------------------- 1 | | From svn.tartarus.org/snowball/trunk/website/algorithms/danish/stop.txt 2 | | This file is distributed under the BSD License. 3 | | See http://snowball.tartarus.org/license.php 4 | | Also see http://www.opensource.org/licenses/bsd-license.html 5 | | - Encoding was converted to UTF-8. 6 | | - This notice was added. 7 | | 8 | | NOTE: To use this file with StopFilterFactory, you must specify format="snowball" 9 | 10 | | A Danish stop word list. Comments begin with vertical bar. Each stop 11 | | word is at the start of a line. 12 | 13 | | This is a ranked list (commonest to rarest) of stopwords derived from 14 | | a large text sample. 15 | 16 | 17 | og | and 18 | i | in 19 | jeg | I 20 | det | that (dem. pronoun)/it (pers. pronoun) 21 | at | that (in front of a sentence)/to (with infinitive) 22 | en | a/an 23 | den | it (pers. pronoun)/that (dem. pronoun) 24 | til | to/at/for/until/against/by/of/into, more 25 | er | present tense of "to be" 26 | som | who, as 27 | på | on/upon/in/on/at/to/after/of/with/for, on 28 | de | they 29 | med | with/by/in, along 30 | han | he 31 | af | of/by/from/off/for/in/with/on, off 32 | for | at/for/to/from/by/of/ago, in front/before, because 33 | ikke | not 34 | der | who/which, there/those 35 | var | past tense of "to be" 36 | mig | me/myself 37 | sig | oneself/himself/herself/itself/themselves 38 | men | but 39 | et | a/an/one, one (number), someone/somebody/one 40 | har | present tense of "to have" 41 | om | round/about/for/in/a, about/around/down, if 42 | vi | we 43 | min | my 44 | havde | past tense of "to have" 45 | ham | him 46 | hun | she 47 | nu | now 48 | over | over/above/across/by/beyond/past/on/about, over/past 49 | da | then, when/as/since 50 | fra | from/off/since, off, since 51 | du | you 52 | ud | out 53 | sin | his/her/its/one's 54 | dem | them 55 | os | us/ourselves 56 | op | up 57 | man | you/one 58 | hans | his 59 | hvor | where 60 | eller | or 61 | hvad | what 62 | skal | must/shall etc. 63 | selv | myself/youself/herself/ourselves etc., even 64 | her | here 65 | alle | all/everyone/everybody etc. 66 | vil | will (verb) 67 | blev | past tense of "to stay/to remain/to get/to become" 68 | kunne | could 69 | ind | in 70 | når | when 71 | være | present tense of "to be" 72 | dog | however/yet/after all 73 | noget | something 74 | ville | would 75 | jo | you know/you see (adv), yes 76 | deres | their/theirs 77 | efter | after/behind/according to/for/by/from, later/afterwards 78 | ned | down 79 | skulle | should 80 | denne | this 81 | end | than 82 | dette | this 83 | mit | my/mine 84 | også | also 85 | under | under/beneath/below/during, below/underneath 86 | have | have 87 | dig | you 88 | anden | other 89 | hende | her 90 | mine | my 91 | alt | everything 92 | meget | much/very, plenty of 93 | sit | his, her, its, one's 94 | sine | his, her, its, one's 95 | vor | our 96 | mod | against 97 | disse | these 98 | hvis | if 99 | din | your/yours 100 | nogle | some 101 | hos | by/at 102 | blive | be/become 103 | mange | many 104 | ad | by/through 105 | bliver | present tense of "to be/to become" 106 | hendes | her/hers 107 | været | be 108 | thi | for (conj) 109 | jer | you 110 | sådan | such, like this/like that 111 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/main.css: -------------------------------------------------------------------------------- 1 | #admin{ 2 | text-align: right; 3 | vertical-align: top; 4 | } 5 | 6 | #head{ 7 | width: 100%; 8 | } 9 | .array-field { 10 | border: 2px solid #474747; 11 | background: #FFE9D8; 12 | padding: 5px; 13 | margin: 5px; 14 | } 15 | 16 | .array-field-list li { 17 | list-style: circle; 18 | margin-left: 20px; 19 | } 20 | 21 | .parsed_query_header { 22 | font-family: Helvetica, Arial, sans-serif; 23 | font-size: 10pt; 24 | font-weight: bold; 25 | } 26 | 27 | .parsed_query { 28 | font-family: Courier, Courier New, monospaced; 29 | font-size: 10pt; 30 | font-weight: normal; 31 | } 32 | 33 | body { 34 | font-family: Helvetica, Arial, sans-serif; 35 | font-size: 10pt; 36 | } 37 | 38 | a { 39 | color: #43a4b1; 40 | } 41 | 42 | .navigators { 43 | float: left; 44 | margin: 5px; 45 | margin-top: 0px; 46 | width: 185px; 47 | padding: 5px; 48 | top: -20px; 49 | position: relative; 50 | } 51 | 52 | .tabs-bar { 53 | padding: 5px; 54 | width: 100%; 55 | border: 1px solid; 56 | border-width: 0px 0px 1px 0px; 57 | } 58 | .tab { 59 | font-weight: bold; 60 | padding: 5px; 61 | margin: 0px 5px; 62 | border: 1px solid; 63 | background-color: #dddddd; 64 | border-top-left-radius: 4px; 65 | border-top-right-radius: 4px; 66 | } 67 | .tab:hover { 68 | background: #FEC293; 69 | } 70 | .tab.selected { 71 | background-color: #ffffff; 72 | border-bottom: 1px solid #ffffff; 73 | } 74 | 75 | .navigators h2 { 76 | background: #FEC293; 77 | padding: 2px 5px; 78 | } 79 | 80 | .navigators ul { 81 | list-style: none; 82 | margin: 0; 83 | margin-bottom: 5px; 84 | margin-top: 5px; 85 | padding-left: 10px; 86 | } 87 | 88 | .navigators ul li { 89 | color: #999; 90 | padding: 2px; 91 | } 92 | 93 | 94 | 95 | .facet-field { 96 | font-weight: bold; 97 | } 98 | 99 | .highlight { 100 | color: white; 101 | background-color: gray; 102 | border: 1px black solid; 103 | } 104 | 105 | .highlight-box { 106 | margin-left: 15px; 107 | } 108 | 109 | .field-name { 110 | font-weight: bold; 111 | } 112 | 113 | .highlighted-facet-field { 114 | background: white; 115 | } 116 | 117 | .constraints { 118 | margin-top: 10px; 119 | } 120 | 121 | #query-form{ 122 | width: 80%; 123 | } 124 | 125 | 126 | 127 | .query-box, .constraints { 128 | padding: 5px; 129 | margin: 5px; 130 | font-weight: normal; 131 | font-size: 24px; 132 | letter-spacing: 0.08em; 133 | } 134 | 135 | .query-box #q { 136 | margin-left: 8px; 137 | width: 60%; 138 | height: 50px; 139 | border: 1px solid #999; 140 | font-size: 1em; 141 | padding: 0.4em; 142 | } 143 | 144 | .query-box { 145 | 146 | } 147 | 148 | .query-boost { 149 | 150 | top: 10px; 151 | left: 50px; 152 | position: relative; 153 | font-size: 0.8em; 154 | } 155 | 156 | .query-box .inputs{ 157 | left: 180px; 158 | position: relative; 159 | 160 | } 161 | 162 | #logo { 163 | margin: 10px; 164 | border-style: none; 165 | } 166 | 167 | .pagination { 168 | padding-left: 33%; 169 | background: #eee; 170 | margin: 5px; 171 | margin-left: 210px; 172 | padding-top: 5px; 173 | padding-bottom: 5px; 174 | } 175 | 176 | .result-document { 177 | border: 1px solid #999; 178 | padding: 5px; 179 | margin: 5px; 180 | margin-left: 210px; 181 | margin-bottom: 15px; 182 | } 183 | 184 | .result-document div{ 185 | padding: 5px; 186 | } 187 | 188 | .result-title{ 189 | width:60%; 190 | } 191 | 192 | .result-body{ 193 | background: #ddd; 194 | } 195 | 196 | .mlt{ 197 | 198 | } 199 | 200 | .map{ 201 | float: right; 202 | position: relative; 203 | top: -25px; 204 | } 205 | 206 | .result-document:nth-child(2n+1) { 207 | background-color: #eee; 208 | } 209 | 210 | 211 | .selected-facet-field { 212 | font-weight: bold; 213 | } 214 | 215 | li.show { 216 | list-style: disc; 217 | } 218 | 219 | .group-value{ 220 | font-weight: bold; 221 | } 222 | 223 | .error { 224 | color: white; 225 | background-color: red; 226 | left: 210px; 227 | width:80%; 228 | position: relative; 229 | 230 | } 231 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/mapping-ISOLatin1Accent.txt: -------------------------------------------------------------------------------- 1 | # The ASF licenses this file to You under the Apache License, Version 2.0 2 | # (the "License"); you may not use this file except in compliance with 3 | # the License. You may obtain a copy of the License at 4 | # 5 | # http://www.apache.org/licenses/LICENSE-2.0 6 | # 7 | # Unless required by applicable law or agreed to in writing, software 8 | # distributed under the License is distributed on an "AS IS" BASIS, 9 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | # See the License for the specific language governing permissions and 11 | # limitations under the License. 12 | 13 | # Syntax: 14 | # "source" => "target" 15 | # "source".length() > 0 (source cannot be empty.) 16 | # "target".length() >= 0 (target can be empty.) 17 | 18 | # example: 19 | # "À" => "A" 20 | # "\u00C0" => "A" 21 | # "\u00C0" => "\u0041" 22 | # "ß" => "ss" 23 | # "\t" => " " 24 | # "\n" => "" 25 | 26 | # À => A 27 | "\u00C0" => "A" 28 | 29 | # Á => A 30 | "\u00C1" => "A" 31 | 32 | #  => A 33 | "\u00C2" => "A" 34 | 35 | # à => A 36 | "\u00C3" => "A" 37 | 38 | # Ä => A 39 | "\u00C4" => "A" 40 | 41 | # Å => A 42 | "\u00C5" => "A" 43 | 44 | # Æ => AE 45 | "\u00C6" => "AE" 46 | 47 | # Ç => C 48 | "\u00C7" => "C" 49 | 50 | # È => E 51 | "\u00C8" => "E" 52 | 53 | # É => E 54 | "\u00C9" => "E" 55 | 56 | # Ê => E 57 | "\u00CA" => "E" 58 | 59 | # Ë => E 60 | "\u00CB" => "E" 61 | 62 | # Ì => I 63 | "\u00CC" => "I" 64 | 65 | # Í => I 66 | "\u00CD" => "I" 67 | 68 | # Î => I 69 | "\u00CE" => "I" 70 | 71 | # Ï => I 72 | "\u00CF" => "I" 73 | 74 | # IJ => IJ 75 | "\u0132" => "IJ" 76 | 77 | # Ð => D 78 | "\u00D0" => "D" 79 | 80 | # Ñ => N 81 | "\u00D1" => "N" 82 | 83 | # Ò => O 84 | "\u00D2" => "O" 85 | 86 | # Ó => O 87 | "\u00D3" => "O" 88 | 89 | # Ô => O 90 | "\u00D4" => "O" 91 | 92 | # Õ => O 93 | "\u00D5" => "O" 94 | 95 | # Ö => O 96 | "\u00D6" => "O" 97 | 98 | # Ø => O 99 | "\u00D8" => "O" 100 | 101 | # Œ => OE 102 | "\u0152" => "OE" 103 | 104 | # Þ 105 | "\u00DE" => "TH" 106 | 107 | # Ù => U 108 | "\u00D9" => "U" 109 | 110 | # Ú => U 111 | "\u00DA" => "U" 112 | 113 | # Û => U 114 | "\u00DB" => "U" 115 | 116 | # Ü => U 117 | "\u00DC" => "U" 118 | 119 | # Ý => Y 120 | "\u00DD" => "Y" 121 | 122 | # Ÿ => Y 123 | "\u0178" => "Y" 124 | 125 | # à => a 126 | "\u00E0" => "a" 127 | 128 | # á => a 129 | "\u00E1" => "a" 130 | 131 | # â => a 132 | "\u00E2" => "a" 133 | 134 | # ã => a 135 | "\u00E3" => "a" 136 | 137 | # ä => a 138 | "\u00E4" => "a" 139 | 140 | # å => a 141 | "\u00E5" => "a" 142 | 143 | # æ => ae 144 | "\u00E6" => "ae" 145 | 146 | # ç => c 147 | "\u00E7" => "c" 148 | 149 | # è => e 150 | "\u00E8" => "e" 151 | 152 | # é => e 153 | "\u00E9" => "e" 154 | 155 | # ê => e 156 | "\u00EA" => "e" 157 | 158 | # ë => e 159 | "\u00EB" => "e" 160 | 161 | # ì => i 162 | "\u00EC" => "i" 163 | 164 | # í => i 165 | "\u00ED" => "i" 166 | 167 | # î => i 168 | "\u00EE" => "i" 169 | 170 | # ï => i 171 | "\u00EF" => "i" 172 | 173 | # ij => ij 174 | "\u0133" => "ij" 175 | 176 | # ð => d 177 | "\u00F0" => "d" 178 | 179 | # ñ => n 180 | "\u00F1" => "n" 181 | 182 | # ò => o 183 | "\u00F2" => "o" 184 | 185 | # ó => o 186 | "\u00F3" => "o" 187 | 188 | # ô => o 189 | "\u00F4" => "o" 190 | 191 | # õ => o 192 | "\u00F5" => "o" 193 | 194 | # ö => o 195 | "\u00F6" => "o" 196 | 197 | # ø => o 198 | "\u00F8" => "o" 199 | 200 | # œ => oe 201 | "\u0153" => "oe" 202 | 203 | # ß => ss 204 | "\u00DF" => "ss" 205 | 206 | # þ => th 207 | "\u00FE" => "th" 208 | 209 | # ù => u 210 | "\u00F9" => "u" 211 | 212 | # ú => u 213 | "\u00FA" => "u" 214 | 215 | # û => u 216 | "\u00FB" => "u" 217 | 218 | # ü => u 219 | "\u00FC" => "u" 220 | 221 | # ý => y 222 | "\u00FD" => "y" 223 | 224 | # ÿ => y 225 | "\u00FF" => "y" 226 | 227 | # ff => ff 228 | "\uFB00" => "ff" 229 | 230 | # fi => fi 231 | "\uFB01" => "fi" 232 | 233 | # fl => fl 234 | "\uFB02" => "fl" 235 | 236 | # ffi => ffi 237 | "\uFB03" => "ffi" 238 | 239 | # ffl => ffl 240 | "\uFB04" => "ffl" 241 | 242 | # ſt => ft 243 | "\uFB05" => "ft" 244 | 245 | # st => st 246 | "\uFB06" => "st" 247 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_sv.txt: -------------------------------------------------------------------------------- 1 | | From svn.tartarus.org/snowball/trunk/website/algorithms/swedish/stop.txt 2 | | This file is distributed under the BSD License. 3 | | See http://snowball.tartarus.org/license.php 4 | | Also see http://www.opensource.org/licenses/bsd-license.html 5 | | - Encoding was converted to UTF-8. 6 | | - This notice was added. 7 | | 8 | | NOTE: To use this file with StopFilterFactory, you must specify format="snowball" 9 | 10 | | A Swedish stop word list. Comments begin with vertical bar. Each stop 11 | | word is at the start of a line. 12 | 13 | | This is a ranked list (commonest to rarest) of stopwords derived from 14 | | a large text sample. 15 | 16 | | Swedish stop words occasionally exhibit homonym clashes. For example 17 | | så = so, but also seed. These are indicated clearly below. 18 | 19 | och | and 20 | det | it, this/that 21 | att | to (with infinitive) 22 | i | in, at 23 | en | a 24 | jag | I 25 | hon | she 26 | som | who, that 27 | han | he 28 | på | on 29 | den | it, this/that 30 | med | with 31 | var | where, each 32 | sig | him(self) etc 33 | för | for 34 | så | so (also: seed) 35 | till | to 36 | är | is 37 | men | but 38 | ett | a 39 | om | if; around, about 40 | hade | had 41 | de | they, these/those 42 | av | of 43 | icke | not, no 44 | mig | me 45 | du | you 46 | henne | her 47 | då | then, when 48 | sin | his 49 | nu | now 50 | har | have 51 | inte | inte någon = no one 52 | hans | his 53 | honom | him 54 | skulle | 'sake' 55 | hennes | her 56 | där | there 57 | min | my 58 | man | one (pronoun) 59 | ej | nor 60 | vid | at, by, on (also: vast) 61 | kunde | could 62 | något | some etc 63 | från | from, off 64 | ut | out 65 | när | when 66 | efter | after, behind 67 | upp | up 68 | vi | we 69 | dem | them 70 | vara | be 71 | vad | what 72 | över | over 73 | än | than 74 | dig | you 75 | kan | can 76 | sina | his 77 | här | here 78 | ha | have 79 | mot | towards 80 | alla | all 81 | under | under (also: wonder) 82 | någon | some etc 83 | eller | or (else) 84 | allt | all 85 | mycket | much 86 | sedan | since 87 | ju | why 88 | denna | this/that 89 | själv | myself, yourself etc 90 | detta | this/that 91 | åt | to 92 | utan | without 93 | varit | was 94 | hur | how 95 | ingen | no 96 | mitt | my 97 | ni | you 98 | bli | to be, become 99 | blev | from bli 100 | oss | us 101 | din | thy 102 | dessa | these/those 103 | några | some etc 104 | deras | their 105 | blir | from bli 106 | mina | my 107 | samma | (the) same 108 | vilken | who, that 109 | er | you, your 110 | sådan | such a 111 | vår | our 112 | blivit | from bli 113 | dess | its 114 | inom | within 115 | mellan | between 116 | sådant | such a 117 | varför | why 118 | varje | each 119 | vilka | who, that 120 | ditt | thy 121 | vem | who 122 | vilket | who, that 123 | sitta | his 124 | sådana | such a 125 | vart | each 126 | dina | thy 127 | vars | whose 128 | vårt | our 129 | våra | our 130 | ert | your 131 | era | your 132 | vilkas | whose 133 | 134 | -------------------------------------------------------------------------------- /ckanext/wotkit/billing_log_middleware.py: -------------------------------------------------------------------------------- 1 | from pylons import c, request, response 2 | 3 | import datetime 4 | import os.path 5 | import requests 6 | import json 7 | import logging 8 | import config_globals 9 | 10 | logging.basicConfig() 11 | 12 | log = logging.getLogger(__name__) 13 | log_name = "ckan.log" 14 | log_format = "{date_time},{host},{url},{method},{status_code},{request_size},{response_size},{request_body},{response_body}\n" 15 | 16 | body_size_limit = 1000 17 | 18 | class BillingException(Exception): 19 | pass 20 | 21 | def escape(string): 22 | """ CSV escaping involves using double quotes for commas and newlines RFC4180. Double quotes are then escaped with a doublequote""" 23 | return '"' + string.replace('"', '""') + '"' 24 | 25 | def log(host, user, url, method, status_code, request_size, response_size, request_body, response_body): 26 | """ 27 | Logs message to billing log directory. 28 | host = where request came from (IP) 29 | user = logged in username, else None 30 | url = current URL 31 | method = request method, ie GET, POST 32 | status_code = response status code 33 | other params are self explanatory 34 | """ 35 | billing_log_directory = config_globals.get_billing_directory() 36 | now_datetime = datetime.datetime.utcnow() 37 | 38 | year = str(now_datetime.date().year) 39 | month = str(now_datetime.date().month) 40 | 41 | if not user: 42 | user = host 43 | 44 | user_log_path = os.path.join(billing_log_directory, year, month, user) 45 | 46 | if not os.path.exists(user_log_path): 47 | os.makedirs(user_log_path) 48 | 49 | log_file_path = os.path.join(user_log_path, log_name) 50 | log_file = open(log_file_path, "a+") 51 | 52 | time = now_datetime.isoformat() + 'Z' 53 | log_line = log_format.format(date_time=time, 54 | host=host, 55 | url=escape(url), 56 | method=method, 57 | status_code=status_code, 58 | request_size=request_size, 59 | response_size=response_size, 60 | request_body=escape(request_body[:body_size_limit]), 61 | response_body=escape(response_body[:body_size_limit])) 62 | log_file.write(log_line) 63 | log_file.close() 64 | 65 | 66 | class BillingLogMiddleware(object): 67 | """ Middleware class that will wrap around the pylons application. 68 | All calls to the pylons application will be routed through here, where we extract relevant parameters for billing log. 69 | """ 70 | 71 | def __init__(self, app, config): 72 | self.app = app 73 | 74 | def __call__(self, environ, start_response): 75 | response_created = self.app(environ, start_response) 76 | 77 | # If there is some exception in generating response code we will probably never get here for billing logs 78 | # This is probably ok assuming we only log proper requests. 79 | url = environ["CKAN_CURRENT_URL"] 80 | if url.startswith("/api/i18n/"): 81 | # skip internatinalization api calls which happen on every html page load 82 | return response_created 83 | user = c.user 84 | host = environ["REMOTE_ADDR"] 85 | 86 | method = request.method 87 | request_body = request.body 88 | request_size = len(request.body) 89 | status_code = response.status 90 | # currently observed response is a list, size is usually 1 but can be more 91 | # it seems like it can be more than 1 when response string is chunked 92 | # have noticed that this chunking occurs when displaying resource previews 93 | response_body = "".join(response_created) 94 | response_size = len(response_body) 95 | 96 | 97 | log(host, user, url, method, status_code, request_size, response_size, request_body, response_body) 98 | 99 | return response_created 100 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_fr.txt: -------------------------------------------------------------------------------- 1 | | From svn.tartarus.org/snowball/trunk/website/algorithms/french/stop.txt 2 | | This file is distributed under the BSD License. 3 | | See http://snowball.tartarus.org/license.php 4 | | Also see http://www.opensource.org/licenses/bsd-license.html 5 | | - Encoding was converted to UTF-8. 6 | | - This notice was added. 7 | | 8 | | NOTE: To use this file with StopFilterFactory, you must specify format="snowball" 9 | 10 | | A French stop word list. Comments begin with vertical bar. Each stop 11 | | word is at the start of a line. 12 | 13 | au | a + le 14 | aux | a + les 15 | avec | with 16 | ce | this 17 | ces | these 18 | dans | with 19 | de | of 20 | des | de + les 21 | du | de + le 22 | elle | she 23 | en | `of them' etc 24 | et | and 25 | eux | them 26 | il | he 27 | je | I 28 | la | the 29 | le | the 30 | leur | their 31 | lui | him 32 | ma | my (fem) 33 | mais | but 34 | me | me 35 | même | same; as in moi-même (myself) etc 36 | mes | me (pl) 37 | moi | me 38 | mon | my (masc) 39 | ne | not 40 | nos | our (pl) 41 | notre | our 42 | nous | we 43 | on | one 44 | ou | where 45 | par | by 46 | pas | not 47 | pour | for 48 | qu | que before vowel 49 | que | that 50 | qui | who 51 | sa | his, her (fem) 52 | se | oneself 53 | ses | his (pl) 54 | son | his, her (masc) 55 | sur | on 56 | ta | thy (fem) 57 | te | thee 58 | tes | thy (pl) 59 | toi | thee 60 | ton | thy (masc) 61 | tu | thou 62 | un | a 63 | une | a 64 | vos | your (pl) 65 | votre | your 66 | vous | you 67 | 68 | | single letter forms 69 | 70 | c | c' 71 | d | d' 72 | j | j' 73 | l | l' 74 | à | to, at 75 | m | m' 76 | n | n' 77 | s | s' 78 | t | t' 79 | y | there 80 | 81 | | forms of être (not including the infinitive): 82 | été 83 | étée 84 | étées 85 | étés 86 | étant 87 | suis 88 | es 89 | est 90 | sommes 91 | êtes 92 | sont 93 | serai 94 | seras 95 | sera 96 | serons 97 | serez 98 | seront 99 | serais 100 | serait 101 | serions 102 | seriez 103 | seraient 104 | étais 105 | était 106 | étions 107 | étiez 108 | étaient 109 | fus 110 | fut 111 | fûmes 112 | fûtes 113 | furent 114 | sois 115 | soit 116 | soyons 117 | soyez 118 | soient 119 | fusse 120 | fusses 121 | fût 122 | fussions 123 | fussiez 124 | fussent 125 | 126 | | forms of avoir (not including the infinitive): 127 | ayant 128 | eu 129 | eue 130 | eues 131 | eus 132 | ai 133 | as 134 | avons 135 | avez 136 | ont 137 | aurai 138 | auras 139 | aura 140 | aurons 141 | aurez 142 | auront 143 | aurais 144 | aurait 145 | aurions 146 | auriez 147 | auraient 148 | avais 149 | avait 150 | avions 151 | aviez 152 | avaient 153 | eut 154 | eûmes 155 | eûtes 156 | eurent 157 | aie 158 | aies 159 | ait 160 | ayons 161 | ayez 162 | aient 163 | eusse 164 | eusses 165 | eût 166 | eussions 167 | eussiez 168 | eussent 169 | 170 | | Later additions (from Jean-Christophe Deschamps) 171 | ceci | this 172 | cela | that 173 | celà | that 174 | cet | this 175 | cette | this 176 | ici | here 177 | ils | they 178 | les | the (pl) 179 | leurs | their (pl) 180 | quel | which 181 | quels | which 182 | quelle | which 183 | quelles | which 184 | sans | without 185 | soi | oneself 186 | 187 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/currency.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /ckanext/wotkit/config_globals.py: -------------------------------------------------------------------------------- 1 | import ckanext.wotkit.wotkit_proxy as wotkit_proxy 2 | import urlparse 3 | import routes 4 | import wotkitpy 5 | from ckan.common import c 6 | 7 | ''' 8 | 9 | This file contains all configuration globals used in ckan-wotkit hub. 10 | 11 | Additional important functions include storing all connections to wotkit instances. 12 | When a wotkit-harvester update is run, data is sent to all wotkit proxies defined. 13 | 14 | init should be called on initialization 15 | ''' 16 | 17 | # globals for now, access these through getter functions implemented in this file 18 | wotkit_proxy = None 19 | 20 | wotkit_url = None 21 | wotkit_api_url = None 22 | ckan_url = None 23 | smarstreets_base_url = None 24 | smartstreets_about_url = None 25 | logout_success_url = None 26 | 27 | # wotkit admin credentials used for managing users 28 | wotkit_admin_id = None 29 | wotkit_admin_key = None 30 | 31 | billing_directory = None 32 | 33 | def init(config): 34 | """ 35 | Initializes global URL's used. Input config is supplied from plugin.py and is read from the configuration .ini file 36 | """ 37 | global wotkit_url, wotkit_api_url, ckan_url, smarstreets_base_url, smartstreets_about_url, logout_success_url 38 | global wotkit_admin_id, wotkit_admin_key 39 | global billing_directory 40 | 41 | wotkit_url = get_required_config(config, "wotkit.wotkit_url") 42 | wotkit_api_url = get_required_config(config, "wotkit.api_url") 43 | 44 | ckan_url = get_required_config(config, "ckan.site_url") 45 | smarstreets_base_url = get_required_config(config, "smartstreets.base_url") 46 | smartstreets_about_url = get_required_config(config, "smartstreets.about_url") 47 | logout_success_url = get_required_config(config, "ckan.logout_success_url") 48 | 49 | check_url_starts_with_http(wotkit_url) 50 | check_url_starts_with_http(wotkit_api_url) 51 | check_url_starts_with_http(ckan_url) 52 | check_url_starts_with_http(smarstreets_base_url) 53 | check_url_starts_with_http(smartstreets_about_url) 54 | check_url_starts_with_http(logout_success_url) 55 | 56 | wotkit_admin_id = get_required_config(config, "wotkit.admin_id") 57 | wotkit_admin_key = get_required_config(config, "wotkit.admin_key") 58 | 59 | billing_directory = get_required_config(config, "billing.directory") 60 | 61 | global wotkit_proxy 62 | wotkit_proxy = wotkitpy.WotkitProxy(**{"api_url": wotkit_api_url, "username": wotkit_admin_id, "password": wotkit_admin_key}) 63 | 64 | def get_wotkit_proxy(): 65 | """ get main proxy """ 66 | return wotkit_proxy 67 | 68 | """ The URL functions below modify the URL's given in development.ini file to dynamically respond to HTTP and HTTPS. 69 | 70 | """ 71 | 72 | def modify_protocol(url): 73 | """Given a url that starts with http or https, returns the url with appropriate protocol HTTP or HTTPS""" 74 | protocol = c.environ["routes.cached_hostinfo"]["protocol"] 75 | return url.replace("http", protocol, 1) 76 | 77 | def get_ckan_url(): 78 | return modify_protocol(ckan_url) 79 | 80 | def get_wotkit_url(): 81 | return modify_protocol(wotkit_url) 82 | 83 | def get_wotkit_api_url(): 84 | return modify_protocol(wotkit_api_url) 85 | 86 | def get_logout_success_url(): 87 | return modify_protocol(logout_success_url) 88 | 89 | def get_logout_all_url(): 90 | """ Logout URL that triggers the redirects done to logout of all wotkit, ckan sites. """ 91 | wotkit_logout_url = get_wotkit_url() + "/logout/bridge" 92 | return get_ckan_url() + "/user/_logout?came_from=" + wotkit_logout_url + "," + get_logout_success_url() 93 | 94 | def get_smartstreets_base_url(): 95 | return modify_protocol(smarstreets_base_url) 96 | 97 | def get_smartstreets_about_url(): 98 | return modify_protocol(smartstreets_about_url) 99 | 100 | def get_required_config(config, name): 101 | """ Extract name from config, and throws if it doesn't exist """ 102 | value = config.get(name) 103 | if not value: 104 | raise Exception("No %s in configuration .ini file" % name) 105 | return value 106 | 107 | def check_url_starts_with_http(url): 108 | if url.startswith("https"): 109 | raise Exception("URL's must start with http, not https") 110 | if not url.startswith("http"): 111 | raise Exception("URL's must start with http. They are dynamically changed depending on user request to http, https") 112 | 113 | def get_billing_directory(): 114 | return billing_directory -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/richtext_doc.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Render a complex document in the results list 3 | *# 4 | 5 | ## Load Mime-Type List and Mapping 6 | #parse('mime_type_lists.vm') 7 | ## Sets: 8 | ## * supportedMimeTypes, AKA supportedtypes 9 | ## * mimeExtensionsMap, AKA extMap 10 | 11 | ## Title 12 | #if($doc.getFieldValue('title')) 13 | #set($title = $esc.html($doc.getFirstValue('title'))) 14 | #else 15 | #set($title = "["+$doc.getFieldValue('id')+"]") 16 | #end 17 | 18 | ## URL 19 | #if($doc.getFieldValue('url')) 20 | #set($url = $doc.getFieldValue('url')) 21 | #elseif($doc.getFieldValue('resourcename')) 22 | #set($url = "file:///$doc.getFieldValue('resourcename')") 23 | #else 24 | #set($url = "$doc.getFieldValue('id')") 25 | #end 26 | 27 | ## Sort out Mime-Type 28 | #set($ct = $list.get($doc.getFirstValue('content_type').split(";"),0)) 29 | #set($filename = $doc.getFieldValue('resourcename')) 30 | #set($filetype = false) 31 | #set($filetype = $mimeExtensionsMap.get($ct)) 32 | 33 | ## TODO: falling back to file extension is convenient, 34 | ## except when you don't have an icon for that extension 35 | ## example "application/vnd.openxmlformats-officedocument.wordprocessingml.document" 36 | ## document with a .docx extension. 37 | ## It'd be nice to fall back to an "unknown" or the existing "file" type 38 | ## We sort of do this below, but only if the filename has no extension 39 | ## (anything after the last dot). 40 | 41 | #if(!$filetype) 42 | #set($filetype = $filename.substring($filename.lastIndexOf(".")).substring(1)) 43 | #end 44 | 45 | ## #if(!$filetype) 46 | ## #set($filetype = "file") 47 | ## #end 48 | ## #if(!$supportedMimeTypes.contains($filetype)) 49 | ## #set($filetype = "file") 50 | ## #end 51 | 52 | ## Row 1: Icon and Title and mlt link 53 |
54 | ## Icon 55 | ## Small file type icons from http://www.splitbrain.org/projects/file_icons (public domain) 56 | 57 | 58 | ## Title, hyperlinked 59 | 60 | $title 61 | 62 | ## Link for MLT / More Like This / Find Similar 63 | 64 | #if($params.getBool('mlt', false) == false) 65 | 66 | More Like This 67 | #end 68 | 69 | 70 |
71 | 72 | ## Row 2?: ID / URL 73 |
74 | Id: #field('id') 75 |
76 | 77 | ## Resource Name 78 |
79 | #if($doc.getFieldValue('resourcename')) 80 | Resource name: $filename 81 | #elseif($url) 82 | URL: $url 83 | #end 84 | #if($ct) 85 | ($ct) 86 | #end 87 |
88 | 89 | ## Author 90 | #if($doc.getFieldValue('author')) 91 |
92 | Author: #field('author') 93 |
94 | #end 95 | 96 | ## Last_Modified Date 97 | #if($doc.getFieldValue('last_modified')) 98 |
99 | last-modified: 100 | #field('last_modified') 101 |
102 | #end 103 | 104 | ## Main content of doc 105 |
106 | #field('content') 107 |
108 | 109 | ## Display Similar Documents / MLT = More Like This 110 |
111 | #set($mlt = $mltResults.get($docId)) 112 | #set($mltOn = $params.getBool('mlt')) 113 | #if($mltOn == true) 114 |
115 | Similar Items 116 |
117 | #end 118 | ## If has MLT enabled An Entries to show 119 | #if ($mltOn && $mlt && $mlt.size() > 0) 120 |
    121 | #foreach($mltHit in $mlt) 122 | #set($mltId = $mltHit.getFieldValue('id')) 123 |
  • 124 |
    125 | 126 | $mltId 127 |
    128 |
    129 | 130 | Title: 131 | 132 | $mltHit.getFieldValue('title') 133 |
    134 |
    135 | 136 | Author: 137 | 138 | $mltHit.getFieldValue('author') 139 | 140 | Description: 141 | 142 | $mltHit.getFieldValue('description') 143 |
    144 |
  • 145 | #end ## end for each mltHit in $mlt 146 |
147 | ## Else MLT Enabled but no mlt results for this query 148 | #elseif($mltOn && $mlt.size() == 0) 149 |
No Similar Items Found
150 | #end 151 |
## div class=mlt 152 | 153 | #parse('debug.vm') 154 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/README.txt: -------------------------------------------------------------------------------- 1 | Introduction 2 | ------------ 3 | Solr Search Velocity Templates 4 | 5 | A quick demo of using Solr using http://wiki.apache.org/solr/VelocityResponseWriter 6 | 7 | You typically access these templates via: 8 | http://localhost:8983/solr/collection1/browse 9 | 10 | It's called "browse" because you can click around with your mouse 11 | without needing to type any search terms. And of course it 12 | also works as a standard search app as well. 13 | 14 | Known Limitations 15 | ----------------- 16 | * The /browse and the VelocityResponseWriter component 17 | serve content directly from Solr, which usually requires 18 | Solr's HTTP API to be exposed. Advanced users could 19 | potentially access other parts of Solr directly. 20 | * There are some hard coded fields in these templates. 21 | Since these templates live under conf, they should be 22 | considered part of the overall configuration, and 23 | must be coordinated with schema.xml and solrconfig.xml 24 | 25 | Velocity Info 26 | ------------- 27 | Java-based template language. 28 | 29 | It's nice in this context because change to the templates 30 | are immediately visible in browser on the next visit. 31 | 32 | Links: 33 | http://velocity.apache.org 34 | http://wiki.apache.org/velocity/ 35 | http://velocity.apache.org/engine/releases/velocity-1.7/user-guide.html 36 | 37 | 38 | File List 39 | --------- 40 | 41 | System and Misc: 42 | VM_global_library.vm - Macros used other templates, 43 | exact filename is important for Velocity to see it 44 | error.vm - shows errors, if any 45 | debug.vm - includes toggle links for "explain" and "all fields" 46 | activated by debug link in footer.vm 47 | README.txt - this file 48 | 49 | Overall Page Composition: 50 | browse.vm - Main entry point into templates 51 | layout.vm - overall HTML page layout 52 | head.vm - elements in the section of the HTML document 53 | header.vm - top section of page visible to users 54 | footer.vm - bottom section of page visible to users, 55 | includes debug and help links 56 | main.css - CSS style for overall pages 57 | see also jquery.autocomplete.css 58 | 59 | Query Form and Options: 60 | query_form.vm - renders query form 61 | query_group.vm - group by fields 62 | e.g.: Manufacturer or Poplularity 63 | query_spatial.vm - select box for location based Geospacial search 64 | 65 | Spelling Suggestions: 66 | did_you_mean.vm - hyperlinked spelling suggestions in results 67 | suggest.vm - dynamic spelling suggestions 68 | as you type in the search form 69 | jquery.autocomplete.js - supporting files for dynamic suggestions 70 | jquery.autocomplete.css - Most CSS is defined in main.css 71 | 72 | 73 | Search Results, General: 74 | (see also browse.vm) 75 | tabs.vm - provides navigation to advanced search options 76 | pagination_top.vm - paging and staticis at top of results 77 | pagination_bottom.vm - paging and staticis at bottom of results 78 | results_list.vm 79 | hit.vm - called for each matching doc, 80 | decides which template to use 81 | hit_grouped.vm - display results grouped by field values 82 | product_doc.vm - display a Product 83 | join_doc.vm - display a joined document 84 | richtext_doc.vm - display a complex/misc. document 85 | hit_plain.vm - basic display of all fields, 86 | edit results_list.vm to enable this 87 | 88 | 89 | Search Results, Facets & Clusters: 90 | facets.vm - calls the 4 facet and 1 cluster template 91 | facet_fields.vm - display facets based on field values 92 | e.g.: fields specified by &facet.field= 93 | facet_queries.vm - display facets based on specific facet queries 94 | e.g.: facets specified by &facet.query= 95 | facet_ranges.vm - display facets based on ranges 96 | e.g.: ranges specified by &facet.range= 97 | facet_pivot.vm - display pivot based facets 98 | e.g.: facets specified by &facet.pivot= 99 | cluster.vm - if clustering is available 100 | then call cluster_results.vm 101 | cluster_results.vm - actual rendering of clusters 102 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/xslt/example.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 19 | 20 | 23 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | <xsl:value-of select="$title"/> 35 | 36 | 37 | 38 |

39 |
40 | This has been formatted by the sample "example.xsl" transform - 41 | use your own XSLT to get a nicer page 42 |
43 | 44 | 45 | 46 |
47 | 48 | 49 | 50 |
51 | 52 | 53 | 54 | 55 |
56 |
57 |
58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | javascript:toggle("");? 72 |
73 | 74 | exp 75 | 76 | 77 | 78 | 79 | 80 |
81 | 82 | 83 |
84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 |
    92 | 93 |
  • 94 |
    95 |
96 | 97 | 98 |
99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 121 | 130 | 131 | 132 |
133 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_id.txt: -------------------------------------------------------------------------------- 1 | # from appendix D of: A Study of Stemming Effects on Information 2 | # Retrieval in Bahasa Indonesia 3 | ada 4 | adanya 5 | adalah 6 | adapun 7 | agak 8 | agaknya 9 | agar 10 | akan 11 | akankah 12 | akhirnya 13 | aku 14 | akulah 15 | amat 16 | amatlah 17 | anda 18 | andalah 19 | antar 20 | diantaranya 21 | antara 22 | antaranya 23 | diantara 24 | apa 25 | apaan 26 | mengapa 27 | apabila 28 | apakah 29 | apalagi 30 | apatah 31 | atau 32 | ataukah 33 | ataupun 34 | bagai 35 | bagaikan 36 | sebagai 37 | sebagainya 38 | bagaimana 39 | bagaimanapun 40 | sebagaimana 41 | bagaimanakah 42 | bagi 43 | bahkan 44 | bahwa 45 | bahwasanya 46 | sebaliknya 47 | banyak 48 | sebanyak 49 | beberapa 50 | seberapa 51 | begini 52 | beginian 53 | beginikah 54 | beginilah 55 | sebegini 56 | begitu 57 | begitukah 58 | begitulah 59 | begitupun 60 | sebegitu 61 | belum 62 | belumlah 63 | sebelum 64 | sebelumnya 65 | sebenarnya 66 | berapa 67 | berapakah 68 | berapalah 69 | berapapun 70 | betulkah 71 | sebetulnya 72 | biasa 73 | biasanya 74 | bila 75 | bilakah 76 | bisa 77 | bisakah 78 | sebisanya 79 | boleh 80 | bolehkah 81 | bolehlah 82 | buat 83 | bukan 84 | bukankah 85 | bukanlah 86 | bukannya 87 | cuma 88 | percuma 89 | dahulu 90 | dalam 91 | dan 92 | dapat 93 | dari 94 | daripada 95 | dekat 96 | demi 97 | demikian 98 | demikianlah 99 | sedemikian 100 | dengan 101 | depan 102 | di 103 | dia 104 | dialah 105 | dini 106 | diri 107 | dirinya 108 | terdiri 109 | dong 110 | dulu 111 | enggak 112 | enggaknya 113 | entah 114 | entahlah 115 | terhadap 116 | terhadapnya 117 | hal 118 | hampir 119 | hanya 120 | hanyalah 121 | harus 122 | haruslah 123 | harusnya 124 | seharusnya 125 | hendak 126 | hendaklah 127 | hendaknya 128 | hingga 129 | sehingga 130 | ia 131 | ialah 132 | ibarat 133 | ingin 134 | inginkah 135 | inginkan 136 | ini 137 | inikah 138 | inilah 139 | itu 140 | itukah 141 | itulah 142 | jangan 143 | jangankan 144 | janganlah 145 | jika 146 | jikalau 147 | juga 148 | justru 149 | kala 150 | kalau 151 | kalaulah 152 | kalaupun 153 | kalian 154 | kami 155 | kamilah 156 | kamu 157 | kamulah 158 | kan 159 | kapan 160 | kapankah 161 | kapanpun 162 | dikarenakan 163 | karena 164 | karenanya 165 | ke 166 | kecil 167 | kemudian 168 | kenapa 169 | kepada 170 | kepadanya 171 | ketika 172 | seketika 173 | khususnya 174 | kini 175 | kinilah 176 | kiranya 177 | sekiranya 178 | kita 179 | kitalah 180 | kok 181 | lagi 182 | lagian 183 | selagi 184 | lah 185 | lain 186 | lainnya 187 | melainkan 188 | selaku 189 | lalu 190 | melalui 191 | terlalu 192 | lama 193 | lamanya 194 | selama 195 | selama 196 | selamanya 197 | lebih 198 | terlebih 199 | bermacam 200 | macam 201 | semacam 202 | maka 203 | makanya 204 | makin 205 | malah 206 | malahan 207 | mampu 208 | mampukah 209 | mana 210 | manakala 211 | manalagi 212 | masih 213 | masihkah 214 | semasih 215 | masing 216 | mau 217 | maupun 218 | semaunya 219 | memang 220 | mereka 221 | merekalah 222 | meski 223 | meskipun 224 | semula 225 | mungkin 226 | mungkinkah 227 | nah 228 | namun 229 | nanti 230 | nantinya 231 | nyaris 232 | oleh 233 | olehnya 234 | seorang 235 | seseorang 236 | pada 237 | padanya 238 | padahal 239 | paling 240 | sepanjang 241 | pantas 242 | sepantasnya 243 | sepantasnyalah 244 | para 245 | pasti 246 | pastilah 247 | per 248 | pernah 249 | pula 250 | pun 251 | merupakan 252 | rupanya 253 | serupa 254 | saat 255 | saatnya 256 | sesaat 257 | saja 258 | sajalah 259 | saling 260 | bersama 261 | sama 262 | sesama 263 | sambil 264 | sampai 265 | sana 266 | sangat 267 | sangatlah 268 | saya 269 | sayalah 270 | se 271 | sebab 272 | sebabnya 273 | sebuah 274 | tersebut 275 | tersebutlah 276 | sedang 277 | sedangkan 278 | sedikit 279 | sedikitnya 280 | segala 281 | segalanya 282 | segera 283 | sesegera 284 | sejak 285 | sejenak 286 | sekali 287 | sekalian 288 | sekalipun 289 | sesekali 290 | sekaligus 291 | sekarang 292 | sekarang 293 | sekitar 294 | sekitarnya 295 | sela 296 | selain 297 | selalu 298 | seluruh 299 | seluruhnya 300 | semakin 301 | sementara 302 | sempat 303 | semua 304 | semuanya 305 | sendiri 306 | sendirinya 307 | seolah 308 | seperti 309 | sepertinya 310 | sering 311 | seringnya 312 | serta 313 | siapa 314 | siapakah 315 | siapapun 316 | disini 317 | disinilah 318 | sini 319 | sinilah 320 | sesuatu 321 | sesuatunya 322 | suatu 323 | sesudah 324 | sesudahnya 325 | sudah 326 | sudahkah 327 | sudahlah 328 | supaya 329 | tadi 330 | tadinya 331 | tak 332 | tanpa 333 | setelah 334 | telah 335 | tentang 336 | tentu 337 | tentulah 338 | tentunya 339 | tertentu 340 | seterusnya 341 | tapi 342 | tetapi 343 | setiap 344 | tiap 345 | setidaknya 346 | tidak 347 | tidakkah 348 | tidaklah 349 | toh 350 | waduh 351 | wah 352 | wahai 353 | sewaktu 354 | walau 355 | walaupun 356 | wong 357 | yaitu 358 | yakni 359 | yang 360 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_nl.txt: -------------------------------------------------------------------------------- 1 | | From svn.tartarus.org/snowball/trunk/website/algorithms/dutch/stop.txt 2 | | This file is distributed under the BSD License. 3 | | See http://snowball.tartarus.org/license.php 4 | | Also see http://www.opensource.org/licenses/bsd-license.html 5 | | - Encoding was converted to UTF-8. 6 | | - This notice was added. 7 | | 8 | | NOTE: To use this file with StopFilterFactory, you must specify format="snowball" 9 | 10 | | A Dutch stop word list. Comments begin with vertical bar. Each stop 11 | | word is at the start of a line. 12 | 13 | | This is a ranked list (commonest to rarest) of stopwords derived from 14 | | a large sample of Dutch text. 15 | 16 | | Dutch stop words frequently exhibit homonym clashes. These are indicated 17 | | clearly below. 18 | 19 | de | the 20 | en | and 21 | van | of, from 22 | ik | I, the ego 23 | te | (1) chez, at etc, (2) to, (3) too 24 | dat | that, which 25 | die | that, those, who, which 26 | in | in, inside 27 | een | a, an, one 28 | hij | he 29 | het | the, it 30 | niet | not, nothing, naught 31 | zijn | (1) to be, being, (2) his, one's, its 32 | is | is 33 | was | (1) was, past tense of all persons sing. of 'zijn' (to be) (2) wax, (3) the washing, (4) rise of river 34 | op | on, upon, at, in, up, used up 35 | aan | on, upon, to (as dative) 36 | met | with, by 37 | als | like, such as, when 38 | voor | (1) before, in front of, (2) furrow 39 | had | had, past tense all persons sing. of 'hebben' (have) 40 | er | there 41 | maar | but, only 42 | om | round, about, for etc 43 | hem | him 44 | dan | then 45 | zou | should/would, past tense all persons sing. of 'zullen' 46 | of | or, whether, if 47 | wat | what, something, anything 48 | mijn | possessive and noun 'mine' 49 | men | people, 'one' 50 | dit | this 51 | zo | so, thus, in this way 52 | door | through by 53 | over | over, across 54 | ze | she, her, they, them 55 | zich | oneself 56 | bij | (1) a bee, (2) by, near, at 57 | ook | also, too 58 | tot | till, until 59 | je | you 60 | mij | me 61 | uit | out of, from 62 | der | Old Dutch form of 'van der' still found in surnames 63 | daar | (1) there, (2) because 64 | haar | (1) her, their, them, (2) hair 65 | naar | (1) unpleasant, unwell etc, (2) towards, (3) as 66 | heb | present first person sing. of 'to have' 67 | hoe | how, why 68 | heeft | present third person sing. of 'to have' 69 | hebben | 'to have' and various parts thereof 70 | deze | this 71 | u | you 72 | want | (1) for, (2) mitten, (3) rigging 73 | nog | yet, still 74 | zal | 'shall', first and third person sing. of verb 'zullen' (will) 75 | me | me 76 | zij | she, they 77 | nu | now 78 | ge | 'thou', still used in Belgium and south Netherlands 79 | geen | none 80 | omdat | because 81 | iets | something, somewhat 82 | worden | to become, grow, get 83 | toch | yet, still 84 | al | all, every, each 85 | waren | (1) 'were' (2) to wander, (3) wares, (3) 86 | veel | much, many 87 | meer | (1) more, (2) lake 88 | doen | to do, to make 89 | toen | then, when 90 | moet | noun 'spot/mote' and present form of 'to must' 91 | ben | (1) am, (2) 'are' in interrogative second person singular of 'to be' 92 | zonder | without 93 | kan | noun 'can' and present form of 'to be able' 94 | hun | their, them 95 | dus | so, consequently 96 | alles | all, everything, anything 97 | onder | under, beneath 98 | ja | yes, of course 99 | eens | once, one day 100 | hier | here 101 | wie | who 102 | werd | imperfect third person sing. of 'become' 103 | altijd | always 104 | doch | yet, but etc 105 | wordt | present third person sing. of 'become' 106 | wezen | (1) to be, (2) 'been' as in 'been fishing', (3) orphans 107 | kunnen | to be able 108 | ons | us/our 109 | zelf | self 110 | tegen | against, towards, at 111 | na | after, near 112 | reeds | already 113 | wil | (1) present tense of 'want', (2) 'will', noun, (3) fender 114 | kon | could; past tense of 'to be able' 115 | niets | nothing 116 | uw | your 117 | iemand | somebody 118 | geweest | been; past participle of 'be' 119 | andere | other 120 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_no.txt: -------------------------------------------------------------------------------- 1 | | From svn.tartarus.org/snowball/trunk/website/algorithms/norwegian/stop.txt 2 | | This file is distributed under the BSD License. 3 | | See http://snowball.tartarus.org/license.php 4 | | Also see http://www.opensource.org/licenses/bsd-license.html 5 | | - Encoding was converted to UTF-8. 6 | | - This notice was added. 7 | | 8 | | NOTE: To use this file with StopFilterFactory, you must specify format="snowball" 9 | 10 | | A Norwegian stop word list. Comments begin with vertical bar. Each stop 11 | | word is at the start of a line. 12 | 13 | | This stop word list is for the dominant bokmål dialect. Words unique 14 | | to nynorsk are marked *. 15 | 16 | | Revised by Jan Bruusgaard , Jan 2005 17 | 18 | og | and 19 | i | in 20 | jeg | I 21 | det | it/this/that 22 | at | to (w. inf.) 23 | en | a/an 24 | et | a/an 25 | den | it/this/that 26 | til | to 27 | er | is/am/are 28 | som | who/that 29 | på | on 30 | de | they / you(formal) 31 | med | with 32 | han | he 33 | av | of 34 | ikke | not 35 | ikkje | not * 36 | der | there 37 | så | so 38 | var | was/were 39 | meg | me 40 | seg | you 41 | men | but 42 | ett | one 43 | har | have 44 | om | about 45 | vi | we 46 | min | my 47 | mitt | my 48 | ha | have 49 | hadde | had 50 | hun | she 51 | nå | now 52 | over | over 53 | da | when/as 54 | ved | by/know 55 | fra | from 56 | du | you 57 | ut | out 58 | sin | your 59 | dem | them 60 | oss | us 61 | opp | up 62 | man | you/one 63 | kan | can 64 | hans | his 65 | hvor | where 66 | eller | or 67 | hva | what 68 | skal | shall/must 69 | selv | self (reflective) 70 | sjøl | self (reflective) 71 | her | here 72 | alle | all 73 | vil | will 74 | bli | become 75 | ble | became 76 | blei | became * 77 | blitt | have become 78 | kunne | could 79 | inn | in 80 | når | when 81 | være | be 82 | kom | come 83 | noen | some 84 | noe | some 85 | ville | would 86 | dere | you 87 | som | who/which/that 88 | deres | their/theirs 89 | kun | only/just 90 | ja | yes 91 | etter | after 92 | ned | down 93 | skulle | should 94 | denne | this 95 | for | for/because 96 | deg | you 97 | si | hers/his 98 | sine | hers/his 99 | sitt | hers/his 100 | mot | against 101 | å | to 102 | meget | much 103 | hvorfor | why 104 | dette | this 105 | disse | these/those 106 | uten | without 107 | hvordan | how 108 | ingen | none 109 | din | your 110 | ditt | your 111 | blir | become 112 | samme | same 113 | hvilken | which 114 | hvilke | which (plural) 115 | sånn | such a 116 | inni | inside/within 117 | mellom | between 118 | vår | our 119 | hver | each 120 | hvem | who 121 | vors | us/ours 122 | hvis | whose 123 | både | both 124 | bare | only/just 125 | enn | than 126 | fordi | as/because 127 | før | before 128 | mange | many 129 | også | also 130 | slik | just 131 | vært | been 132 | være | to be 133 | båe | both * 134 | begge | both 135 | siden | since 136 | dykk | your * 137 | dykkar | yours * 138 | dei | they * 139 | deira | them * 140 | deires | theirs * 141 | deim | them * 142 | di | your (fem.) * 143 | då | as/when * 144 | eg | I * 145 | ein | a/an * 146 | eit | a/an * 147 | eitt | a/an * 148 | elles | or * 149 | honom | he * 150 | hjå | at * 151 | ho | she * 152 | hoe | she * 153 | henne | her 154 | hennar | her/hers 155 | hennes | hers 156 | hoss | how * 157 | hossen | how * 158 | ikkje | not * 159 | ingi | noone * 160 | inkje | noone * 161 | korleis | how * 162 | korso | how * 163 | kva | what/which * 164 | kvar | where * 165 | kvarhelst | where * 166 | kven | who/whom * 167 | kvi | why * 168 | kvifor | why * 169 | me | we * 170 | medan | while * 171 | mi | my * 172 | mine | my * 173 | mykje | much * 174 | no | now * 175 | nokon | some (masc./neut.) * 176 | noka | some (fem.) * 177 | nokor | some * 178 | noko | some * 179 | nokre | some * 180 | si | his/hers * 181 | sia | since * 182 | sidan | since * 183 | so | so * 184 | somt | some * 185 | somme | some * 186 | um | about* 187 | upp | up * 188 | vere | be * 189 | vore | was * 190 | verte | become * 191 | vort | become * 192 | varte | became * 193 | vart | became * 194 | 195 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_pt.txt: -------------------------------------------------------------------------------- 1 | | From svn.tartarus.org/snowball/trunk/website/algorithms/portuguese/stop.txt 2 | | This file is distributed under the BSD License. 3 | | See http://snowball.tartarus.org/license.php 4 | | Also see http://www.opensource.org/licenses/bsd-license.html 5 | | - Encoding was converted to UTF-8. 6 | | - This notice was added. 7 | | 8 | | NOTE: To use this file with StopFilterFactory, you must specify format="snowball" 9 | 10 | | A Portuguese stop word list. Comments begin with vertical bar. Each stop 11 | | word is at the start of a line. 12 | 13 | 14 | | The following is a ranked list (commonest to rarest) of stopwords 15 | | deriving from a large sample of text. 16 | 17 | | Extra words have been added at the end. 18 | 19 | de | of, from 20 | a | the; to, at; her 21 | o | the; him 22 | que | who, that 23 | e | and 24 | do | de + o 25 | da | de + a 26 | em | in 27 | um | a 28 | para | for 29 | | é from SER 30 | com | with 31 | não | not, no 32 | uma | a 33 | os | the; them 34 | no | em + o 35 | se | himself etc 36 | na | em + a 37 | por | for 38 | mais | more 39 | as | the; them 40 | dos | de + os 41 | como | as, like 42 | mas | but 43 | | foi from SER 44 | ao | a + o 45 | ele | he 46 | das | de + as 47 | | tem from TER 48 | à | a + a 49 | seu | his 50 | sua | her 51 | ou | or 52 | | ser from SER 53 | quando | when 54 | muito | much 55 | | há from HAV 56 | nos | em + os; us 57 | já | already, now 58 | | está from EST 59 | eu | I 60 | também | also 61 | só | only, just 62 | pelo | per + o 63 | pela | per + a 64 | até | up to 65 | isso | that 66 | ela | he 67 | entre | between 68 | | era from SER 69 | depois | after 70 | sem | without 71 | mesmo | same 72 | aos | a + os 73 | | ter from TER 74 | seus | his 75 | quem | whom 76 | nas | em + as 77 | me | me 78 | esse | that 79 | eles | they 80 | | estão from EST 81 | você | you 82 | | tinha from TER 83 | | foram from SER 84 | essa | that 85 | num | em + um 86 | nem | nor 87 | suas | her 88 | meu | my 89 | às | a + as 90 | minha | my 91 | | têm from TER 92 | numa | em + uma 93 | pelos | per + os 94 | elas | they 95 | | havia from HAV 96 | | seja from SER 97 | qual | which 98 | | será from SER 99 | nós | we 100 | | tenho from TER 101 | lhe | to him, her 102 | deles | of them 103 | essas | those 104 | esses | those 105 | pelas | per + as 106 | este | this 107 | | fosse from SER 108 | dele | of him 109 | 110 | | other words. There are many contractions such as naquele = em+aquele, 111 | | mo = me+o, but they are rare. 112 | | Indefinite article plural forms are also rare. 113 | 114 | tu | thou 115 | te | thee 116 | vocês | you (plural) 117 | vos | you 118 | lhes | to them 119 | meus | my 120 | minhas 121 | teu | thy 122 | tua 123 | teus 124 | tuas 125 | nosso | our 126 | nossa 127 | nossos 128 | nossas 129 | 130 | dela | of her 131 | delas | of them 132 | 133 | esta | this 134 | estes | these 135 | estas | these 136 | aquele | that 137 | aquela | that 138 | aqueles | those 139 | aquelas | those 140 | isto | this 141 | aquilo | that 142 | 143 | | forms of estar, to be (not including the infinitive): 144 | estou 145 | está 146 | estamos 147 | estão 148 | estive 149 | esteve 150 | estivemos 151 | estiveram 152 | estava 153 | estávamos 154 | estavam 155 | estivera 156 | estivéramos 157 | esteja 158 | estejamos 159 | estejam 160 | estivesse 161 | estivéssemos 162 | estivessem 163 | estiver 164 | estivermos 165 | estiverem 166 | 167 | | forms of haver, to have (not including the infinitive): 168 | hei 169 | há 170 | havemos 171 | hão 172 | houve 173 | houvemos 174 | houveram 175 | houvera 176 | houvéramos 177 | haja 178 | hajamos 179 | hajam 180 | houvesse 181 | houvéssemos 182 | houvessem 183 | houver 184 | houvermos 185 | houverem 186 | houverei 187 | houverá 188 | houveremos 189 | houverão 190 | houveria 191 | houveríamos 192 | houveriam 193 | 194 | | forms of ser, to be (not including the infinitive): 195 | sou 196 | somos 197 | são 198 | era 199 | éramos 200 | eram 201 | fui 202 | foi 203 | fomos 204 | foram 205 | fora 206 | fôramos 207 | seja 208 | sejamos 209 | sejam 210 | fosse 211 | fôssemos 212 | fossem 213 | for 214 | formos 215 | forem 216 | serei 217 | será 218 | seremos 219 | serão 220 | seria 221 | seríamos 222 | seriam 223 | 224 | | forms of ter, to have (not including the infinitive): 225 | tenho 226 | tem 227 | temos 228 | tém 229 | tinha 230 | tínhamos 231 | tinham 232 | tive 233 | teve 234 | tivemos 235 | tiveram 236 | tivera 237 | tivéramos 238 | tenha 239 | tenhamos 240 | tenham 241 | tivesse 242 | tivéssemos 243 | tivessem 244 | tiver 245 | tivermos 246 | tiverem 247 | terei 248 | terá 249 | teremos 250 | terão 251 | teria 252 | teríamos 253 | teriam 254 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_de.txt: -------------------------------------------------------------------------------- 1 | | From svn.tartarus.org/snowball/trunk/website/algorithms/german/stop.txt 2 | | This file is distributed under the BSD License. 3 | | See http://snowball.tartarus.org/license.php 4 | | Also see http://www.opensource.org/licenses/bsd-license.html 5 | | - Encoding was converted to UTF-8. 6 | | - This notice was added. 7 | | 8 | | NOTE: To use this file with StopFilterFactory, you must specify format="snowball" 9 | 10 | | A German stop word list. Comments begin with vertical bar. Each stop 11 | | word is at the start of a line. 12 | 13 | | The number of forms in this list is reduced significantly by passing it 14 | | through the German stemmer. 15 | 16 | 17 | aber | but 18 | 19 | alle | all 20 | allem 21 | allen 22 | aller 23 | alles 24 | 25 | als | than, as 26 | also | so 27 | am | an + dem 28 | an | at 29 | 30 | ander | other 31 | andere 32 | anderem 33 | anderen 34 | anderer 35 | anderes 36 | anderm 37 | andern 38 | anderr 39 | anders 40 | 41 | auch | also 42 | auf | on 43 | aus | out of 44 | bei | by 45 | bin | am 46 | bis | until 47 | bist | art 48 | da | there 49 | damit | with it 50 | dann | then 51 | 52 | der | the 53 | den 54 | des 55 | dem 56 | die 57 | das 58 | 59 | daß | that 60 | 61 | derselbe | the same 62 | derselben 63 | denselben 64 | desselben 65 | demselben 66 | dieselbe 67 | dieselben 68 | dasselbe 69 | 70 | dazu | to that 71 | 72 | dein | thy 73 | deine 74 | deinem 75 | deinen 76 | deiner 77 | deines 78 | 79 | denn | because 80 | 81 | derer | of those 82 | dessen | of him 83 | 84 | dich | thee 85 | dir | to thee 86 | du | thou 87 | 88 | dies | this 89 | diese 90 | diesem 91 | diesen 92 | dieser 93 | dieses 94 | 95 | 96 | doch | (several meanings) 97 | dort | (over) there 98 | 99 | 100 | durch | through 101 | 102 | ein | a 103 | eine 104 | einem 105 | einen 106 | einer 107 | eines 108 | 109 | einig | some 110 | einige 111 | einigem 112 | einigen 113 | einiger 114 | einiges 115 | 116 | einmal | once 117 | 118 | er | he 119 | ihn | him 120 | ihm | to him 121 | 122 | es | it 123 | etwas | something 124 | 125 | euer | your 126 | eure 127 | eurem 128 | euren 129 | eurer 130 | eures 131 | 132 | für | for 133 | gegen | towards 134 | gewesen | p.p. of sein 135 | hab | have 136 | habe | have 137 | haben | have 138 | hat | has 139 | hatte | had 140 | hatten | had 141 | hier | here 142 | hin | there 143 | hinter | behind 144 | 145 | ich | I 146 | mich | me 147 | mir | to me 148 | 149 | 150 | ihr | you, to her 151 | ihre 152 | ihrem 153 | ihren 154 | ihrer 155 | ihres 156 | euch | to you 157 | 158 | im | in + dem 159 | in | in 160 | indem | while 161 | ins | in + das 162 | ist | is 163 | 164 | jede | each, every 165 | jedem 166 | jeden 167 | jeder 168 | jedes 169 | 170 | jene | that 171 | jenem 172 | jenen 173 | jener 174 | jenes 175 | 176 | jetzt | now 177 | kann | can 178 | 179 | kein | no 180 | keine 181 | keinem 182 | keinen 183 | keiner 184 | keines 185 | 186 | können | can 187 | könnte | could 188 | machen | do 189 | man | one 190 | 191 | manche | some, many a 192 | manchem 193 | manchen 194 | mancher 195 | manches 196 | 197 | mein | my 198 | meine 199 | meinem 200 | meinen 201 | meiner 202 | meines 203 | 204 | mit | with 205 | muss | must 206 | musste | had to 207 | nach | to(wards) 208 | nicht | not 209 | nichts | nothing 210 | noch | still, yet 211 | nun | now 212 | nur | only 213 | ob | whether 214 | oder | or 215 | ohne | without 216 | sehr | very 217 | 218 | sein | his 219 | seine 220 | seinem 221 | seinen 222 | seiner 223 | seines 224 | 225 | selbst | self 226 | sich | herself 227 | 228 | sie | they, she 229 | ihnen | to them 230 | 231 | sind | are 232 | so | so 233 | 234 | solche | such 235 | solchem 236 | solchen 237 | solcher 238 | solches 239 | 240 | soll | shall 241 | sollte | should 242 | sondern | but 243 | sonst | else 244 | über | over 245 | um | about, around 246 | und | and 247 | 248 | uns | us 249 | unse 250 | unsem 251 | unsen 252 | unser 253 | unses 254 | 255 | unter | under 256 | viel | much 257 | vom | von + dem 258 | von | from 259 | vor | before 260 | während | while 261 | war | was 262 | waren | were 263 | warst | wast 264 | was | what 265 | weg | away, off 266 | weil | because 267 | weiter | further 268 | 269 | welche | which 270 | welchem 271 | welchen 272 | welcher 273 | welches 274 | 275 | wenn | when 276 | werde | will 277 | werden | will 278 | wie | how 279 | wieder | again 280 | will | want 281 | wir | we 282 | wird | will 283 | wirst | willst 284 | wo | where 285 | wollen | want 286 | wollte | wanted 287 | würde | would 288 | würden | would 289 | zu | to 290 | zum | zu + dem 291 | zur | zu + der 292 | zwar | indeed 293 | zwischen | between 294 | 295 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_it.txt: -------------------------------------------------------------------------------- 1 | | From svn.tartarus.org/snowball/trunk/website/algorithms/italian/stop.txt 2 | | This file is distributed under the BSD License. 3 | | See http://snowball.tartarus.org/license.php 4 | | Also see http://www.opensource.org/licenses/bsd-license.html 5 | | - Encoding was converted to UTF-8. 6 | | - This notice was added. 7 | | 8 | | NOTE: To use this file with StopFilterFactory, you must specify format="snowball" 9 | 10 | | An Italian stop word list. Comments begin with vertical bar. Each stop 11 | | word is at the start of a line. 12 | 13 | ad | a (to) before vowel 14 | al | a + il 15 | allo | a + lo 16 | ai | a + i 17 | agli | a + gli 18 | all | a + l' 19 | agl | a + gl' 20 | alla | a + la 21 | alle | a + le 22 | con | with 23 | col | con + il 24 | coi | con + i (forms collo, cogli etc are now very rare) 25 | da | from 26 | dal | da + il 27 | dallo | da + lo 28 | dai | da + i 29 | dagli | da + gli 30 | dall | da + l' 31 | dagl | da + gll' 32 | dalla | da + la 33 | dalle | da + le 34 | di | of 35 | del | di + il 36 | dello | di + lo 37 | dei | di + i 38 | degli | di + gli 39 | dell | di + l' 40 | degl | di + gl' 41 | della | di + la 42 | delle | di + le 43 | in | in 44 | nel | in + el 45 | nello | in + lo 46 | nei | in + i 47 | negli | in + gli 48 | nell | in + l' 49 | negl | in + gl' 50 | nella | in + la 51 | nelle | in + le 52 | su | on 53 | sul | su + il 54 | sullo | su + lo 55 | sui | su + i 56 | sugli | su + gli 57 | sull | su + l' 58 | sugl | su + gl' 59 | sulla | su + la 60 | sulle | su + le 61 | per | through, by 62 | tra | among 63 | contro | against 64 | io | I 65 | tu | thou 66 | lui | he 67 | lei | she 68 | noi | we 69 | voi | you 70 | loro | they 71 | mio | my 72 | mia | 73 | miei | 74 | mie | 75 | tuo | 76 | tua | 77 | tuoi | thy 78 | tue | 79 | suo | 80 | sua | 81 | suoi | his, her 82 | sue | 83 | nostro | our 84 | nostra | 85 | nostri | 86 | nostre | 87 | vostro | your 88 | vostra | 89 | vostri | 90 | vostre | 91 | mi | me 92 | ti | thee 93 | ci | us, there 94 | vi | you, there 95 | lo | him, the 96 | la | her, the 97 | li | them 98 | le | them, the 99 | gli | to him, the 100 | ne | from there etc 101 | il | the 102 | un | a 103 | uno | a 104 | una | a 105 | ma | but 106 | ed | and 107 | se | if 108 | perché | why, because 109 | anche | also 110 | come | how 111 | dov | where (as dov') 112 | dove | where 113 | che | who, that 114 | chi | who 115 | cui | whom 116 | non | not 117 | più | more 118 | quale | who, that 119 | quanto | how much 120 | quanti | 121 | quanta | 122 | quante | 123 | quello | that 124 | quelli | 125 | quella | 126 | quelle | 127 | questo | this 128 | questi | 129 | questa | 130 | queste | 131 | si | yes 132 | tutto | all 133 | tutti | all 134 | 135 | | single letter forms: 136 | 137 | a | at 138 | c | as c' for ce or ci 139 | e | and 140 | i | the 141 | l | as l' 142 | o | or 143 | 144 | | forms of avere, to have (not including the infinitive): 145 | 146 | ho 147 | hai 148 | ha 149 | abbiamo 150 | avete 151 | hanno 152 | abbia 153 | abbiate 154 | abbiano 155 | avrò 156 | avrai 157 | avrà 158 | avremo 159 | avrete 160 | avranno 161 | avrei 162 | avresti 163 | avrebbe 164 | avremmo 165 | avreste 166 | avrebbero 167 | avevo 168 | avevi 169 | aveva 170 | avevamo 171 | avevate 172 | avevano 173 | ebbi 174 | avesti 175 | ebbe 176 | avemmo 177 | aveste 178 | ebbero 179 | avessi 180 | avesse 181 | avessimo 182 | avessero 183 | avendo 184 | avuto 185 | avuta 186 | avuti 187 | avute 188 | 189 | | forms of essere, to be (not including the infinitive): 190 | sono 191 | sei 192 | è 193 | siamo 194 | siete 195 | sia 196 | siate 197 | siano 198 | sarò 199 | sarai 200 | sarà 201 | saremo 202 | sarete 203 | saranno 204 | sarei 205 | saresti 206 | sarebbe 207 | saremmo 208 | sareste 209 | sarebbero 210 | ero 211 | eri 212 | era 213 | eravamo 214 | eravate 215 | erano 216 | fui 217 | fosti 218 | fu 219 | fummo 220 | foste 221 | furono 222 | fossi 223 | fosse 224 | fossimo 225 | fossero 226 | essendo 227 | 228 | | forms of fare, to do (not including the infinitive, fa, fat-): 229 | faccio 230 | fai 231 | facciamo 232 | fanno 233 | faccia 234 | facciate 235 | facciano 236 | farò 237 | farai 238 | farà 239 | faremo 240 | farete 241 | faranno 242 | farei 243 | faresti 244 | farebbe 245 | faremmo 246 | fareste 247 | farebbero 248 | facevo 249 | facevi 250 | faceva 251 | facevamo 252 | facevate 253 | facevano 254 | feci 255 | facesti 256 | fece 257 | facemmo 258 | faceste 259 | fecero 260 | facessi 261 | facesse 262 | facessimo 263 | facessero 264 | facendo 265 | 266 | | forms of stare, to be (not including the infinitive): 267 | sto 268 | stai 269 | sta 270 | stiamo 271 | stanno 272 | stia 273 | stiate 274 | stiano 275 | starò 276 | starai 277 | starà 278 | staremo 279 | starete 280 | staranno 281 | starei 282 | staresti 283 | starebbe 284 | staremmo 285 | stareste 286 | starebbero 287 | stavo 288 | stavi 289 | stava 290 | stavamo 291 | stavate 292 | stavano 293 | stetti 294 | stesti 295 | stette 296 | stemmo 297 | steste 298 | stettero 299 | stessi 300 | stesse 301 | stessimo 302 | stessero 303 | stando 304 | -------------------------------------------------------------------------------- /ckanext/wotkit/theme/templates/package/snippets/package_basic_fields.html: -------------------------------------------------------------------------------- 1 | {% ckan_extends %} 2 | 3 | {% import 'macros/form.html' as form %} 4 | 5 | {% block package_basic_fields_title %} 6 | {{ form.input('title', id='field-title', label=_('Title'), placeholder=_('eg. A descriptive title'), value=data.title, error=errors.title, classes=['control-full', 'control-large'], attrs={'data-module': 'slug-preview-target'}) }} 7 | {% endblock %} 8 | 9 | {% block package_basic_fields_url %} 10 | {% set prefix = h.url_for(controller='package', action='read', id='') %} 11 | {% set domain = h.url_for(controller='package', action='read', id='', qualified=true) %} 12 | {% set domain = domain|replace("http://", "")|replace("https://", "") %} 13 | {% set attrs = {'data-module': 'slug-preview-slug', 'data-module-prefix': domain, 'data-module-placeholder': ''} %} 14 | 15 | {{ form.prepend('name', id='field-name', label=_('URL'), prepend=prefix, placeholder=_('eg. my-dataset'), value=data.name, error=errors.name, attrs=attrs) }} 16 | {% endblock %} 17 | 18 | {% block package_basic_fields_custom %}{% endblock %} 19 | 20 | {% block package_basic_fields_description %} 21 | {{ form.markdown('notes', id='field-notes', label=_('Description'), placeholder=_('eg. Some useful notes about the data'), value=data.notes, error=errors.notes) }} 22 | {% endblock %} 23 | 24 | {% block package_basic_fields_tags %} 25 | {% set tag_attrs = {'data-module': 'autocomplete', 'data-module-tags': '', 'data-module-source': '/api/2/util/tag/autocomplete?incomplete=?'} %} 26 | {{ form.input('tag_string', id='field-tags', label=_('Tags'), placeholder=_('eg. economy, mental health, government'), value=data.tag_string, error=errors.tags, classes=['control-full'], attrs=tag_attrs) }} 27 | {% endblock %} 28 | 29 | {% block package_basic_fields_license %} 30 |
31 | {% set error = errors.license_id %} 32 | 33 |
34 | 39 | {% if error %}{{ error }}{% endif %} 40 | 41 | 42 | {% trans %} 43 | License definitions and additional information can be found 44 | at opendefinition.org 45 | {% endtrans %} 46 | 47 |
48 |
49 | {% endblock %} 50 | 51 | {% block package_basic_fields_org %} 52 | {# if we have a default group then this wants remembering #} 53 | {% if data.group_id %} 54 | 55 | {% endif %} 56 | 57 | {% set dataset_is_draft = data.get('state', 'draft').startswith('draft') or data.get('state', 'none') == 'none' %} 58 | {% set dataset_has_organization = data.owner_org or data.group_id %} 59 | {% set organizations_available = h.organizations_available('create_dataset') %} 60 | {% set user_is_sysadmin = h.check_access('sysadmin') %} 61 | {% set show_organizations_selector = organizations_available and (user_is_sysadmin or dataset_is_draft) %} 62 | {% set show_visibility_selector = dataset_has_organization or (organizations_available and (user_is_sysadmin or dataset_is_draft)) %} 63 | 64 | {% if show_organizations_selector and show_visibility_selector %} 65 |
66 | {% endif %} 67 | 68 | {% if show_organizations_selector %} 69 |
70 | 71 |
72 | 80 |
81 |
82 | 83 | {# ===================================== #} 84 | {# Bug fix for setting organization view #} 85 | {# ===================================== #} 86 | 87 | {% elif dataset_has_organization %} 88 | {% if data.owner_org %} 89 | {% set owner_org = data.owner_org %} 90 | {% endif %} 91 | 92 | {% endif %} 93 | 94 | {# ===================================== #} 95 | 96 |
97 | 98 |
99 | 100 | 101 | {% trans %} 102 | This will set this dataset to be invisible to everyone else except you 103 | {% endtrans %} 104 | 105 | 109 |
110 |
111 | 112 | {% if show_visibility_selector and data.pkg_invisible == ( "False" or None ) %} 113 | {% block package_metadata_fields_visibility %} 114 |
115 | 116 |
117 | 122 |
123 |
124 | {% endblock %} 125 | {% endif %} 126 | 127 | {% if show_organizations_selector and show_visibility_selector %} 128 |
129 | {% endif %} 130 | 131 | 132 | {% endblock %} 133 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/velocity/VM_global_library.vm: -------------------------------------------------------------------------------- 1 | #** 2 | * Global macros used by other templates. 3 | * This file must be named VM_global_library.vm 4 | * in order for Velocity to find it. 5 | *# 6 | 7 | #macro(param $key)$request.params.get($key)#end 8 | 9 | #macro(url_root)/solr#end 10 | 11 | ## TODO: s/url_for_solr/url_for_core/ and s/url_root/url_for_solr/ 12 | #macro(core_name)$request.core.name#end 13 | #macro(url_for_solr)#{url_root}#if($request.core.name != "")/$request.core.name#end#end 14 | #macro(url_for_home)#url_for_solr/browse#end 15 | 16 | #macro(q)&q=$!{esc.url($params.get('q'))}#end 17 | 18 | #macro(fqs $p)#foreach($fq in $p)#if($velocityCount>1)&#{end}fq=$esc.url($fq)#end#end 19 | 20 | #macro(debug)#if($request.params.get('debugQuery'))&debugQuery=true#end#end 21 | 22 | #macro(boostPrice)#if($request.params.get('bf') == 'price')&bf=price#end#end 23 | 24 | #macro(annotate)#if($request.params.get('annotateBrowse'))&annotateBrowse=true#end#end 25 | 26 | #macro(annTitle $msg)#if($annotate == true)title="$msg"#end#end 27 | 28 | #macro(spatial)#if($request.params.get('sfield'))&sfield=store#end#if($request.params.get('pt'))&pt=$request.params.get('pt')#end#if($request.params.get('d'))&d=$request.params.get('d')#end#end 29 | 30 | #macro(qOpts)#set($queryOpts = $request.params.get("queryOpts"))#if($queryOpts && $queryOpts != "")&queryOpts=$queryOpts#end#end 31 | 32 | #macro(group)#if($request.params.getBool("group") == true)&group=true#end#if($request.params.get("group.field"))#foreach($grp in $request.params.getParams('group.field'))&group.field=$grp#end#end#end 33 | 34 | #macro(sort $p)#if($p)#foreach($s in $p)&sort=$esc.url($s)#end#end#end 35 | 36 | #macro(lensNoQ)?#if($request.params.getParams('fq') and $list.size($request.params.getParams('fq')) > 0)&#fqs($request.params.getParams('fq'))#end#sort($request.params.getParams('sort'))#debug#boostPrice#annotate#spatial#qOpts#group#end 37 | #macro(lens)#lensNoQ#q#end 38 | 39 | 40 | #macro(url_for_lens)#{url_for_home}#lens#end 41 | 42 | #macro(url_for_start $start)#url_for_home#lens&start=$start#end 43 | 44 | #macro(url_for_filters $p)#url_for_home?#q#boostPrice#spatial#qOpts#if($list.size($p) > 0)&#fqs($p)#end#debug#end 45 | 46 | #macro(url_for_nested_facet_query $field)#url_for_home#lens&fq=$esc.url($field)#end 47 | 48 | ## TODO: convert to use {!raw f=$field}$value (with escaping of course) 49 | #macro(url_for_facet_filter $field $value)#url_for_home#lens&fq=$esc.url($field):%22$esc.url($value)%22#end 50 | 51 | #macro(url_for_facet_date_filter $field $value)#url_for_home#lens&fq=$esc.url($field):$esc.url($value)#end 52 | 53 | #macro(url_for_facet_range_filter $field $value)#url_for_home#lens&fq=$esc.url($field):$esc.url($value)#end 54 | 55 | 56 | #macro(link_to_previous_page $text) 57 | #if($page.current_page_number > 1) 58 | #set($prev_start = $page.start - $page.results_per_page) 59 | $text 60 | #end 61 | #end 62 | 63 | #macro(link_to_next_page $text) 64 | #if($page.current_page_number < $page.page_count) 65 | #set($next_start = $page.start + $page.results_per_page) 66 | $text 67 | #end 68 | #end 69 | 70 | #macro(link_to_page $page_number $text) 71 | #if($page_number == $page.current_page_number) 72 | $text 73 | #else 74 | #if($page_number <= $page.page_count) 75 | #set($page_start = $page_number * $page.results_per_page - $page.results_per_page) 76 | $text 77 | #end 78 | #end 79 | #end 80 | 81 | #macro(display_facet_query $field, $display, $fieldName) 82 | #if($field.size() > 0) 83 | $display 84 |
    85 | #foreach ($facet in $field) 86 | #if ($facet.value > 0) 87 | #set($facetURL = "#url_for_nested_facet_query($facet.key)") 88 | #if ($facetURL != '') 89 |
  • $facet.key ($facet.value)
  • 90 | #end 91 | #end 92 | #end 93 |
94 | #end 95 | #end 96 | 97 | 98 | #macro(display_facet_range $field, $display, $fieldName, $start, $end, $gap, $before, $after) 99 | $display 100 |
    101 | #if($before && $before != "") 102 | #set($value = "[* TO " + "#format_value($start)" + "}") 103 | #set($facetURL = "#url_for_facet_range_filter($fieldName, $value)") 104 |
  • Less than #format_value($start) ($before)
  • 105 | #end 106 | #foreach ($facet in $field) 107 | #set($rangeEnd = "#range_get_to_value($facet.key, $gap)") 108 | #set($value = "[" + $facet.key + " TO " + $rangeEnd + "}") 109 | #set($facetURL = "#url_for_facet_range_filter($fieldName, $value)") 110 | #if ($facetURL != '') 111 |
  • $facet.key - #format_value($rangeEnd) ($facet.value)
  • 112 | #end 113 | #end 114 | #if($end && $end != "" && $after > 0) 115 | #set($value = "[" + "#format_value($end)" + " TO *}") 116 | #set($facetURL = "#url_for_facet_range_filter($fieldName, $value)") 117 |
  • More than #format_value($end) ($after)
  • 118 | #end 119 |
120 | #end 121 | 122 | ## $pivots is a list of facet_pivot 123 | #macro(display_facet_pivot $pivots, $display) 124 | #if($pivots.size() > 0) 125 | $display 126 |
    127 | #foreach ($pivot in $pivots) 128 | #foreach ($entry in $pivot.value) 129 | $entry.field::$entry.value ($entry.count) 130 | 135 | #end 136 | #end 137 |
138 | #end 139 | #end 140 | 141 | #macro(field $f) 142 | #if($response.response.highlighting.get($docId).get($f).get(0)) 143 | #set($pad = "") 144 | #foreach($v in $response.response.highlighting.get($docId).get($f)) 145 | $pad$v## 146 | #set($pad = " ... ") 147 | #end 148 | #else 149 | #foreach($v in $doc.getFieldValues($f)) 150 | $v## 151 | #end 152 | #end 153 | #end 154 | 155 | #macro(utc_date $theDate) 156 | $date.format("yyyy-MM-dd'T'HH:mm:ss'Z'",$theDate,$date.getLocale(),$date.getTimeZone().getTimeZone("UTC"))## 157 | #end 158 | 159 | #macro(format_value $val) 160 | #if(${val.class.name} == "java.util.Date") 161 | #utc_date($val)## 162 | #else 163 | $val## 164 | #end 165 | #end 166 | 167 | #macro(range_get_to_value $inval, $gapval) 168 | #if(${gapval.class.name} == "java.lang.String") 169 | $inval$gapval## 170 | #elseif(${gapval.class.name} == "java.lang.Float" || ${inval.class.name} == "java.lang.Float") 171 | $math.toDouble($math.add($inval,$gapval))## 172 | #else 173 | $math.add($inval,$gapval)## 174 | #end 175 | #end 176 | -------------------------------------------------------------------------------- /urbanopus-solr/collection1/conf/lang/stopwords_es.txt: -------------------------------------------------------------------------------- 1 | | From svn.tartarus.org/snowball/trunk/website/algorithms/spanish/stop.txt 2 | | This file is distributed under the BSD License. 3 | | See http://snowball.tartarus.org/license.php 4 | | Also see http://www.opensource.org/licenses/bsd-license.html 5 | | - Encoding was converted to UTF-8. 6 | | - This notice was added. 7 | | 8 | | NOTE: To use this file with StopFilterFactory, you must specify format="snowball" 9 | 10 | | A Spanish stop word list. Comments begin with vertical bar. Each stop 11 | | word is at the start of a line. 12 | 13 | 14 | | The following is a ranked list (commonest to rarest) of stopwords 15 | | deriving from a large sample of text. 16 | 17 | | Extra words have been added at the end. 18 | 19 | de | from, of 20 | la | the, her 21 | que | who, that 22 | el | the 23 | en | in 24 | y | and 25 | a | to 26 | los | the, them 27 | del | de + el 28 | se | himself, from him etc 29 | las | the, them 30 | por | for, by, etc 31 | un | a 32 | para | for 33 | con | with 34 | no | no 35 | una | a 36 | su | his, her 37 | al | a + el 38 | | es from SER 39 | lo | him 40 | como | how 41 | más | more 42 | pero | pero 43 | sus | su plural 44 | le | to him, her 45 | ya | already 46 | o | or 47 | | fue from SER 48 | este | this 49 | | ha from HABER 50 | sí | himself etc 51 | porque | because 52 | esta | this 53 | | son from SER 54 | entre | between 55 | | está from ESTAR 56 | cuando | when 57 | muy | very 58 | sin | without 59 | sobre | on 60 | | ser from SER 61 | | tiene from TENER 62 | también | also 63 | me | me 64 | hasta | until 65 | hay | there is/are 66 | donde | where 67 | | han from HABER 68 | quien | whom, that 69 | | están from ESTAR 70 | | estado from ESTAR 71 | desde | from 72 | todo | all 73 | nos | us 74 | durante | during 75 | | estados from ESTAR 76 | todos | all 77 | uno | a 78 | les | to them 79 | ni | nor 80 | contra | against 81 | otros | other 82 | | fueron from SER 83 | ese | that 84 | eso | that 85 | | había from HABER 86 | ante | before 87 | ellos | they 88 | e | and (variant of y) 89 | esto | this 90 | mí | me 91 | antes | before 92 | algunos | some 93 | qué | what? 94 | unos | a 95 | yo | I 96 | otro | other 97 | otras | other 98 | otra | other 99 | él | he 100 | tanto | so much, many 101 | esa | that 102 | estos | these 103 | mucho | much, many 104 | quienes | who 105 | nada | nothing 106 | muchos | many 107 | cual | who 108 | | sea from SER 109 | poco | few 110 | ella | she 111 | estar | to be 112 | | haber from HABER 113 | estas | these 114 | | estaba from ESTAR 115 | | estamos from ESTAR 116 | algunas | some 117 | algo | something 118 | nosotros | we 119 | 120 | | other forms 121 | 122 | mi | me 123 | mis | mi plural 124 | tú | thou 125 | te | thee 126 | ti | thee 127 | tu | thy 128 | tus | tu plural 129 | ellas | they 130 | nosotras | we 131 | vosotros | you 132 | vosotras | you 133 | os | you 134 | mío | mine 135 | mía | 136 | míos | 137 | mías | 138 | tuyo | thine 139 | tuya | 140 | tuyos | 141 | tuyas | 142 | suyo | his, hers, theirs 143 | suya | 144 | suyos | 145 | suyas | 146 | nuestro | ours 147 | nuestra | 148 | nuestros | 149 | nuestras | 150 | vuestro | yours 151 | vuestra | 152 | vuestros | 153 | vuestras | 154 | esos | those 155 | esas | those 156 | 157 | | forms of estar, to be (not including the infinitive): 158 | estoy 159 | estás 160 | está 161 | estamos 162 | estáis 163 | están 164 | esté 165 | estés 166 | estemos 167 | estéis 168 | estén 169 | estaré 170 | estarás 171 | estará 172 | estaremos 173 | estaréis 174 | estarán 175 | estaría 176 | estarías 177 | estaríamos 178 | estaríais 179 | estarían 180 | estaba 181 | estabas 182 | estábamos 183 | estabais 184 | estaban 185 | estuve 186 | estuviste 187 | estuvo 188 | estuvimos 189 | estuvisteis 190 | estuvieron 191 | estuviera 192 | estuvieras 193 | estuviéramos 194 | estuvierais 195 | estuvieran 196 | estuviese 197 | estuvieses 198 | estuviésemos 199 | estuvieseis 200 | estuviesen 201 | estando 202 | estado 203 | estada 204 | estados 205 | estadas 206 | estad 207 | 208 | | forms of haber, to have (not including the infinitive): 209 | he 210 | has 211 | ha 212 | hemos 213 | habéis 214 | han 215 | haya 216 | hayas 217 | hayamos 218 | hayáis 219 | hayan 220 | habré 221 | habrás 222 | habrá 223 | habremos 224 | habréis 225 | habrán 226 | habría 227 | habrías 228 | habríamos 229 | habríais 230 | habrían 231 | había 232 | habías 233 | habíamos 234 | habíais 235 | habían 236 | hube 237 | hubiste 238 | hubo 239 | hubimos 240 | hubisteis 241 | hubieron 242 | hubiera 243 | hubieras 244 | hubiéramos 245 | hubierais 246 | hubieran 247 | hubiese 248 | hubieses 249 | hubiésemos 250 | hubieseis 251 | hubiesen 252 | habiendo 253 | habido 254 | habida 255 | habidos 256 | habidas 257 | 258 | | forms of ser, to be (not including the infinitive): 259 | soy 260 | eres 261 | es 262 | somos 263 | sois 264 | son 265 | sea 266 | seas 267 | seamos 268 | seáis 269 | sean 270 | seré 271 | serás 272 | será 273 | seremos 274 | seréis 275 | serán 276 | sería 277 | serías 278 | seríamos 279 | seríais 280 | serían 281 | era 282 | eras 283 | éramos 284 | erais 285 | eran 286 | fui 287 | fuiste 288 | fue 289 | fuimos 290 | fuisteis 291 | fueron 292 | fuera 293 | fueras 294 | fuéramos 295 | fuerais 296 | fueran 297 | fuese 298 | fueses 299 | fuésemos 300 | fueseis 301 | fuesen 302 | siendo 303 | sido 304 | | sed also means 'thirst' 305 | 306 | | forms of tener, to have (not including the infinitive): 307 | tengo 308 | tienes 309 | tiene 310 | tenemos 311 | tenéis 312 | tienen 313 | tenga 314 | tengas 315 | tengamos 316 | tengáis 317 | tengan 318 | tendré 319 | tendrás 320 | tendrá 321 | tendremos 322 | tendréis 323 | tendrán 324 | tendría 325 | tendrías 326 | tendríamos 327 | tendríais 328 | tendrían 329 | tenía 330 | tenías 331 | teníamos 332 | teníais 333 | tenían 334 | tuve 335 | tuviste 336 | tuvo 337 | tuvimos 338 | tuvisteis 339 | tuvieron 340 | tuviera 341 | tuvieras 342 | tuviéramos 343 | tuvierais 344 | tuvieran 345 | tuviese 346 | tuvieses 347 | tuviésemos 348 | tuvieseis 349 | tuviesen 350 | teniendo 351 | tenido 352 | tenida 353 | tenidos 354 | tenidas 355 | tened 356 | 357 | --------------------------------------------------------------------------------