Download - Interfacing with questions: The unpredictability of live ...users.sussex.ac.uk/.../81...liveinterface_queries.pdf · Interfacing with questions: The unpredictability of live queries

Transcript
Page 1: Interfacing with questions: The unpredictability of live ...users.sussex.ac.uk/.../81...liveinterface_queries.pdf · Interfacing with questions: The unpredictability of live queries

Interfacingwithquestions:Theunpredictabilityoflivequeriesintheworkof

‘ThousandQuestions’WinnieSoon

AarhusUniversity,Aarhus,[email protected]

Abstract.ThisarticlediscussesanartisticprojectentitledIfIwroteyoualoveletterwouldyouwriteback(andthousandsofotherquestions):apieceofsoftwarethatutilizesTwitterwebAPItoqueryquestions,drawingunpredictablequestionsinreal-timefromthedistributeddatabaseofTwitter.Itundergoestheprocessofdataqueryandmanipulation:requestingdataandreceivingresponsesinastandardizedformatthroughmathematicaloperators.Thisarticlediscussestheroleofoperatorsinwhichtheyconstitutetheunpredictabilityofqueries.Byunderstandingtheoperationalandculturallogicoflivequeries,thearticleexplorestheliveandunpredictableprocessofqueriesexecution.

Keywords:queries,API,unpredictability,operators

IntroductionLoveletters(1952),allegedlythefirstdigitalliteraryartworkwasbuiltusingtheFerrantiMarkIcomputerbyChristopherStracheyattheUniversityofManchester.ItisacomputerprogramthatemployedAlanTuring’searlydevelopedalgorithmforgeneratingrandomnumbers.Togetherwithrandomchoicesofsentencesstructures,thelovelettersweregeneratedthroughacombinationofgrammaticalrules1thatincludedadjectives,nouns,adverbsandverbs.Theresultingloveletter,asNoahWardrip-Fruinargues(2011,306),isanunpredictablemanifestationoftwohiddenelements:dataandprocesses.Wardrip-Fruinisnotinterestedintheresultedlettersassemioticandpoeticrepresentations,butmoreinthegenerativeprocessesthemselves(ibid.,306).Thisarticleexaminesthenotionofunpredictabilityinherentinexamplessuchasthis.IttakesitscuefromhowWardrip-Fruinanalyzescomputationalprocessesthatmovebeyondthemeaningoftheirrepresentationaloutput.MycollaborativeartisticprojectIfIwroteyoualoveletterwouldyouwriteback(andthousandofotherquestions)2(fromhereonreferredtoasThousandQuestions)isinspiredbythemultiplevariationsgeneratedthroughtheapplicationofsimplerules.Insteadofgeneratingloveletters,theworkThousandQuestionstakes‘questions’fromtheInternetastextand‘voices’them.

QueryinThousandQuestionsThousandQuestionsdrewthousandsofquestionsbasedonthekeysymbol—aquestionmark—fromtheTwitternetwork,translatingquestionsintextformtospeech.Theprojectemploysquery,followingthestandardandofficialTwitterAPI3format(using‘RESTSearchAPI’)thatoffersprogrammableaccesstosearchandextractTwitterdata.

Queryismostcommonlyunderstoodasalanguage.StructuredQueryLanguage(SQL)isoneofthemostpopularquerylanguages.Formainstreamrelationaldatabases,suchasOracleandMySQL,SQLisusedtocommunicatewitha

1NoahWardrip-FruindrawsreferencefromStrachey’sworktoindicatethegrammarlogicas:“My—(adj.)—(noun)—(adv.)—(verb)your—(adj.)—(noun)”(Wardrip-Fruin,2011,309).2Theprojectwasdevelopedin2012byWinnieSoonandHelenPritchard,seetheartwork’sdocumentation:http://siusoon.net/home/?p=9003See:https://dev.twitter.com/rest/reference/get/search/tweets

Page 2: Interfacing with questions: The unpredictability of live ...users.sussex.ac.uk/.../81...liveinterface_queries.pdf · Interfacing with questions: The unpredictability of live queries

