Advertisement
adrianb82

organizationprofilewithcontext

Feb 20th, 2014
2,376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 3.53 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <rdf:RDF
  3.     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  4.     xmlns:el="http://www.semanticlab.net/prj/recognize/voc/"
  5.     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  6.     xmlns:dcterms="http://purl.org/dc/terms/">
  7.  
  8. <rdf:Description rdf:about="http://www.semanticlab.net/prj/recognize/lexicon/paper.evaluation.5.context">
  9.     <rdfs:label>paper.evaluation.5.context</rdfs:label>
  10.     <dcterms:description>bleeding edge, WITH context, WITH stopwords FILTER</dcterms:description>
  11.     <dcterms:source>http://voyager.srv.weblyzard.net:8080/openrdf-sesame/repositories/dedbporganisations</dcterms:source>
  12.     <el:query><![CDATA[
  13. PREFIX dbprop:<http://dbpedia.org/property/>
  14. PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
  15. PREFIX dbpedia-owl:<http://dbpedia.org/ontology/>
  16. PREFIX schema-org:<http://schema.org/>
  17. PREFIX prop-de:<http://de.dbpedia.org/property/>
  18. PREFIX owl:<http://www.w3.org/2002/07/owl#>
  19. PREFIX foaf:<http://xmlns.com/foaf/0.1/>
  20. PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>    
  21. PREFIX type: <http://dbpedia.org/class/yago/>
  22. SELECT ?s (STR(SAMPLE(?cname)) AS ?company_name) ?abstract ?foundingDate
  23. ?homepage (STR(SAMPLE(?ind)) AS ?industry) (STR(SAMPLE(?locationCity)) AS ?city)
  24. (STR(SAMPLE(?locationCountry)) AS ?country) ((STR(SAMPLE(?people)) AS ?keyPeople))
  25. ?ticker_name WHERE {
  26.         ?s rdf:type dbpedia-owl:Company .
  27.         ?s rdfs:label ?cname .
  28.         OPTIONAL { ?s dbpedia-owl:abstract ?abstract .
  29.                     FILTER ( LANG(?abstract) = "de" )}
  30.         OPTIONAL { ?s foaf:homepage ?homepage .}
  31.         OPTIONAL { ?s dbpedia-owl:formationDate ?foundingDate .}
  32.         OPTIONAL { ?s prop-de:branche ?ind.
  33.                     FILTER ( LANG(?ind) = "de" )}
  34.         OPTIONAL { ?s prop-de:sitz ?city .
  35.                     FILTER ( LANG(?city) = "de" )}
  36.         OPTIONAL { ?s prop-de:region ?country .
  37.                     FILTER ( LANG(?country) = "de" )}
  38.         OPTIONAL { ?s prop-de:leitung ?keyPeople .
  39.                     FILTER ( LANG(?keyPeople) = "de" )}
  40.         OPTIONAL { ?s dbprop:symbol ?ticker_name .}
  41.         FILTER ( LANG(?cname) = "de" )
  42. }
  43. GROUP BY ?s ?company_name ?abstract ?homepage ?foundingDate ?ticker_name
  44.  
  45. ]]></el:query>
  46.     <el:class>com.weblyzard.backend.recognize.rdf.queryResultHandler.Paper5Context</el:class>
  47.     <el:preferredLanguage></el:preferredLanguage>
  48.     <el:entityType>ch.htwchur.wisdom.recognize.OrganizationEntity</el:entityType>
  49.     <el:namesStopwordFactory>com.weblyzard.backend.recognize.FILTER.OrganizationNamesStopwords</el:namesStopwordFactory>
  50.     <el:namesStopwordLanguages>C,de_CH,de_DE,en,fr</el:namesStopwordLanguages>
  51.     <el:namesStopwords></el:namesStopwords>
  52.     <el:contextStopwordFactory>com.weblyzard.backend.recognize.FILTER.OrganizationContextStopwords</el:contextStopwordFactory>
  53.     <el:contextStopwordLanguages>de,en,fr</el:contextStopwordLanguages>
  54.     <el:contextStopwords></el:contextStopwords>
  55.     <el:firstnamesFilterFactory>com.weblyzard.backend.recognize.FILTER.OrganizationNamesFirstnameFilter</el:firstnamesFilterFactory>
  56.     <el:firstnamesFilterLanguages>de</el:firstnamesFilterLanguages>
  57.     <el:lastnamesFilterFactory>com.weblyzard.backend.recognize.FILTER.OrganizationNamesLastnameFilter</el:lastnamesFilterFactory>
  58.     <el:lastnamesFilterLanguages>de</el:lastnamesFilterLanguages>
  59.     <el:groundNamesFilterFactory>com.weblyzard.backend.recognize.FILTER.OrganizationNamesFirstnameGroundingFilter</el:groundNamesFilterFactory>
  60.     <el:groundNamesFilterLanguages>C</el:groundNamesFilterLanguages>
  61.     <el:affixFilterClass>com.weblyzard.backend.recognize.FILTER.OrganizationAffixFilter</el:affixFilterClass>
  62. </rdf:Description>
  63.  
  64. </rdf:RDF>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement