L2: Structured queries (english)

Preview:

Citation preview

i-viewsUniversityPart02:Structuredqueries

StructuredquerieswithiviewsStructuredquerieswith i-views

PatrickCloshen

Software-Engineer

intelligentviews gmbh

StructuredquerieswithiviewsStructuredquerieswith i-views

Ifyouhaveproblemswiththesound:- Checktheaudiosettingsinmenuitem „Communicate“- Joinalternativelytelephoneanddial-innumber

from fixed network (Free-phone-number):• 000-800-100-8171 for India• 0800-894627 for Switzerland

from mobilephone• +41434569564 only for Switzerland

Event-Number:848363956;Event-Password:hello

StructuredquerieswithiviewsStructuredquerieswith i-views

Ifyouhaveproblemswiththesound:- Checktheaudiosettingsinmenuitem „Communicate“- Joinalternativelytelephoneanddial-innumber

from fixed network (Free-phone-number):• 000-800-100-8171 for India• 0800-894627 for Switzerland

from mobilephone• +41434569564 only for Switzerland

Event-Number:848363956;Event-Password:hello

StructuredquerieswithiviewsStructuredquerieswith i-views

Structuredqueries

1. Use

2. Structure

3. Theconditionsindetail3.1PropertyConditionsandScheme

3.2Identificationofobjects

3.3Typesofinquirystructurestothenetwork

StructuredquerieswithiviewsStructuredquerieswith i-views

1UseofStructuredqueries

• Generalinformation• Targetedfindingofsemanticobjectsbasedontheirattributevaluesandtherelationships

betweentheobjects(patternsearch)

• Searchqueriesconsistofasetofconditions

• Utilizationofinheritanceofboththeobjecttypesandcharacteristictypes

Example:InwhichdepartmentdocoworkersworkwhowereborninSouth-West-England?

StructuredquerieswithiviewsStructuredquerieswith i-views

1UseofStructuredqueries

• Structuredqueries canbeusedfor• Search

• Rightssystem

• Trigger

• Editorconfigurations

• Viewconfigurations

• Javascriptcalls

• Attributestoatopic

StructuredquerieswithiviewsStructuredquerieswith i-views

Project

HeaderNew

nameBold

Controlling

Alternative - object

General

Project

Persons

External persons

Internal persons

Search -object

Note

Task index-tab

Structurequery

Search - object Search

Query

Parametername

Script

Type

Valuation

Lettering

Order

Parametername

ScriptValuation

Type

Lettering

Order

Lettering

ConfigurationnamePanel

Script for lettering

Script for window

Script for windowtitleScript for visibility

Script for tablecon

Sub-configuration

Choose

Structurequery Structurequery

Project

ProjectID