database.SQLcanbeexecuted,meaningthatitprovidesinstructionsforstoring,querying,andmanipulatingdata.AshokK.ChandraandDavidHareldefinethis:“[a]querylanguageisawell-definedlinguistictool,theexpressionsofwhichcorrespondtorequestsonemightwanttomakeadatabase.Witheachrequest,orquery,thereisassociatedaresponse,oranswer”(1980,156).Therefore,theexecutionofaqueryisatwo-waycommunication,botharequestandaresponse.

Theuseofthetermlivequeriesinthisarticledoesnotsimplyfocusonanydatabasemodelsortheirtechnicalstructuresbehind.Livequeriesincludeallkindsofwaysthatinquiredatafromadatabase/structureddocumentthroughatechnologicalanddistributednetwork.Itisastructuredformat,allowingdataexchangebetweensites,platformsandapplicationsinreal-time.Datacanbespecificallyselected,filtered,generated,sentandcollectedfromanenormousdatabankthatisoperatedcontinuouslyandacrosscontinents.TakingTwitterasanexample,itusesarelationaldatabasesuchasMySQLandgraduallymovestoaNoSQLdatabase,suchasCassandraandGizzard,becauseNoSQLcanhandlemassivedataandsupportbetterforatime-criticalquery(Metz2014).Technicallyspeaking,aquerycaninterfacewitharelationaldatabasesystemorNoSQLdatabasesystem.

RunningawebApplicationProgrammingInterface(API)isregardedasoneofthequeryforms.ItiswidelyunderstoodthatawebAPIisaninterface.Itisatechnicalstandardandspecificationthatisusedforcommunicationbetweenapplicationsorprograms(Cramer&Fuller,2008).Inmyproject,ThousandQuestionsforinstance,theuseofTwitterAPIisaninterfacebetweentheartworkandtheTwitterplatform.

Withthe“risingvaluesofAPIs”andwithmanybigandsmallcompaniesprovidingAPIsthatextractvalueoutoftheavailabledata,itisclaimedthatofferinganAPIcreates“newbusinessopportunities”,enhances“existingproducts,systems,andoperations”,anddevelops“innovativebusinessmodels”(Mason&Mckendrick2015).Inparallel,thecritiquesofAPIsinjournalarticleshavebeenincreasingseeninacademia.Forexample,togetherwithCarolinGerllitz,AnneHelmondanalyzesthe“likeseconomy”inFacebookviatheirFacebookAPI(2013).Helmond,inanotherpublication,arguesthatthepoliticsofdataflowsinwebplatformshavebeentransformedfromopenstandardstoproprietaryAPIs(2015,22).Likewise,TainaBuchersuggeststhatAPIsexhibitcontrolandfreedomthroughherexaminationoftheTwitterAPI(2012,2013).InadditionaltothewidelyavailablewebAPIsmentionedsofar,DavidBerrydiscusseshowtheuseofspecializedandprivateAPIsexposesomeoftherelationsbetweencompanieslikeMicrosoftandthepoliticaleconomyofsoftwaredevelopment(2011,70-1).AninvestigationoftheseAPIssuggeststhattheyexist“asdatasourcesandasobjectsofstudythatcanbehistoricized,analyzed,critique,etc.”(Helmond2012,n.p).Inotherwords,studyingAPIqueriesenablesabetterunderstandingofdifferentplatformsandthepoliticsofdatacirculationassociatedwithcontemporarycomputationalculture.

ByusingtheTwitterAPI,thequeryinThousandQuestionswaswrittenwithvariouscriteriaandconditionsofdataextractionaspartofthelargerqueryrequest.Thisincludescontentsearchthatcomprisesofaquestionmark(?)andwheretweetsmustbeinEnglishlanguage.Inaddition,thereturnedqueryoutputonlyincudes50results(tweets)perrequestandtheyareregardedas‘recenttweets’bytheprogram.Aquerystatement,likethis,consistsofmultipleparameters.

