Captain: Maria Mateva
Sailors: Aarne Ranta, Ramona Enache, Meritxell Gonzàlez, Jordi Saludes
Other contributors: MOLTO Consortium
SMILE! (Test!)
Used in molto-kri
(WP4). Example:
//all people and all organizations
(QSet ?X) | single(X) && type(X) == "" && name(X) != Location -->
construct WHERE {
sparqlVar(name(X)) rdftype() class(name(X)) .
sparqlVar(name(X)) property(hasAlias) sparqlVar(name(X)) ## "_alias". };
Straightforward abstract syntax generation from ontology, with just the minimum of lexical types
Kind : usually CN
Entity : usually NP
Property : can be VP, AP, ClSlash
Relation : VPSlash built from V2, AP, comparatives
Verbalization of subject-predicate-object
triples
For subjects
and objects
it can be made straight-forward - all are
presented in GF by the Entity
category. We might want to have more categories,
corresponding to classes in the ontology.
abstract syntax
cat Entity;
fun
Airline_T_1 : Entity;
Airline_T_10 : Entity;
concrete syntax(data from the English labels)
lincat
Entity = Str ;
lin
Airline_T_1 = "Japan Airlines System Corporation" ;
Airline_T_10 = "Cathay Pacific Airways, Ltd." ;
Example
abstract syntax:
fun
text: Entity -> Property -> Phrase;
and: [Property] -> Property;
activeInSector: Entity -> Property ;
childOrganizationOf : Entity -> Property ;
hasCapital : Entity -> Property ;
...
RDF result triples:
In GF(data from labels):
Company_T_36 = "4Developers LLC" ;
Country_T_4 = "United States" ;
In GF(manually translated predicates):
EN: locatedIn x = MkVPS (mkTemp presentTense simultaneousAnt) positivePol (mkVP (mkA2 (mkA "located") (mkPrep "in")) (s2e x)) ;
SV: locatedIn x = mkVPS (mkVP (mkV2 ligga_V (mkPrep "i")) (s2e x)) ;
Verbalization:
EN: 4Developers LLC is located in United States.
SV: 4Developers LLC ligger i United States.
Note: We skip to verbalize some of the triples(e.g. predicates like "rdf:type" and "rdfs:label")
Command
and Answer
categories GF-to-SPARQL example("patents that mention X and Y")
Abstract syntax:
QShowConceptXY : Concept -> Concept -> Query ;
Concrete NL syntax(queries interface):
QShowConceptXY c1 c2 = mentionP (mkNP and_Conj c1 c2) ;
Concrete SPARQL syntax:
QShowConceptXY c1 c2 =
{s = "PREFIX pkm: <http://proton.semanticweb.org/protonkm#> $n
PREFIX psys: <http://proton.semanticweb.org/protonsys#> $n
CONSTRUCT { $n ?doc pkm:mentions ?x . $n ?doc pkm:mentions ?y } $n
WHERE { $n ?x psys:mainLabel " ++ c1.s ++". $n
?doc pkm:mentions ?x . $n ?y psys:mainLabel " ++ c2.s ++". $n
?doc pkm:mentions ?y . $n } " } ;
Table of Contents | t |
---|---|
Exposé | ESC |
Full screen slides | e |
Presenter View | p |
Source Files | s |
Slide Numbers | n |
Toggle screen blanking | b |
Show/hide slide context | c |
Notes | 2 |
Help | h |