Teadmiste otsing, formaliseerimine ja hoidmine: erinevus redaktsioonide vahel
Resümee puudub |
|||
| (ei näidata sama kasutaja 60 vahepealset redaktsiooni) | |||
| 13. rida: | 13. rida: | ||
</tr> | </tr> | ||
</table> | </table> | ||
== <font color="red">NB! This is an archive from 2015</font> == | |||
== Exam == | |||
Date and time (two separate occasions): | |||
* 2. June (Tuesday) at 10:00 in room <b>SOC-214</b> (Majandus- ja sotsiaalteaduste maja) | |||
* 9. June (Tuesday) at 10:00 in room <b>SOC-210</b> (Majandus- ja sotsiaalteaduste maja) | |||
4 questions, one for each block. Each question is a small task in encoding information. No programming excersices. | |||
* 1. task: encoding data in a conventional relational database in RDF, inventing suitable ID-s, converting selects with where conditions and joins to first order rule form. | |||
* 2. task: encoding data/rules in RDFs (perhaps additionally in RDFa). Writing 1st order rules about the meaning of RDFs built-in axioms and deriving data using RDFs built-in axioms. Concrete derivation systems are not required: just deriving correct information. It is also important to understand ways to uri-s as global id-s and encoding data in both html metainfo part and in pages, using RDFa. | |||
* 3. task: encoding uncertain knowledge. You will first have to encode a small scenario using several different systems: default logic, probabilistic logic, fuzzy logic. Second, you have to show what can you derive using one or another formalism. | |||
* 4. tasks: building indexes. Given a small dataset(s), you will have to build several indexes. Which indexes: trie indexes for words in a text, discrimination tree indexes for generalizations of terms, path indexes for concretisations of terms. For the latter two, use the [http://www.lambda.ee/index.php/Pilt:Mccuneindexing.pdf mccune paper] | |||
NB! The information in the following "this is in exam ..." is old and not relevant. | |||
== Time, place, result == | == Time, place, result == | ||
| 56. rida: | 78. rida: | ||
It makes sense to search adresses in several ways: googling, binging plus searching from known real estate portals. | It makes sense to search adresses in several ways: googling, binging plus searching from known real estate portals. | ||
Deadline: | Deadline: <b>16. March</b> (after this there will be a penalty). | ||
See also [[notes for KR lab 1]]. | See also [[notes for KR lab 1]]. | ||
| 79. rida: | 101. rida: | ||
Student ideas are also welcome: have to agree with Tanel first. | Student ideas are also welcome: have to agree with Tanel first. | ||
A cool idea is to investigate: | |||
* http://threatpost.com/fbstalker-automates-facebook-graph-search-data-mining | |||
* https://github.com/milo2012/osintstalker | |||
== Lecture block 1: basics and representing simple facts. == | == Lecture block 1: basics and representing simple facts. == | ||
=== Lecture 1 (2. Feb) Overview of the course. Background and basics. First lab. === | === Lecture 1 (2. Feb) Overview of the course. Background and basics. First lab. === | ||
| 88. rida: | 118. rida: | ||
* Core logic refresher. | * Core logic refresher. | ||
* Details of the first lab. | * Details of the first lab. | ||
=== Lecture 2 (9 Feb) Programming and databases. SQL: meaning and representation of facts === | === Lecture 2 (9 Feb) Programming and databases. SQL: meaning and representation of facts === | ||
| 98. rida: | 127. rida: | ||
Lecture materials: | Lecture materials: | ||
* [[Media: | * Start with [[Media:kr_rdf_schemalessdb_3_2.ppt|key/value pairs and rdf, compared to the relational model]] | ||
* [[Nosql links and notes]] | * [[Nosql links and notes]] | ||
| 110. rida: | 139. rida: | ||
Lecture materials: | Lecture materials: | ||
* [[Media: | * [[Media:Kr_html_annotations.ppt|Html annotations]] | ||
Understand main parts: | Understand main parts: | ||
| 121. rida: | 150. rida: | ||
* [[Media:portaalidekoosvoime.ppt]] or as pdf [[Media:portaalidekoosvoime.pdf]] | * [[Media:portaalidekoosvoime.ppt]] or as pdf [[Media:portaalidekoosvoime.pdf]] | ||
=== Lecture 4 ( | === Lecture 4 (2. March) RDF last parts + RDFS start === | ||
Continuing with RDF: | |||
* | * Continue with the lecture material [[Media:kr_rdf_schemalessdb_3_2.ppt|key/value pairs and rdf, compared to the relational model]] | ||
* | * Check out http://www.w3.org/RDF/ and http://www.w3.org/standards/techs/rdf#w3c_all | ||
* And read more from http://www.w3.org/TR/rdf11-primer/ and http://www.w3.org/TR/rdf11-new/ | |||
Starting RDFS: | |||
* Start with the lecture material [[Media:Kr_rdfs.pdf|RDFS: rdf schema]] and as [[Media:Kr_rdfs.ppt|ppt]] | |||
* Read [http://en.wikipedia.org/wiki/RDF_schema RDFs wikipedia] | |||
* Check out [http://www.w3.org/TR/rdf-schema/ w3c RDF schema] | |||
Choosing the student presentations from: | |||
* [[Nosql links and notes]] | |||
== Lecture block 2: representing rules == | == Lecture block 2: representing rules == | ||
=== Lecture 5 (9. March) Student presentations on NELL and nosql databases + intro to the second lab === | |||
Student lectures on the theme of data and knowledge extraction from the web: | |||
* Nell and systems like Nell (are there any? Check also ConceptNet): Andrei. See some details about [http://rtw.ml.cmu.edu/rtw/ Nell] as a nice example. | |||
* Student presentations chosen from [[Nosql links and notes]]: | |||
** Rait: docs.mongodb.org/manual/ (tehtud) | |||
** Raigo: http://www.neo4j.org/ (tehtud) | |||
Understand RDFS: | Understand RDFS: | ||
| 138. rida: | 182. rida: | ||
Lecture material: | Lecture material: | ||
* [[Media:Kr_rdfs.pdf|RDFS: rdf schema]] and as [[Media:Kr_rdfs.ppt|ppt]] | * Continue with [[Media:Kr_rdfs.pdf|RDFS: rdf schema]] and as [[Media:Kr_rdfs.ppt|ppt]] | ||
Additional details (not part of exam): | Additional details (not part of exam): | ||
| 145. rida: | 189. rida: | ||
* [http://www.w3.org/TR/rdf-schema/ w3c RDF schema] | * [http://www.w3.org/TR/rdf-schema/ w3c RDF schema] | ||
=== | === Lecture 6 (16. March) continuing RDFs and looking into other KR languages === | ||
Lecture material: | |||
* | |||
* OWL | * Continue with [[Media:Kr_rdfs.pdf|RDFS: rdf schema]] and as [[Media:Kr_rdfs.ppt|ppt]] | ||
Additional details (not part of exam): | |||
* [http://en.wikipedia.org/wiki/RDF_schema RDFs wikipedia] | |||
* [http://www.w3.org/TR/rdf-schema/ w3c RDF schema] | |||
Important KR languages: | |||
* RuleML [http://wiki.ruleml.org/index.php/RuleML_Home RuleML ] | |||
* OWL [http://en.wikipedia.org/wiki/Web_Ontology_Language OWL wikipedia], [http://www.w3.org/TR/owl-guide/ w3c OWL guide] | |||
* KIF | * KIF | ||
* CL | * CL [http://iso-commonlogic.org CL main page], | ||
* ontologies | * ontologies | ||
* wordnet | * wordnet | ||
* cyc | * cyc | ||
* restricted english systems | * TPTP language [http://www.cs.miami.edu/~tptp/TPTP/QuickGuide/ TPTP] | ||
<!-- * restricted english systems [http://attempto.ifi.unizh.ch/site/pubs/papers/phd_kaljurand.pdf Attempto restricted english] --> | |||
=== Lecture 7 (23. March): OWL and ontologies === | |||
Owl background: description logics (not part of exam ) | |||
* [[ | * [https://www.inf.unibz.it/~franconi/dl/course/slides/prop-DL/propositional-dl.pdf description logic intro] | ||
* [http://disi.unitn.it/~ldkr/ml2013/slides/12.DL.ppt brief alternative intro to description logic] | |||
* [http://www.inf.unibz.it/~franconi/dl/course/ detailed course in description logics] (not necessary for exam) | |||
Understand basics of owl: | Understand basics of owl: | ||
| 182. rida: | 232. rida: | ||
* [http://www.w3.org/2007/OWL/wiki/Profiles#Reasoning_in_OWL_2_RL_and_RDF_Graphs_using_Rules Owl2 wiki rule semantics] | * [http://www.w3.org/2007/OWL/wiki/Profiles#Reasoning_in_OWL_2_RL_and_RDF_Graphs_using_Rules Owl2 wiki rule semantics] | ||
[[Notes about RDF and OWL: logical meaning]] | |||
Start looking at interesting ontologies: | Start looking at interesting ontologies: | ||
* [http://wordnet.princeton.edu/ Wordnet] | |||
* [http://www.cl.ut.ee/ressursid/teksaurus/ Teksaurus] | |||
* [http://conceptnet5.media.mit.edu/ Conceptnet] | |||
* [https://schema.org/docs/full.html schema.org] | |||
* [http://www.ontologyportal.org/ SUMO] | * [http://www.ontologyportal.org/ SUMO] | ||
=== Restricted english === | === Lecture 8 (30 March): Restricted english === | ||
* http://attempto.ifi.uzh.ch/site/pubs/ Attempto restricted english] | * [http://attempto.ifi.uzh.ch/site/pubs/ Attempto restricted english] as intro use [http://attempto.ifi.uzh.ch/site/talks/files/Talk.Stanford.05.pdf this talk] | ||
* [http://inform7.com/ Inform] system for interactive fiction, vt ka [http://inform-fiction.org/manual/html/contents.html vanemat raamatut] | |||
Attempto details not necessary for the exam. | Attempto details not necessary for the exam. | ||
| 236. rida: | 288. rida: | ||
== Lecture block 4: indexes and search == | == Lecture block 4: indexes and search == | ||
=== Indexes: intro and mainstream === | === 27. April. Indexes: intro and mainstream === | ||
Traditional database indexes incl B+ tree: | Traditional database indexes incl B+ tree: | ||
| 249. rida: | 302. rida: | ||
For exam: understand the core usage scenarios and be able to create small examples. | For exam: understand the core usage scenarios and be able to create small examples. | ||
=== Multi-field and geoindexes, fulltext and term indexes === | === 4. May Multi-field and geoindexes, fulltext and term indexes === | ||
* A few words about both multi-field indexes and geoindexes. | * A few words about both multi-field indexes and geoindexes. | ||
* Fulltext indexes: [http://www.lambda.ee/index.php/Pilt:Fulltext_indexes.ppt good intro and overview] | * Fulltext indexes: [http://www.lambda.ee/index.php/Pilt:Fulltext_indexes.ppt good intro and overview] | ||
* Term indexes: [http://www.lambda.ee/index.php/Pilt:Mccuneindexing.pdf mccune paper] | * Term indexes: [http://www.lambda.ee/index.php/Pilt:Mccuneindexing.pdf mccune paper] | ||
NB! Presentation: geoindexes, 4. May, Daniel. | |||
not part of exam: | not part of exam: | ||
=== Fancier term indexes === | === 4. May: Fancier term indexes === | ||
* Path indexes | * Path indexes | ||
| 263. rida: | 318. rida: | ||
* On from here. | * On from here. | ||
=== Nosql indexes === | === 11 May: Nosql indexes plus information about the exam === | ||
* Document bases | * Document bases | ||
* Graph bases | * Graph bases | ||
NB! Indexing in Graph and Document (nosql) databases. 11. May: Vassili. | |||
NB! Last day for the practical work presentations. | |||
* About the exam. | |||
== 18. May: guest lecture == | |||
Kalle Tomingas. Impact analysis and ontologies. | |||
http://demo.dlineage.com | |||
<!-- | <!-- | ||
Viimane redaktsioon: 30. jaanuar 2019, kell 09:14
![]() |
Code: ITV0060 |
NB! This is an archive from 2015
Exam
Date and time (two separate occasions):
- 2. June (Tuesday) at 10:00 in room SOC-214 (Majandus- ja sotsiaalteaduste maja)
- 9. June (Tuesday) at 10:00 in room SOC-210 (Majandus- ja sotsiaalteaduste maja)
4 questions, one for each block. Each question is a small task in encoding information. No programming excersices.
- 1. task: encoding data in a conventional relational database in RDF, inventing suitable ID-s, converting selects with where conditions and joins to first order rule form.
- 2. task: encoding data/rules in RDFs (perhaps additionally in RDFa). Writing 1st order rules about the meaning of RDFs built-in axioms and deriving data using RDFs built-in axioms. Concrete derivation systems are not required: just deriving correct information. It is also important to understand ways to uri-s as global id-s and encoding data in both html metainfo part and in pages, using RDFa.
- 3. task: encoding uncertain knowledge. You will first have to encode a small scenario using several different systems: default logic, probabilistic logic, fuzzy logic. Second, you have to show what can you derive using one or another formalism.
- 4. tasks: building indexes. Given a small dataset(s), you will have to build several indexes. Which indexes: trie indexes for words in a text, discrimination tree indexes for generalizations of terms, path indexes for concretisations of terms. For the latter two, use the mccune paper
NB! The information in the following "this is in exam ..." is old and not relevant.
Time, place, result
Semester: spring
Grading: exam
Lectures: every Monday 16:00-17.30, room ICT-A1
Practical work: Mondays on odd weeks (2. Feb, 16 Feb, ...) 17:45-19:15 room ICT-403
Practical work will give 40% and exam 60% of points underlying the final grade.
The exam will consist of several small excercises.
Focus
The main focus of the course is on KR (knowledge representation): how to represent nontrivial information in programs and databases, how to build and use indexes for efficient search through large sets of knowledge. Check out this description.
The course contains four blocks built on each other:
- Background and basics. Representing simple facts.
- Representing rules.
- Time, planning and uncertain knowledge.
- Indexes and search.
Books to use:
- Ca half of the course themes are covered in this book with freely accessible pdf-s.
- The freely accesible pdf of the handbook if knowledge representation gives a detailed and thorough coverage of the subject; far more than necessary for the course.
- Interesting to browse: recent conference proceedings
- Interesting to browse: course materials, course materials
Observe that a noticeable part of the course contents are not covered by these books: use the course materials and links to papers, standards and tutorials provided.
Practical work
There are three labs: the first two are obligatory, third is optional. The labs have to be presented to the prof and all students present at labwork.
First lab 2015
The goal of the first lab is to write a software system able to scrape factual raw data about an address (like "Akadeemia tee 12, Tallinn") given to the program.
Basically, search for web pages containing the name or similar names and extract relevant words from the list you create: words closer to the name and with more occurrences are also more important/better match. Titles/headlines above the word are also more likely to be important. It may be a good idea to do some searches together with interesting keywords already. Also, whenever you do a search / pull a page, it is a good idea to store the search result / html source in a file to avoid exchausting your search quota and just wasting bandwidth and time,
It makes sense to search adresses in several ways: googling, binging plus searching from known real estate portals.
Deadline: 16. March (after this there will be a penalty).
See also notes for KR lab 1.
Second lab 2015
The goal of the second lab is to write and use rules to categorize/tag addresses according to the data obtained during the first lab. An address should get a number of tags with numerical indicators showing our trust in that the tag really applies to the address, plus (sometimes) a number indicating the degree to which the tag applies.
See details for KR lab 2.
Third lab 2014
This lab is optional and will simply give as many points as lab 1 or 2 towards the final result and the grade: practical wotrk 60% and exam 40%.
The goal of the lab is to use wordnet or teksaurus to create an additional ruleset and to use that in addition to your own rules in lab 2.
Lab ideas
Student ideas are also welcome: have to agree with Tanel first.
A cool idea is to investigate:
- http://threatpost.com/fbstalker-automates-facebook-graph-search-data-mining
- https://github.com/milo2012/osintstalker
Lecture block 1: basics and representing simple facts.
Lecture 1 (2. Feb) Overview of the course. Background and basics. First lab.
Lecture materials:
- Intro lecture: declarative and procedural representations
- Core logic refresher.
- Details of the first lab.
Lecture 2 (9 Feb) Programming and databases. SQL: meaning and representation of facts
- Encoding data in programming languages.
- relation of plain data in databases to logic & representing complex structures in databases
- Core ideas of non-relational databases, mostly RDF
Lecture materials:
Lecture 3 (16 Feb) HTML annotations. Microformats, microdata, RDFa
Two student presentations ca 30 min each:
- Microformats, microdata, RDFa: Madis Taimre
- Facebook open graph: Madis Allikmaa
Lecture materials:
Understand main parts:
- Google rich snippets
- wiki intro
- RDFa lite ja w3c rdfa primer
- open graph protocol (i.e. Facebook stuff)
- microformats
- Media:portaalidekoosvoime.ppt or as pdf Media:portaalidekoosvoime.pdf
Lecture 4 (2. March) RDF last parts + RDFS start
Continuing with RDF:
- Continue with the lecture material key/value pairs and rdf, compared to the relational model
- Check out http://www.w3.org/RDF/ and http://www.w3.org/standards/techs/rdf#w3c_all
- And read more from http://www.w3.org/TR/rdf11-primer/ and http://www.w3.org/TR/rdf11-new/
Starting RDFS:
- Start with the lecture material RDFS: rdf schema and as ppt
- Read RDFs wikipedia
- Check out w3c RDF schema
Choosing the student presentations from:
Lecture block 2: representing rules
Lecture 5 (9. March) Student presentations on NELL and nosql databases + intro to the second lab
Student lectures on the theme of data and knowledge extraction from the web:
- Nell and systems like Nell (are there any? Check also ConceptNet): Andrei. See some details about Nell as a nice example.
- Student presentations chosen from Nosql links and notes:
- Rait: docs.mongodb.org/manual/ (tehtud)
- Raigo: http://www.neo4j.org/ (tehtud)
Understand RDFS:
Lecture material:
- Continue with RDFS: rdf schema and as ppt
Additional details (not part of exam):
Lecture 6 (16. March) continuing RDFs and looking into other KR languages
Lecture material:
- Continue with RDFS: rdf schema and as ppt
Additional details (not part of exam):
Important KR languages:
- RuleML RuleML
- OWL OWL wikipedia, w3c OWL guide
- KIF
- CL CL main page,
- ontologies
- wordnet
- cyc
- TPTP language TPTP
Lecture 7 (23. March): OWL and ontologies
Owl background: description logics (not part of exam )
- description logic intro
- brief alternative intro to description logic
- detailed course in description logics (not necessary for exam)
Understand basics of owl:
not part of exam:
Notes about RDF and OWL: logical meaning
Start looking at interesting ontologies:
Lecture 8 (30 March): Restricted english
- Attempto restricted english as intro use this talk
- Inform system for interactive fiction, vt ka vanemat raamatut
Attempto details not necessary for the exam.
Lecture block 3: time, planning and uncertain knowledge
Rules in planning and robotics
Lecture material:
See also (not part of exam):
Logic for uncertain knowledge
- nonmonotonic logic Not necessary for exam.
- default logic For exam: main material for default logic.
For the exam: you should be able to create and solve small examples with default logic.
Fuzzy and probabilistic logic
- Uncertain_prob_fuzzy.ppt Intro.
- Vienna_tanel_2.pdf Additional examples and combining.
For the exam: understand the differences between fuzzy and probabilistic logic and be able to present small examples.
Logic of belief and knowledge
- Ijcai93.pdf Overview.
For exam: understand referential transparency and core ideas about encoding belief and knowledge. Modal logic not necessary for the exam.
Lecture block 4: indexes and search
27. April. Indexes: intro and mainstream
Traditional database indexes incl B+ tree:
Hash indexes:
- wiki.
Bitmap indexes:
- wiki.
For exam: understand the core usage scenarios and be able to create small examples.
4. May Multi-field and geoindexes, fulltext and term indexes
- A few words about both multi-field indexes and geoindexes.
- Fulltext indexes: good intro and overview
- Term indexes: mccune paper
NB! Presentation: geoindexes, 4. May, Daniel.
not part of exam:
4. May: Fancier term indexes
- Path indexes
- On from here.
11 May: Nosql indexes plus information about the exam
- Document bases
- Graph bases
NB! Indexing in Graph and Document (nosql) databases. 11. May: Vassili.
NB! Last day for the practical work presentations.
- About the exam.
18. May: guest lecture
Kalle Tomingas. Impact analysis and ontologies.