ForthelatestdevelopmentofThousandQuestions(2016),thenewlyaddedvisualcomponentincludesthereturnedquestionsandascreendisplaysonlyonecharacterperframeuntilalltheremainingcharactersareshown(SeeFigure1).UsingApple’stexttospeechfeature,anAustralianwoman’svoiceisheard,speakingall50tweetsoneaftertheother.Theprogramrepeatedlyposesquestions,alongsideotherparameters,toTwitter’ssocialmediaplatformoncetheartworkfinishesdisplayingandspeakingallthependingtweets.Therefore,theexperienceofsuchlivequeriesresultsfrominteractionsbetweendifferentmachines4-anongoingrequestandresponsethatisbothoperational,culturalandsocial.Theworkmakesapparentqueryprocessingbyshowingthelatencyandthetemporalaspectofgettingquestionedtweetsandspeakingunansweredquestionsthroughanaudio-visualexperience.Theprojectismeanttobeanendlessprocessofqueryprocessing,inwhichtemporalityisexpressedthroughthedisplayoftheunderscoresymbol

4TheuseofmachinesherereferstothemachinethatrunsThousandQuestions,Twitter’smachines,andalsothosesocialmachinesthatincontactwiththeTwitterplatform.

Page 3: Interfacing with questions: The unpredictability of live ...users.sussex.ac.uk/.../81...liveinterface_queries.pdf · Interfacing with questions: The unpredictability of live queries

(_),indicatingthewaitingoftheprogramforthenextqueryexecution.Thisexperienceofwaitingisunpredictableintwodimensions:indicatingboththetimeofqueryprocessingandthecontentof“unansweredqueries”(ELC32016).

Figure1.AscreengrabofthevisualpartofThousandQuestions

MathematicaloperatorsTheunpredictabilityofquerycanbeexaminedthroughcomputerexecution:whatitdoesandmeanswhenaqueryisbeingexecuted?MyanalysishereisorientedtowardsamoresystemicandmaterialistapproachtounderstandtheoperationalaspectofhowqueriesinteractwiththeTwitterplatformusingtheexampleofThousandQuestions.

Atthemateriallevel,aqueryemploysset-likeoperationstolinkortogroupdatatogether.Inthisway,thequeryisaboutbringingtheirrelationtothefore.IdiscusshowdatabringthingsintorelationusingthecaseoflivequeriesinThousandQuestions.Theoperationismainlyfocusedondataselectionandretrieval,butnotondataupdateordeletionthroughcode.Suchoperationsandrelationsarenecessarytounderstandhowdataisreturneddifferently,andhencefurtherunfoldingtheunpredictabilityofdatarelationsthroughlivequeries.

Aqueryisbasedonvariousmathematicaloperatorsthatspecifyarequest.Figure2-5showstherequestedquery(fromThousandQuestionstoTwitter)andtheexcerptofthereturnedquery(fromTwittertoThousandQuestions)thatwasexecutedonMarch16,2016at10.45a.m.Inaddition,Figure4-5showsthetwoqueriesthathaderasedthesemanticaspectofdatasoastoemphasizetheoperatorsthatareinvolvedinqueryexecution.

Toexplain,mostofthefrequentoperatorsfoundare‘=’,‘+’and‘-‘,withtheoccasionaloperator‘&’inthereturnedquery.The‘=’operatorreferstothelistofspecifiedwordsthatareusedtoconstructthequery.InFigure2,thelistismorethanjustaquestionmark(thisisindicatedas%3F–theURLencodingcharacter5),butacombinationofwordsandcharactersthatrequestTwittertofilterspecificwordsandcharactersout6fromitsdatabasesearch.‘-RT’indicatestheremovalofretweets.Inotherwords,themathematicaloperatorsplayanimportantroletomakeinclusionandexclusionofdata,identifyingwhatdatashouldbegroupedtogetherornot.Byhavingthemandatoryparameterof‘query’or‘q’(asindicatedinFigure2-3)andthe‘=’operator,parameters,operatorsandlistofvalues(thewordsandcharacters)constituteaninstructiontoTwitter:thelistofwordsandcharactersbelongtothe‘query’parameter.

Additionally,byhavingthe‘+’and‘-‘operators,complexityincreasesbyaddingmorethanonewordorcharactersfordataprocessing.Theoperator‘+’referstoaddingdifferentwordswhiletheoperator‘-’referstoremovingcertain

5See:https://en.wikipedia.org/wiki/Percent-encoding6TheblurredpartsofFigure3and4arethewordsaboutracialslurs,incitementsofracismandsexualviolence.IntheworkofThousandQuestions,wehavefilteredoutalistofthesewords.