ProjectID (Parameter not

Structurequery

Structurequery

StructuredquerieswithiviewsStructuredquerieswith i-views

1. UseofStructuredqueries

Advantages• Creation/understandingofthestructured queryispossiblealsowithoutanyprogramming

knowledge

• Visualfeedbackoncontradictionsformodellingthestructured query

Warning ordynamicschemainformationinthesearch

Edit condition

Albums of English rock groups

StructuredquerieswithiviewsStructuredquerieswith i-views

1. UseofStructuredqueries

Advantages• Thestructured queryisadaptedtotheschemachangesoritisnotedonthesideeffects.

Deletionofatermisnotpossible,sinceastructured queryintherightssystemusesthisterm

Delete following objects?

StructuredquerieswithiviewsStructuredquerieswith i-views

2BuildingStructuredqueries:Themusicexamples network

StructuredquerieswithiviewsStructuredquerieswith i-views

2. BuildingStructuredqueries:

"AlbumsofEnglishrock/bluesrockgroupsfromthe60sand70s"

StructuredquerieswithiviewsStructuredquerieswith i-views

2. BuildingStructuredqueries

Withinthestructuredqueries,youcanformulateveryindirectconditions:thestructureofsemanticgraphdatabasescanbetraversedbetweentheelements.Youcanfindartistsorbandsthathavewrittensongsoncertaintopicsandwhosetitlewecannotnamespecifically.

StructuredquerieswithiviewsStructuredquerieswith i-views

2. BuildingStructuredqueries

Creatinginyourworkfile

FOLDERStructured queries - Searches

Structured queries - Searches

StructuredquerieswithiviewsStructuredquerieswith i-views

2. BuildingStructuredqueries

Specifythesemanticobjecttobesearched

Albums of English rock groups from the 60s and 70s

StructuredquerieswithiviewsStructuredquerieswith i-views

2. BuildingStructuredqueries

Addcharacteristicconditionoranotherschematonavigateoverthesemanticnetwork

Albums of English rock groups from the 60s and 70s

StructuredquerieswithiviewsStructuredquerieswith i-views

3.1Characteristicconditionsandscheme

3.2Identificationofobjects

3.3Typesofinquirystructuresonthenetwork

3. Theconditionsindetail

StructuredquerieswithiviewsStructuredquerieswith i-views

3.1Characteristicconditionsandscheme

• Attributecondition

• Relationscondition

Addacharacteristiccondition

StructuredquerieswithiviewsStructuredquerieswith i-views

3.1Characteristicconditionsandscheme

• Attributecondition

• Relationscondition

Addacharacteristiccondition

Albums of English rock groups from the 60s and 70s

StructuredquerieswithiviewsStructuredquerieswith i-views

3.1Characteristicconditionsandscheme

Variantsofcharacteristicconditions

• Cardinality incharacteristics• (Characteristic<=/>n=timesavailable)

Cardinality

StructuredquerieswithiviewsStructuredquerieswith i-views

3.1Characteristicconditionsandscheme

Variantsofcharacteristicconditions

• repetitions (transitivity)ofrelations• Relativentomtimesinarow

• withintermediateobjectivesintherelationpathandconditionsatintermediateobjectives

StructuredquerieswithiviewsStructuredquerieswith i-views

3.1Characteristicconditionsandscheme

Variantsofcharacteristicconditions

• Repetitions (transitivity)ofrelations• Ex.:

peoplewhoareknownthroughacoworkerare"morequalified"acquaintancesthanpeopleknowninothermode

StructuredquerieswithiviewsStructuredquerieswith i-views

3.1Characteristicconditionsandscheme

Variantsofcharacteristicconditions

• Repetitions (transitivity)ofrelations

StructuredquerieswithiviewsStructuredquerieswith i-views

3.1Characteristicconditionsandscheme

Variantsofcharacteristicconditions

• Forrelationstypeconditions• Hasarelationgoal limitsthepermissibletargetobjectsofthedesired

relations

• Ispropertyof limitsthepermissiblesourceobjectsofthedesiredrelations

StructuredquerieswithiviewsStructuredquerieswith i-views

3.1Characteristicconditionsandscheme

• Addatypecondition:Severalalternativetypes(ORlink)

• Objectsorsubtypes• withorwithoutinheritance

Scheme:Multiplesemanticobjects

Album and title

StructuredquerieswithiviewsStructuredquerieswith i-views

3.2Identificationofobjects

WithIdentification objectscanbedefinedaccuratelywithdifferentmethods

Secureagainstrenamingandhomonyms

Albums of English rock groups

StructuredquerieswithiviewsStructuredquerieswith i-views

3.2Identificationofobjects

• Objectsdefinition allowsarestrictiononobjectswhosenameattributecorrespondstothedesiredvalue.Alsowildcardsareallowed.

Albums of English rock groups

StructuredquerieswithiviewsStructuredquerieswith i-views

3.2Identificationofobjects

• Accessparameter

• Fortrigger/right/Viewconfig,inordertobeabletoaccessthecontextobjects

• Possibilitytoincludethecurrentuserinthestructured query

Acessrightparametmer user

StructuredquerieswithiviewsStructuredquerieswith i-views

3.2Identificationofobjects

• Script enablestheformulationofaconditionasaresultofpreviouslyformulatedandregisteredscriptsexample:"query.findElements({name:)"Susanne",lastname:"Meier"})"

• SemanticelementwithID narrowsobjects,whoseinternalIDcorrespondstothedesiredvalue

• Infolder allowsrestrictiontoobjectsthatareinapreviouslycreatedandregisteredobjectcollection

StructuredquerieswithiviewsStructuredquerieswith i-views

Underrequeststructure...

• Addalternative• Identifier

• Helpsearch

• Reference

• Newlocalmacro

• structured querycomponent(registered)

• Query

3.3Typesofstructuredqueriesonthenetwork

Querystructure

Albums of English rock groups

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Standardsearch:AlbumswithsongscomposedbyJohnLennonand sungbyPaulMcCartney

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Standardsearch:AlbumswithsongscomposedbyPaulMcCartneyorJohnLennon

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Alternativesearch:AlbumswithsongsbyJohnLennonor TheStones

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Createanalternativecondition

Alternative condition

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Createanalternativecondition: Addalternative

Alternative condition

Alternatives

Alternatives

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

• Conditionscanbeprovidedwithafreelyselectableidentifier

• Canbeusedasinputandoutputelements,E.g.ViewConfig,facetedsearchandwithinmacrosasmacroargument

• Asearchmodulewithadditionalconditionscanbecontinuedusingtheidentifierfunction.

• Ifseveralconditionsareequippedwiththesameidentifier,theconditionsaddedtotheidentifierwillbealwaysaddedtoallconditionswiththisidentifier

Identifier

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Identifier

Band

Genreofmusicgroup

Has Member

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Utilitysearch• Withutilitysearch youcansetupdependentstructured queries• Utilitysearchesmustbelinkedviareferencestothemainsearchforthem

totakeeffect

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Utilitysearch

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

SwappingconditionsinUtilitysearches• Converttohelpsearch movesatypeofconditionwithallitschild

conditionstothepositionoftherootnodeofanewly-createdhelpsearchandlinkthemtothemainsearchthroughareference

• Useasmainsearch movestheselectedtypeofconditionwithallitschildconditionstothepositionoftherootnodeofthemainsearchandturnsitsparentconditionsintoahelpsearchwhichreferencesthenewmainsearch

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

SwappingconditionsinUtilitysearches

Reference

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Structered query macro (local)• Localmacroscanbefittedtoastructured queryasasearchcomponentand

reusedseveraltimesinthisquery

• Theycanbetestedindependentlywithoutthecontextoftheirstructuredquery

• Theyareavailableonlyforthisquery,ifthequeryisdeleted,themacroisalsodeleted

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Structuredquery macro (local)

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Structuredquery macro (local)

StructuredquerieswithiviewsStructuredquerieswith i-views

3.3Typesofstructuredqueriesonthenetwork

Structuredquery macro (registered)• Ifmacrosfordifferentqueriesarepermanentlyavailable,theymustbe

formulatedasaseparatequeryandthenregistered.

FOLDER

Structuralqueries

All hardrock-songs from USA All hardrock-songs..

StructuredquerieswithiviewsStructuredquerieswith i-views

Usingparameters

- Latebindingofattributevalues

- AlsofortechnicalIDorsimplesearch- forJavaScript:query.findElements({name:"Marion",lastname:"Halft"})

- Parameterscanbepassedwithmultiplevaluesorcanbedeactivated- "query.findElements({name:)["Marion","Patrick"],lastname:undefined})

- Partsofastructured querycanbe"deactivated"iftheparameterisnotset

StructuredquerieswithiviewsStructuredquerieswith i-views

Homework

Compose astructured query to complete the following tasks:1. Findallalbums that are notcomposed by TheBeatles2. Findalbums whose dates of release are inside the same

week3. Findallpersons who created music and who stem

specifically from England‘s north-westernregion

Sendyour questions to:contact-webinar@i-views.com

Consultationhours:EveryWednesday

Thank you for visitingi-viewsUniversity

Recommended