| 37 | |
| 38 | == Testing == |
| 39 | |
| 40 | The file system observer creates NOPs of the observed file operations and passes them to the (hopefully running!) User Observation Hub. |
| 41 | |
| 42 | Please keep in mind, that ALL file operations are observed and passed. That means: not only the file operations explicitly invoked by the user but also file operations done by the system or by applications are processed. |
| 43 | In other words, if you configure to observe the whole hard disk (e.g. {{{C:\}}}) then you will get really A LOT of NOPs. For example, Mozilla Thunderbird creates and modifies really A LOT of files when running! |
| 44 | |
| 45 | Test this: |
| 46 | |
| 47 | * Create a new text file |
| 48 | * Rename it to {{{NewTestDocument.txt}}} |
| 49 | |
| 50 | What happens is, that Windows creates a file named {{{Neu%20Textdokument.txt}}} (german Windows XP). |
| 51 | After renaming the file (by you) it seems, that the file system observer recognizes an additional {{{FileSave}}} operation. |
| 52 | |
| 53 | Altogether this results in the following three NOPs being sent to the User Observation Hub: |
| 54 | {{{ |
| 55 | <rdf:RDF |
| 56 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
| 57 | xmlns:nop="http://ontologies.opendfki.de/repos/ontologies/userobs/nop#"> |
| 58 | <nop:CreateFile rdf:about="urn:nop:1213964516125_de.dfki.km.filesysobservation.WindowsFileSystemObserver@1b9658e8"> |
| 59 | <nop:operation_file> |
| 60 | <nop:File rdf:about="file:/C:/Dokumente%20und%20Einstellungen/schwarz/Eigene%20Dateien/Neu%20Textdokument.txt"/> |
| 61 | </nop:operation_file> |
| 62 | <nop:timestamp rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime" |
| 63 | >2008-06-20T14:21:56.125+02:00</nop:timestamp> |
| 64 | </nop:CreateFile> |
| 65 | </rdf:RDF> |
| 66 | |
| 67 | |
| 68 | <rdf:RDF |
| 69 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
| 70 | xmlns:nop="http://ontologies.opendfki.de/repos/ontologies/userobs/nop#"> |
| 71 | <nop:RenameFile rdf:about="urn:nop:1213964521890_de.dfki.km.filesysobservation.WindowsFileSystemObserver@1b9658e9"> |
| 72 | <nop:newPath> |
| 73 | <nop:File rdf:about="file:/C:/Dokumente%20und%20Einstellungen/schwarz/Eigene%20Dateien/NewTestDocument.txt"/> |
| 74 | </nop:newPath> |
| 75 | <nop:operation_file> |
| 76 | <nop:File rdf:about="file:/C:/Dokumente%20und%20Einstellungen/schwarz/Eigene%20Dateien/Neu%20Textdokument.txt"/> |
| 77 | </nop:operation_file> |
| 78 | <nop:timestamp rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime" |
| 79 | >2008-06-20T14:22:01.890+02:00</nop:timestamp> |
| 80 | </nop:RenameFile> |
| 81 | </rdf:RDF> |
| 82 | |
| 83 | |
| 84 | <rdf:RDF |
| 85 | xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
| 86 | xmlns:nop="http://ontologies.opendfki.de/repos/ontologies/userobs/nop#"> |
| 87 | <nop:SaveFile rdf:about="urn:nop:1213964524062_de.dfki.km.filesysobservation.WindowsFileSystemObserver@1b9658e10"> |
| 88 | <nop:operation_file> |
| 89 | <nop:File rdf:about="file:/C:/Dokumente%20und%20Einstellungen/schwarz/Eigene%20Dateien/NewTestDocument.txt"/> |
| 90 | </nop:operation_file> |
| 91 | <nop:timestamp rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime" |
| 92 | >2008-06-20T14:22:04.062+02:00</nop:timestamp> |
| 93 | </nop:SaveFile> |
| 94 | </rdf:RDF> |
| 95 | }}} |