Page 4: Interfacing with questions: The unpredictability of live ...users.sussex.ac.uk/.../81...liveinterface_queries.pdf · Interfacing with questions: The unpredictability of live queries

words.Thetwoseemtocontradicteachotherbutfunctionquitedifferently.Theoperator‘+’isalsousedtoseparatedifferentwords,whiletheoperator‘-‘isusedinsteadtosignalthefunctionofremovalsuchthatTwitterknowswhatarethewordsthatithastopayattention.TheseareallcomplyingwiththequeryoperatorsthatarespecifiedintheTwitterspecification7.Toputsimply,aquery,suchas‘?+hello+-world’meanstosearchfortweetswithaquestionmarkandtheword‘hello’,butremovetheword‘world’.Thequeryparameterandthecorrespondingvaluesarefixed,meaningthatthequeryisexecutedwiththesamerequirementandrequestlogiceverytime.Althoughtheconditionisthesame,theresultofthequeryexecutioneventsisunpredictable-resultsaredifferentandaresubjectedtowhatdataisavailableatboththecurrentmomentandoverthepastsevendays8.

Figure2.ArequestedqueryinThousandQuestions

Figure3.AnexcerptofthereturnedqueryinThousandQuestions

Figure4TheerasureofthedatacontentoftherequestedqueryinFigure1

Figure5.TheerasureofthedatacontentofthereturnedqueryinFigure2

ThereareotherlogicsthatalsoconstitutetheindexingalgorithmandsortingofTwitter’sdatabase.AlthoughTwitterdoesnotpublishthisinformationoritsimplementationlogic,itisimportantbecausetheoperatorscontributetotherelationandgroupingofdataforalmosteverylogic.Forexample,thepreviouslymentionedcondition–thepastsevendaysoftherecenttweet,the‘day’criteriaispartofthealgorithmiclogicthatfiltersoutwhichdataisstoredbeyondsevendays.Toimplement‘thepastsevendays’,themachinehasnoideawhatthepastsevendaysmeanslogicallyandmathematicallyunlessaninstructionstatestosubtractthecurrentdate.Suchsubtracteddatadefinesthescopeofthetime,therebythedateparameteriswithinaspecificrangeforqueryprocessingonTwitter.Assuch,othermathematicaloperatorsmightalsousespecifiedcriteria.Acaseinpointisrelationaloperators,including‘==’,‘>’,‘<’,‘!=’,‘>=’,‘<=’thatstandfor“equality”,“greaterthan”,“lessthan”,“inequality”,“greaterthanorequalto”,“lessthanorequalto”,respectively.Theyarecalledrelationaloperators9becausethereisalwaysarelation—acomparison—betweentwoentities(Meysenburg2014,44-5).Byusingdifferentoperators,thealgorithmisabletoact—exclude,specifyandsortdata—inavarietyofways,bringingtherelationtothefore,andhencetodirectlyimpactwhatdatatoprocess.Therefore,livequeriescompriseofoperatorsthatact,inwhichadatarelationisestablishedthroughqueryexecution.

7Seehttps://dev.twitter.com/rest/public/search8AccordingtoTwitterwebAPIspecification,TwitterwillreturncurrentandthepastsevendaysdatabyusingRESTAPItosearchforspecificdata.Seehttps://dev.twitter.com/rest/public/search.9Seehttps://en.wikipedia.org/wiki/Relational_operator

Page 5: Interfacing with questions: The unpredictability of live ...users.sussex.ac.uk/.../81...liveinterface_queries.pdf · Interfacing with questions: The unpredictability of live queries

Thecombinationofdataandtheirrelationsareonlyspecifictoaparticularqueryataparticulartime.ThenextexecutionproducesdifferentdatarelationshipsduetothedynamicsoftheTwitterplatform.Theresultsoflivequeriesthusaresomethingthatcannotrepeatedlybegenerated.

