Różnice

Różnice między wybraną wersją a wersją aktualną.

Odnośnik do tego porównania

Both sides previous revision Poprzednia wersja
Nowa wersja
Poprzednia wersja
pl:miw:2009:miw09_semweb_rdfstore [2009/06/19 13:46]
jsi08
pl:miw:2009:miw09_semweb_rdfstore [2019/06/27 15:50] (aktualna)
Linia 315: Linia 315:
 [[http://​www.mpi-inf.mpg.de/​yago-naga/​yago/​]] [[http://​www.mpi-inf.mpg.de/​yago-naga/​yago/​]]
  
-[[http://uniat5401.ag5.mpi-sb.mpg.de:8180/view.html?​entity=Albert_Einstein&​n=5]]+YAGO is a huge semantic knowledge base. Currently, YAGO knows more than 2 million entities (like persons, organizations,​ cities, etc.). It knows 20 million facts about these entities. Unlike many other automatically assembled knowledge bases, YAGO has a manually confirmed accuracy of 95%. 
 + 
 +** Przykładowe zapytania ** 
 +[[http://www.mpi-inf.mpg.de/yago-naga/​yago/​demo.html]]
  
  
Linia 333: Linia 336:
 [[http://​pl.wikipedia.org/​wiki/​Cyc]] [[http://​pl.wikipedia.org/​wiki/​Cyc]]
 [[http://​www.opencyc.org/​doc]] [[http://​www.opencyc.org/​doc]]
 +
 +OpenCyc is the open source version of the Cyc technology, the world'​s largest and most complete general knowledge base and commonsense reasoning engine. OpenCyc contains the full set of (non-proprietary) Cyc terms as well as millions of assertions about the. Cycorp offers this ontology at no cost and encourages you to make use of it as you see fit.
 +
 +Release 1.0 of OpenCyc includes the entire Cyc ontology containing hundreds of thousands of terms, along with millions of assertions relating the terms to each other, forming an upper ontology whose domain is all of human consensus reality.
  
  
Linia 338: Linia 345:
 [[http://​wordnet.princeton.edu/​]] [[http://​wordnet.princeton.edu/​]]
 [[http://​wordnet.princeton.edu/​obtain]] [[http://​wordnet.princeton.edu/​obtain]]
 +
 +WordNet® is a large lexical database of English, developed under the direction of George A. Miller. Nouns, verbs, adjectives and adverbs are grouped into sets of cognitive synonyms (synsets), each expressing a distinct concept. Synsets are interlinked by means of conceptual-semantic and lexical relations. The resulting network of meaningfully related words and concepts can be navigated with the browser. WordNet is also freely and publicly available for download. WordNet'​s structure makes it a useful tool for computational linguistics and natural language processing.
 +
  
  
 ==== SUMO (Suggested Upper Merged Ontology) ==== ==== SUMO (Suggested Upper Merged Ontology) ====
 [[http://​www.ontologyportal.org/​]] [[http://​www.ontologyportal.org/​]]
 +  * Mappings to all of WordNet
 +  * Largest free, formal ontology available, with 20,000 terms and 70,000 axioms when all domain ontologies are combined.
  
  
Linia 422: Linia 434:
 | Jena | Java | RDFS \\ OWL | Memory \\ Database | SPARQL | Możliwość wyboru zakresu RDFS i OWL \\ Słaba wydajność RDFS/OWL dla baz danych (dobra tylko w pamięci) \\ Dla samego RDF bardzo dobra wydajność | [[http://​jena.sourceforge.net/​]] | | Jena | Java | RDFS \\ OWL | Memory \\ Database | SPARQL | Możliwość wyboru zakresu RDFS i OWL \\ Słaba wydajność RDFS/OWL dla baz danych (dobra tylko w pamięci) \\ Dla samego RDF bardzo dobra wydajność | [[http://​jena.sourceforge.net/​]] |
 | Mulgara | Java | - | Memory \\ Database | SPARQL | RDFS/OWL planowany | [[http://​www.mulgara.org/​]] | | Mulgara | Java | - | Memory \\ Database | SPARQL | RDFS/OWL planowany | [[http://​www.mulgara.org/​]] |
-| Sesame | Java | | | [[http://​www.openrdf.org/​]] |+| Sesame | Java | RDFS Memory \\ MySQL, PostgreSQL, Oracle ​SeRQL \\ API | | [[http://​www.openrdf.org/​]] |
 | Oracle 11g | | RDFS \\ OWL Full | | | Darmowy dla deweloperów | [[http://​www.oracle.com/​technology/​tech/​semantic_technologies/​index.html]] | | Oracle 11g | | RDFS \\ OWL Full | | | Darmowy dla deweloperów | [[http://​www.oracle.com/​technology/​tech/​semantic_technologies/​index.html]] |
 | Virtuoso | | RDFS \\ OWL Full | | | | [[http://​virtuoso.openlinksw.com/​|Virtuoso]] \\ [[http://​virtuoso.openlinksw.com/​dataspace/​dav/​wiki/​Main/​|Virtuoso Open-Source Edition]] | | Virtuoso | | RDFS \\ OWL Full | | | | [[http://​virtuoso.openlinksw.com/​|Virtuoso]] \\ [[http://​virtuoso.openlinksw.com/​dataspace/​dav/​wiki/​Main/​|Virtuoso Open-Source Edition]] |
-| ClioPatria | Prolog | | Memory | SeRQL \\ SPARQL | | [[http://​e-culture.multimedian.nl/​software/​ClioPatria.shtml]] |+| ClioPatria | Prolog | | Memory | SeRQL \\ SPARQL | | [[http://​e-culture.multimedian.nl/​software/​ClioPatria.shtml]] |
  
 ==== C/C++: ==== ==== C/C++: ====
Linia 443: Linia 455:
   * [[http://​www4.wiwiss.fu-berlin.de/​bizer/​rdfapi/​|RAP]]   * [[http://​www4.wiwiss.fu-berlin.de/​bizer/​rdfapi/​|RAP]]
 RAP, the RDF API for PHP, is a software package for parsing, searching, manipulating,​ serializing and serving RDF models. RAP, the RDF API for PHP, is a software package for parsing, searching, manipulating,​ serializing and serving RDF models.
 +
 +Model wykorzystujący bazę danych nie obsługuje RDFS i OWL, wnioskowanie jest obsługiwane jedynie w modelach przechowujących bazę wiedzy w pamięci.
 +
 +** Instalacja i uruchomienie **
 +
 +Całość jest napisana w PHP więc nie jest wymagana instalacja - wystarczy po rozpakowaniu dołączyć do projektu (skryptu) odpowiednie pliki PHP i zyskujemy dostęp do RDF API.
 +
  
 ==== Java: ==== ==== Java: ====
Linia 454: Linia 473:
 **Joseki** is an HTTP engine that supports the SPARQL Protocol and the SPARQL RDF Query language. **Joseki** is an HTTP engine that supports the SPARQL Protocol and the SPARQL RDF Query language.
 [[http://​www.joseki.org/​]] [[http://​www.joseki.org/​]]
 +
 +** Instalacja i uruchomienie **
 +
 +Po pobraniu wystarczy rozpakować archiwum i jeśli mamy zainstalowaną odpowiednią wersję java wszystko powinno działać. W pakiecie jest dostarczony skrypt testujący działanie.
  
   * [[http://​www.mulgara.org/​|Mulgara]] (500M)   * [[http://​www.mulgara.org/​|Mulgara]] (500M)
Linia 460: Linia 483:
   * [[http://​www.openrdf.org/​|Sesame]]   * [[http://​www.openrdf.org/​|Sesame]]
 [[http://​www.aduna-software.com/​home/​overview.view]] [[http://​www.aduna-software.com/​home/​overview.view]]
 +Sesame is an open source RDF framework with support for RDF Schema inferencing and querying. Originally, it was developed by Aduna (then known as Aidministrator) as a research prototype for the EU research project On-To-Knowledge. Now, it is further developed and maintained by Aduna in cooperation with NLnet Foundation, developers from Ontotext, and a number of volunteer developers who contribute ideas, bug reports and fixes.
  
 +** Instalacja i uruchomienie **
 +
 +[[http://​www.openrdf.org/​doc/​sesame/​users/​ch02.html]]
 +Po pobraniu wystarczy rozpakować archiwum i jeśli mamy zainstalowaną odpowiednią wersję java wszystko powinno działać. Można wykonać test uruchamiając konsole.
  
 ==== Prolog: ==== ==== Prolog: ====
Linia 469: Linia 497:
  
 Key figures Up to about 25 million RDF triples on 32-bit hardware, only limited by memory on 64-bit hardware. Exploits multi-CPU and multi-core hardware to answer requests over HTTP concurrently. Runs on Windows, MacOS X, Linux and most Unix flavours, supporting both 32-bit and 64-bit operating systems. 64-bit systems are recommended for servers with lots of data or many users. Key figures Up to about 25 million RDF triples on 32-bit hardware, only limited by memory on 64-bit hardware. Exploits multi-CPU and multi-core hardware to answer requests over HTTP concurrently. Runs on Windows, MacOS X, Linux and most Unix flavours, supporting both 32-bit and 64-bit operating systems. 64-bit systems are recommended for servers with lots of data or many users.
 +
 +  * [[http://​www.semanticweb.gr/​TheaOWLLib/​|Thea]]
 +Thea is a Prolog library for generating and manipulating OWL (Web Ontology Language) content. Thea version 0.5 consists of: OWL parser, OWL generator and SQL to OWL converter.
 +
  
 ==== Inne: ==== ==== Inne: ====
   * [[http://​virtuoso.openlinksw.com/​|Virtuoso]] (1B)   * [[http://​virtuoso.openlinksw.com/​|Virtuoso]] (1B)
-Jeden z bardziej wydajnych silników. ​Używany ​np. przez DBpedia.+[[http://​virtuoso.openlinksw.com/​dataspace/​dav/​wiki/​Main/​]] 
 +Jeden z bardziej wydajnych silników. ​Wersja OpenLink Virtuoso używany ​m.in. przez DBpedia.
  
 Virtuoso Universal Server s a middleware and database engine hybrid that combines the functionality of a traditional RDBMS, ORDBMS, virtual database, Resource Description Framework (RDF), XML, free-text, Web Application Server, and File Server functionality in a single server product offering. Rather than have dedicated servers for each of the aforementioned functionality realms, Virtuoso is a "​universal server";​ it enables a single multithreaded server process that implements multiple protocols. The open source edition of Virtuoso Universal Server is also known as OpenLink Virtuoso. Virtuoso Universal Server s a middleware and database engine hybrid that combines the functionality of a traditional RDBMS, ORDBMS, virtual database, Resource Description Framework (RDF), XML, free-text, Web Application Server, and File Server functionality in a single server product offering. Rather than have dedicated servers for each of the aforementioned functionality realms, Virtuoso is a "​universal server";​ it enables a single multithreaded server process that implements multiple protocols. The open source edition of Virtuoso Universal Server is also known as OpenLink Virtuoso.
 +
 +** Instalacja i uruchomienie **
 +
 +[[http://​virtuoso.openlinksw.com/​dataspace/​dav/​wiki/​Main/​VOSMake]] Dotyczy wersji OpenLink Virtuoso. Po pobraniu archiwum (źródła) kompilujemy.
 +<​code>​
 +./configure
 +make
 +</​code>​
 +Następnie można uruchomić automatyczny skrypt testujący:
 +<​code>​
 +make check
 +</​code>​
 +Instalacja wymaga uprawnień root i zostanie wykonana po poleceniu:
 +<​code>​
 +make install
 +</​code>​
 +
 +System nie sprawiał żadnych problemów podczas któregokolwiek etapu.
  
   * [[http://​www.oracle.com/​global/​pl/​tgb/​produkty_oracle/​database.html|Oracle 11g]]   * [[http://​www.oracle.com/​global/​pl/​tgb/​produkty_oracle/​database.html|Oracle 11g]]
Linia 481: Linia 532:
   * [[http://​www4.wiwiss.fu-berlin.de/​benchmarks-200801/​]] - bardzo dobry test wydajności systemów RDF   * [[http://​www4.wiwiss.fu-berlin.de/​benchmarks-200801/​]] - bardzo dobry test wydajności systemów RDF
   * [[http://​www4.wiwiss.fu-berlin.de/​bizer/​BerlinSPARQLBenchmark/​]] - nowa, jeszcze lepsza wersja testu, wszystko dokładnie omówione   * [[http://​www4.wiwiss.fu-berlin.de/​bizer/​BerlinSPARQLBenchmark/​]] - nowa, jeszcze lepsza wersja testu, wszystko dokładnie omówione
 +
 +Podczas własnych testów zauważyłem,​ że ważna jest odpowiednia ilość pamięci (minimum 2GB), OpenLink Virtuoso podczas działania skryptu testującego zajmował około 1GB. Wszystkie środowiska uzyskują odpowiednią wydajność wtedy gdy dane są przechowywane w pamięci RAM. Przechowywanie danych RDF w bazie MySQL znacznie zmniejsza wydajność,​ a w niektórych prostych systemach wyłącza wnioskowanie.
 +
 +===== Przykłady użycia =====
 +Przykłady opierają się na dbpedii.
 +
 +  * Obiekty połorzone w pobliżu Krakowa:
 +<​code>​
 +SELECT ?subject ?label ?lat ?long WHERE {
 +<​http://​dbpedia.org/​resource/​Krak%C3%B3w>​ geo:lat ?myLat .
 +<​http://​dbpedia.org/​resource/​Krak%C3%B3w>​ geo:long ?myLong .
 +?subject geo:lat ?lat.
 +?subject geo:long ?long.
 +?subject rdfs:label ?label.
 +FILTER(xsd:​float(?​lat) - xsd:​float(?​myLat) <= 0.05 &&
 +xsd:​float(?​myLat) - xsd:​float(?​lat) <= 0.05 &&
 +xsd:​float(?​long) - xsd:​float(?​myLong) <= 0.05 &&
 +xsd:​float(?​myLong) - xsd:​float(?​long) <= 0.05 &&
 +(lang(?​label) = "​en"​ || lang(?​label) = "​pl"​)).
 +}
 +</​code>​
 +[[http://​dbpedia.org/​snorql/?​query=SELECT+%3Fsubject+%3Flabel+%3Flat+%3Flong+WHERE+{%0D%0A%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FKrak%25C3%25B3w%3E+geo%3Alat+%3FmyLat+.%0D%0A%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FKrak%25C3%25B3w%3E+geo%3Along+%3FmyLong+.%0D%0A%3Fsubject+geo%3Alat+%3Flat.%0D%0A%3Fsubject+geo%3Along+%3Flong.%0D%0A%3Fsubject+rdfs%3Alabel+%3Flabel.%0D%0AFILTER(xsd%3Afloat(%3Flat)+-+xsd%3Afloat(%3FmyLat)+%3C%3D+0.05+%26%26%0D%0Axsd%3Afloat(%3FmyLat)+-+xsd%3Afloat(%3Flat)+%3C%3D+0.05+%26%26%0D%0Axsd%3Afloat(%3Flong)+-+xsd%3Afloat(%3FmyLong)+%3C%3D+0.05+%26%26%0D%0Axsd%3Afloat(%3FmyLong)+-+xsd%3Afloat(%3Flong)+%3C%3D+0.05+%26%26%0D%0A(lang(%3Flabel)+%3D+%22en%22+||+lang(%3Flabel)+%3D+%22pl%22)).%0D%0A}%0D%0A|wynik]]
 +
 +  * Uniwersytety w Krakowie:
 +<​code>​
 +SELECT ?subject ?label ?lat ?long 
 +WHERE {
 +     ?​subject rdfs:label ?label.
 +     ?​subject dbpprop:​city <​http://​dbpedia.org/​resource/​Krak%C3%B3w>​.
 + ?subject rdf:type <​http://​dbpedia.org/​ontology/​University>​.
 + FILTER (
 + (lang(?​label) = "​en"​ || lang(?​label) = "​pl"​)
 + ).
 + OPTIONAL {
 +    ?subject geo:lat ?lat.
 + ?subject geo:long ?long.
 + }
 +}
 +</​code>​
 +[[http://​dbpedia.org/​snorql/?​query=SELECT+%3Fsubject+%3Flabel+%3Flat+%3Flong+%0D%0AWHERE+{%0D%0A+++++%3Fsubject+rdfs%3Alabel+%3Flabel.%0D%0A+++++%3Fsubject+dbpprop%3Acity+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FKrak%25C3%25B3w%3E.%0D%0A%09%3Fsubject+rdf%3Atype+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2FUniversity%3E.%0D%0A%09+FILTER+(%0D%0A%09(lang(%3Flabel)+%3D+%22en%22+||+lang(%3Flabel)+%3D+%22pl%22)%0D%0A%09).%0D%0A%09OPTIONAL+{%0D%0A++++%3Fsubject+geo%3Alat+%3Flat.%0D%0A%09%3Fsubject+geo%3Along+%3Flong.%0D%0A%09}%0D%0A}%0D%0A|wynik]]
 +
 +  * Obiekty powiązane z Krakowem:
 +<​code>​
 +SELECT ?subject ?label ?lat ?long ?type
 +WHERE {
 +     ?​subject rdfs:label ?label.
 +     ?​subject dbpprop:​city <​http://​dbpedia.org/​resource/​Krak%C3%B3w>​.
 + ?subject rdf:type ?type.
 + FILTER (
 + (lang(?​label) = "​en"​ || lang(?​label) = "​pl"​)
 + ).
 + OPTIONAL {
 +    ?subject geo:lat ?lat.
 + ?subject geo:long ?long.
 + }
 +}
 +</​code>​
 +[[http://​dbpedia.org/​snorql/?​query=SELECT+%3Fsubject+%3Flabel+%3Flat+%3Flong+%3Ftype%0D%0AWHERE+{%0D%0A+++++%3Fsubject+rdfs%3Alabel+%3Flabel.%0D%0A+++++%3Fsubject+dbpprop%3Acity+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FKrak%25C3%25B3w%3E.%0D%0A%09%3Fsubject+rdf%3Atype+%3Ftype.%0D%0A%09+FILTER+(%0D%0A%09(lang(%3Flabel)+%3D+%22en%22+||+lang(%3Flabel)+%3D+%22pl%22)%0D%0A%09).%0D%0A%09OPTIONAL+{%0D%0A++++%3Fsubject+geo%3Alat+%3Flat.%0D%0A%09%3Fsubject+geo%3Along+%3Flong.%0D%0A%09}%0D%0A}%0D%0A|wynik]]
 +
 +  * Polscy piłkarze:
 +<​code>​
 +SELECT DISTINCT ?name ?type
 +WHERE {
 +    ?subject ?func <​http://​dbpedia.org/​resource/​Poland>​.
 + ?func rdfs:label ?type.
 +    ?subject foaf:name ?name .
 +    ?subject rdf:type <​http://​dbpedia.org/​ontology/​FootballPlayer>​.
 +}
 +</​code>​
 +[[http://​dbpedia.org/​snorql/?​query=SELECT+DISTINCT+%3Fname+%3Ftype%0D%0AWHERE+{%0D%0A++++%3Fsubject+%3Ffunc+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FPoland%3E.%0D%0A%09%3Ffunc+rdfs%3Alabel+%3Ftype.%0D%0A++++%3Fsubject+foaf%3Aname+%3Fname+.%0D%0A++++%3Fsubject+rdf%3Atype+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2FFootballPlayer%3E.%0D%0A}%0D%0A|wynik]]
 +
 +  * Osoby powiązane z Berlinem:
 +<​code>​
 +SELECT ?name ?type ?ffa ?fff
 +WHERE {
 +    ?subject ?func <​http://​dbpedia.org/​resource/​Berlin>​.
 + ?func rdfs:label ?type.
 +    ?subject foaf:name ?name .
 +    ?subject rdf:type <​http://​dbpedia.org/​ontology/​Person>​.
 + ?subject rdf:type ?ffa.
 + ?ffa rdfs:label ?fff.
 +}
 +</​code>​
 +[[http://​dbpedia.org/​snorql/?​query=SELECT+%3Fname+%3Ftype+%3Fffa+%3Ffff%0D%0AWHERE+{%0D%0A++++%3Fsubject+%3Ffunc+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FBerlin%3E.%0D%0A%09%3Ffunc+rdfs%3Alabel+%3Ftype.%0D%0A++++%3Fsubject+foaf%3Aname+%3Fname+.%0D%0A++++%3Fsubject+rdf%3Atype+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2FPerson%3E.%0D%0A%09%3Fsubject+rdf%3Atype+%3Fffa.%0D%0A%09%3Fffa+rdfs%3Alabel+%3Ffff.%0D%0A}%0D%0A|wynik]]
 +
  
 ====== Prezentacja ====== ====== Prezentacja ======
pl/miw/2009/miw09_semweb_rdfstore.1245412000.txt.gz · ostatnio zmienione: 2019/06/27 15:58 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0