Indeed,thelogicofthe‘pastsevendays’isjustpartofmanyotherblackboxedcriteriathatremainunknowntothepublic.Butforanycriteriainaquery,usingdifferentoperatorsfordataselectionareinevitable.Moreimportantly,sameoperatorsbringdifferentdataintorelationforeveryqueryexecutionasinthecaseofThousandQuestions.Whilerunningthesoftware,thesamequeryisexecutedtofetchnewdatathatmatchesthestatedcriteria.Thus,theoutputdataispresentedasjustasnapshotoftheTwitterdatabase.Althoughthequeryexecutionisdeterministicforeverycomputeriteration,thereisa“constantinjection”ofnewdataintotheTwitterdatabasethatchangesthesystemdynamics(Hayles1990,159-60).

N.KatherineHaylesobservesthatexpansionofinformationisincreasinglycommonincontemporaryculturewhereinformationisinterwovenwithtechnologiesandsociallandscapes(Hayles,1990,xiii).BydrawinguponRobertShaw,Haylesdiscussesachaoticmodelinwhichdataisaddedfromexternalinputsas“information”.Inphysicalsystems,suchexternalinputscouldbethoughtofheat–somethingthatproduces“randomfluctuation”(ibid.,159-169).InlivequeriesinTwitter,tweetscanbeunderstoodas“randomfluctuations”too,inwhichfluctuations/eventsexistatthe“microscopic”levelthatleadsto“macroscopicchaos”(ibid.,160).Addingupallthemicroscopicevents—by“constantinjectionofnewinformation”—intothemacroscopicsystem,suchamplifyingfluctuationsreconfiguretheprocessingofdata,resultinginthemacroscopicchaosofoutputdata,inwhichthe“chaoticcelebratesunpredictability,seeingitasasourceofnewinformation”(Hayles1991,8).

Oneoftheimportantconceptsaboutachaoticsystemisscaling,yetretainingthesamepropertiesatalllevels.Fractalgeometryinmathematics,forexample,demonstratesthecomplexrelationshipbetweenmicroscopicpartsandthewhole,sharingthesamealgorithmsthatgeneratefractals.The“complexformscharacterizedbymultipleorinfinitelevelsofself-similarity”(Hayles1990,288).Thisscalingleveldemonstratestheincrementaldifferencethat“shiftsthefocustocomplexirregularforms”(ibid.,210).Eachlevelisinter-relatedthattogethershapetheform.

Consideringhowlivequeriesareconceivedintermsoffractalgeometry,eachiterationofqueryexecutionsharesthesamedeterministicproperties.Operatorsbringdatatogetherbyrestrictingandspecifyingcriteria;hence,anewsetofreturneddatawouldformanewrelation.Suchanewrelationcanbeunderstoodbothfromasystemandculturalperspectives.Yetscalingincontemporarycomputationalculturedoesnotmeanexactlythesameasfractalgeometryinphysicalscience,butrathertoexpandandtakeintotheconsiderationoftheworldonhowitisrepresentedatmultiplescales.AsHaylestooexplains,theworld“isrichinunpredictableevolutions,fullofcomplexformsandturbulentflows,characterizedbynonlinearrelationsbetweencauseandeffects,andfracturedintomultiple-lengthscales”(1999,8).Thetemporalrelationofdataistheresultofcontemporarycomputationalculture,whichisdynamicallychangingandunpredictable.Suchatemporalrelationisderivedfromasetofdeterministicoperatorsthatgeneraterelationsinbothtechnicalandculturalsenses.Livequeriesarenotonlyobservedinartisticpracticesofcourse,butalsoinmanydailysituations,suchassearchingthingsontheInternet.Therelationistemporalbecauseeveryexecutiongeneratesadifferentsetofdatafromitsdatabasethatisbeingupdatedanddataisbeingstored,andthatissubjectedtothereal-timeandcontemporaryconditions.Inphysicalscience,fractalgeometryforexample,weunderstoodtherelationshipbetweenchaosandunpredictabilitywheresimpledeterministicsystemscanpossiblyproduceunpredictableresults.

Bydrawinguponthenotionofmacroscopicchaos,Iherebyfurtherextendthenotionofunpredictabilitybydrawingattentiontotheagencyofoperatorsthatproduceunpredictablerelationsasoutputdata.Insummary,operatorsactupon,andbeyond,achaoticsystemthatincludestheprocessofspecifying,sortingandexcludingdata.Furthermore,executingqueriesrequiretheoperatorsthatbringdataintoatemporalrelationthatsharesimilarfluctuations.Iarguethatquerygeneratesatemporalrelationinthecontextoflivequeriesexecution.Alltheselecteddatameetcertainpre-programmedcriteriabutbroughttogetherinamutatingrelationthatentailsdeterministicbutalsounpredictablemattersforeveryqueryexecution.

Page 6: Interfacing with questions: The unpredictability of live ...users.sussex.ac.uk/.../81...liveinterface_queries.pdf · Interfacing with questions: The unpredictability of live queries

NotesTheartworkThousandQuestionswasacollaborationwithHelenPritchard.ItwasfirstexhibitedaspartoftheMicrowaveInternationalNewMediaFestivalinHongKong(2012),aspartofDigitalFutures,attheVictoriaandAlbertMuseum(2013),presentedintheresearchworkshopArtisticResearchatKunsthalAarhus(2015),andmostrecentlypublishedintheElectronicLiteratureCollection,Vol.3(2016).Thewebsiteoftheworkcanbefoundathttp://siusoon.net/home/?p=900.

ReferencesBerry,David.M.2011.ThephilosophyofsoftwareCodeandmediationinthedigitalage.Basingstoke:PalgraveMacmillan.Bucher,Taina.2012.Programmedsociality:Asoftwarestudiesperspectiveonsocialnetworkingsites.(PhD),UniversityofOslo,Oslo.http://www.scribd.com/doc/148539178/Bucher-Ph-D-diss-downloadBucher,Taina.2013.ObjectsofIntenseFeeling:ThecaseoftheTwitterAPI.ComputationalCulture(3).http://computationalculture.net/article/objects-of-intense-feeling-the-case-of-the-twitter-apiChandra,A.K.,&Harel,D.1980.ComputableQueriesforRelationalDataBases.JournalofComputerandSystemSciences,21(2).Cramer,Florian.,&Fuller,Matthew.2008.Interface.InM.Fuller(Ed.),SoftwareStudies\alexicon:TheMITPress

ELC3.“thousandsofotherquestions.”ElectronicLiteratureCollectionVolume3.http://collection.eliterature.org/3/work.html?work=if-I-wrote-you-a-love-letter(accesedMay12,2016)

Gerlitz,C.,&Helmond,A.2013.“Thelikeeconomy:Socialbuttonsandthedata-intensiveweb”.NewMedia&Society,15(8):1348-1365.Hayles,N.Katherine.1990.Chaosbound:orderlydisorderincontemporaryliteratureandscience.Ithaca,N.Y.:CornellUniversityPress.Hayles,N.Katherine.1991.Chaosandorder:complexdynamicsinliteratureandscience.Chicago;London:UniversityofChicagoPress.Helmond,Anne.“DigitalMethodsWinterschool2012:APIs-VariationsandChange.”AnneHelmond.http://www.annehelmond.nl/2012/02/14/digital-methods-winterschool-2012-apis-variations-and-change/(accesedMay12,2016)Helmond,Anne.2015.TheWebasPlatform:DataFlowsinSocialMedia.(PhD),UniversiteitvanAmsterdam,Amsterdam.http://www.annehelmond.nl/wordpress/wp-content/uploads//2015/08/Helmond_WebAsPlatform.pdfMason,RossandMckendrickJoe.2015.“TheRisingValueofAPIs.”MuleSoft.http://attensa.com/the-rising-value-of-information/(accessedFebruary21,2016)

Metz,Cade."ThisIsWhatYouBuildtoJuggle6,000TweetsaSecond."WIREDBusiness.http://www.wired.com/2014/04/twitter-manhattan/(accessedMay12,2016)Meysenburg,Mark.2014.IntroductiontoProgrammingUsingProcessing,SecondEdition.Crete:lulu.com.

Page 7: Interfacing with questions: The unpredictability of live ...users.sussex.ac.uk/.../81...liveinterface_queries.pdf · Interfacing with questions: The unpredictability of live queries

Wardrip-Fruin,Noah.2011.DigitalMediaArchaeology:InterpretingComputationalProcesses.InE.Huhtamo&J.Parikka(Eds.),MediaArchaeology:Approches,Applications,andImplications(pp.302-322):UniversityofCaliforniaPress.