SlideShare uma empresa Scribd logo
1 de 20
Baixar para ler offline
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion




           Easily Editing and Browsing Complex OpenMath
                          Markup with SWiM
                                Mathematical User Interfaces 2008


                          Christoph Lange, Alberto González Palomo

                                     Jacobs University, Bremen, Germany
                             Universität des Saarlandes, Saarbrücken, Germany
                      KWARC – Knowledge Adaptation and Reasoning for Content


                                                June 27, 2008



Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008   1
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



OpenMath Content Dictionaries


 OpenMath: semantic markup language for math. formulæ and content
 dictionaries (CDs)
 CDs semi-formally define new mathematical symbols:
         informal description
         formal description in terms of other symbols
         optional: type declaration, human-readable notation
 Formula editors exist, . . .
         . . . and ways to make CDs readable for humans
         (www.openmath.org/cd/) . . .
         but no proper editors for CDs



Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008   2
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Why create or edit CDs?




         standard CDs exist; pick your favourite ones from
         www.openmath.org/cd/
         your favourite field of mathematics may not be covered (cf. geometry)
         or you want to have it more rigorously
         cf. James Davenport’s landau_in operator for f = O(n)




Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008   3
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Collaboration on CDs: The Good, the Bad, and the Ugly

         writing, structuring; also browsing, collaborating
         CDs reuse symbols from other CDs (link symbol occurrences to their
         definitions)
         use case: revising a notation of a symbol in a CD; one author revises,
         the other one tests
         The bad way: Notepad, send file to collaborator by e-mail
                       Manual transformation to XHTML+MathML, open
                       browser
         The ugly way: Emacs with nxml-mode, commit into shared
                       Subversion repository
                       Update, run make, open browser (Michael Kohlhase’s
                       favorite )
         The wiki way: interactive editing right in the browser ⇒ instant
                       feedback for both collaborators
Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008   4
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Debugging Notation Definitions

 Consider the symbol times in arith1.ocd:

<OMA>
  <OMS name="times" cd="arith1"/>                                      Possible renderings:
  <OMI>2</OMI>                                                         2 · x , 2 × x , or 2x
  <OMV name="x"/>                                                      (defined in arith1.ntn)
</OMA>

 Typical workflow:
         Change/fix/improve/enhance the notation definition (ND) for a
         symbol
         Check the appearance of a sample formula in a sample document


Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008   5
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



SWiM, a Semantic Wiki for Mathematics



         SWiM: semantic wiki + OMDoc. Added OpenMath and MathML 3
         notation definitions
         mmlproc/JOMDoc renderer (→ MKM talk “notations for living
         documents”)
         editing, import, export (exchange with external repositories, legacy
         editors)
         Try it at http://swim.kwarc.info, see more in the demo session!




Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008   6
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



SWiM, a Semantic Wiki for Mathematics




Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008   7
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Knowledge Representation in OpenMath

              CDs have metadata (e. g. review date) and contain symbol
                  definitions
        Symbols have
                              name
                              informal, natural-language description (authoritative)
                              metadata
                              mathematical properties: informal (CMP), formal
                              (FMP), examples
 FMPs and Examples contain mathematical formulæ
 Separate dictionary files with
         type signatures
         notation definitions (in a few minutes)
 for symbols.
Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008   8
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Knowledge Representation on the Semantic Web


         Ontologies: smarter, extensible, web-scalable metadata vocabularies
         RDF: graph with nodes and edges have types from ontologies, e. g.
         <christoph> foaf:knows <paul>.
 We have developed an ontology that models the structures of CDs
         semantics given by OpenMath spec
         more expressive than Relax NG XML schema
         e. g. for dependent CDs (URIref vs. CD):
         <CDUses>arith1 transc1</CDUses>
         reused existing vocabularies where appropriate (→ OpenMath 3)
         e. g. Dublin Core: om:Name→dc:identifier



Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008   9
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Knowledge Representation in SWiM


       small pages are more suitable for wiki collaboration
       page granularity: CD, symbol, CMP, FMP, example
       split imported CDs into these parts, preserve
       containment information by XInclude links, reassemble
       on export
       OpenMath 3: review units below CD granularity)
       extract RDF graph from OpenMath for a more
       networked, searchable, web-scalable representation
       exploit links for navigation, soon for editing, too
       represent formulæ shallowly (FMP/Example uses
       symbol)


Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008 10
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Editing

         SWiM uses the HTML WYSIWYG editor TinyMCE
         Great potential for more user-friendliness, but first need to get the
         basics running
         Make any (OpenMath) XML element editable as a table, e. g.
         <element xml:id="id" attr="value">...</element>:
          element id attr=value
          ...
         Not user-friendly for deeply nested structures
         Dedicated editing support for special aspects of the markup
                form-based metadata editor (e. g. CDName, CDDate)
                differently arranged tables in some cases:
                  notation
                  prototype rendering
                visual formula editor (next slides)

Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008 11
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



The Formula Editor



         visual OpenMath formula editor from Sentido environment integrated
         it into TinyMCE
         encode formulæ as HTML <span/> elements, editable in a “linear”
         ASCII/Unicode syntax
                supporting own syntax, but also popular CAS syntaxes
         pop-up window with linear input (undoable), OpenMath CD symbol
         tool palette, 2D MathML preview
         when done with editing, linear formula is parsed to OpenMath XML
         Sorry, we cannot easily display MathML inside TinyMCE




Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008 12
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



The Formula Editor




Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008 13
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



The Formula Editor




Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008 14
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Defining Notations for Symbols


         Notation definitions map patterns of semantic markup to fragments
         of presentation markup, apply rules recursively (MathML 3 extension
         → MKM talk)
                                       √
         e. g. @(arith1#root, arg, n) n arg (actually written in XML)
         link notation definition → symbol definition in RDF:
         <url/of/NotDef> omo:rendersSymbol <url/of/arith1/root>
         What if an author changes this?
            1   identify the change: XML diff
            2   identify documents affected by the change: query RDF graph for all
                resources using the symbol in a formula – and for all resources that
                xi:include the former



Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008 15
OpenMath CDs          SWiM         Knowledge Representation      Editing       Related Work        Outlook/Conclusion



Determining the Effect of Changing a Notation Definition

                        1    SELECT DISTINCT ?page WHERE {
                        2      <changed-ntn-def> omo:rendersSymbol ?sym .
                        3      { ?page omo:usesSymbol ?sym } UNION
                        4      { ?exOrFMP omo:usesSymbol ?sym .
                        5        { ?page omo:contains ?exOrFMP } UNION
                        6        { ?page omo:contains ?symDef .
                        7          ?symDef omo:contains ?exOrFMP } } }




                                                         fmp
                                                         fmp
                                                          fmp
                    renders-     usesSymbol (3,4)                    contains (5,7)
                   Symbol (2)                                                                 contains (6)
  notDef                          sym                                       symDef
                                                                            symDef
                                                                             symDef                          cd
                                                                                                             cd
                                                                                                              cd
                                  usesSymbol (3,4)
                                                                     contains (5,7)
                                                          ex
                                                          ex
                                                           ex


Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM         June 27, 2008 16
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Related Work
  ProofWiki: wiki with Coq proof assistant integrated. Content either
                                     A
               completely formal or LTEX, SWiM aims at the full formality
               scale between that (→ OMDoc)
      OMPE: OpenMath Presentation Editor from ActiveMath, visual
               editor for notation definitions (add this to our roadmap!).
               No integrated authoring/browsing environment ⇒ no
               immediate debugging
     PlatΩ: TEXmacs with semantic markup. Parsing notations from
               natural language (not a focus of SWiM), efficiently reacting
               to notation changes.
 Visual editors: two examples of extending HTMLArea (former TinyMCE
               competitor) with Presentation MathML
               ASciencePad: Tiddly“Wiki” plus a translation from linear
                             math syntax to Presentation MathML
                     WIRIS: 2D visual editor (Java applet)
                             OpenMath editor exists, but not integrated
Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008 17
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Future Work (OpenMath)




         Cover full OpenMath object spec in linear syntax; particularly
         CDBase!
         Deploy SWiM as an editor for the OpenMath CDs on
         www.openmath.org
         Integrate upcoming OpenMath 3 extensions (in ontology and GUI)




Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008 18
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Future Work (Use Cases)




         So far one notation per symbol. The mmlproc/JOMDoc renderer can
         do more (e. g. user’s preferred notation)
         Browsing CDs and SPARQL queries are nice, but formula search? –
         Integrate MathWebSearch! (→ MKM demo)
         Splitting CDs on import works, but users also want refactoring within
         SWiM.




Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008 19
OpenMath CDs          SWiM         Knowledge Representation      Editing      Related Work      Outlook/Conclusion



Conclusion




 SWiM facilitates editing OpenMath CDs
         . . . by integrating a visual formula editor
         . . . by immediately re-rendering documents affected by notational
         changes
 How would you like to edit your CDs?




Lange/González Palomo (Jacobs/Saarland Univ.)         Editing and Browsing OpenMath with SWiM     June 27, 2008 20

Mais conteúdo relacionado

Mais de Christoph Lange

OSCOSS: Opening Scholarly Communication in Social Sciences
OSCOSS: Opening Scholarly Communication in Social SciencesOSCOSS: Opening Scholarly Communication in Social Sciences
OSCOSS: Opening Scholarly Communication in Social SciencesChristoph Lange
 
WDAqua ITN – Answering Questions using Web Data
WDAqua ITN – Answering Questions using Web DataWDAqua ITN – Answering Questions using Web Data
WDAqua ITN – Answering Questions using Web DataChristoph Lange
 
Machine Support for Interacting with Scientific Publications Improving Inform...
Machine Support for Interacting with Scientific Publications Improving Inform...Machine Support for Interacting with Scientific Publications Improving Inform...
Machine Support for Interacting with Scientific Publications Improving Inform...Christoph Lange
 
Interlinking Data and Knowledge in Enterprises, Research and Society with Lin...
Interlinking Data and Knowledge in Enterprises, Research and Society with Lin...Interlinking Data and Knowledge in Enterprises, Research and Society with Lin...
Interlinking Data and Knowledge in Enterprises, Research and Society with Lin...Christoph Lange
 
Linked Open (Geo)Data and the Distributed Ontology Language – a perfect match
Linked Open (Geo)Data and the Distributed Ontology Language – a perfect matchLinked Open (Geo)Data and the Distributed Ontology Language – a perfect match
Linked Open (Geo)Data and the Distributed Ontology Language – a perfect matchChristoph Lange
 
Linking Big Data to Rich Process Descriptions
Linking Big Data to Rich Process DescriptionsLinking Big Data to Rich Process Descriptions
Linking Big Data to Rich Process DescriptionsChristoph Lange
 
The Distributed Ontology Language (DOL): Use Cases, Syntax, and Extensibility
The Distributed Ontology Language (DOL): Use Cases, Syntax, and ExtensibilityThe Distributed Ontology Language (DOL): Use Cases, Syntax, and Extensibility
The Distributed Ontology Language (DOL): Use Cases, Syntax, and ExtensibilityChristoph Lange
 
Bringing Mathematics To the Web of Data: the Case of the Mathematics Subject ...
Bringing Mathematics To the Web of Data: the Case of the Mathematics Subject ...Bringing Mathematics To the Web of Data: the Case of the Mathematics Subject ...
Bringing Mathematics To the Web of Data: the Case of the Mathematics Subject ...Christoph Lange
 
Semantic Web Technology: The Key to Making Scientific Information Systems Social
Semantic Web Technology: The Key to Making Scientific Information Systems SocialSemantic Web Technology: The Key to Making Scientific Information Systems Social
Semantic Web Technology: The Key to Making Scientific Information Systems SocialChristoph Lange
 
TCP – zuverlässiger Ende-zu-Ende-Datenstrom
TCP – zuverlässiger Ende-zu-Ende-DatenstromTCP – zuverlässiger Ende-zu-Ende-Datenstrom
TCP – zuverlässiger Ende-zu-Ende-DatenstromChristoph Lange
 
Making Heterogeneous Ontologies Interoperable Through Standardisation
Making Heterogeneous Ontologies Interoperable Through StandardisationMaking Heterogeneous Ontologies Interoperable Through Standardisation
Making Heterogeneous Ontologies Interoperable Through StandardisationChristoph Lange
 
Previewing OWL Changes and Refactorings Using a Flexible XML Database
Previewing OWL Changes and Refactorings Using a Flexible XML DatabasePreviewing OWL Changes and Refactorings Using a Flexible XML Database
Previewing OWL Changes and Refactorings Using a Flexible XML DatabaseChristoph Lange
 
JOBAD – Interactive Mathematical Documents
JOBAD – Interactive Mathematical DocumentsJOBAD – Interactive Mathematical Documents
JOBAD – Interactive Mathematical DocumentsChristoph Lange
 
Publishing Math Lecture Notes as Linked Data
Publishing Math Lecture Notes as Linked DataPublishing Math Lecture Notes as Linked Data
Publishing Math Lecture Notes as Linked DataChristoph Lange
 
sTeX+ – a System for Flexible Formalization of Linked Data
sTeX+ – a System for Flexible Formalization of Linked DatasTeX+ – a System for Flexible Formalization of Linked Data
sTeX+ – a System for Flexible Formalization of Linked DataChristoph Lange
 
Krextor – An Extensible Framework for Contributing Content Math to the Web of...
Krextor – An Extensible Framework for Contributing Content Math to the Web of...Krextor – An Extensible Framework for Contributing Content Math to the Web of...
Krextor – An Extensible Framework for Contributing Content Math to the Web of...Christoph Lange
 
Mathematical Semantics of Statistical Data
Mathematical Semantics of Statistical DataMathematical Semantics of Statistical Data
Mathematical Semantics of Statistical DataChristoph Lange
 
Enabling Collaboration on Semiformal Mathematical Knowledge by Semantic Web I...
Enabling Collaboration on Semiformal Mathematical Knowledge by Semantic Web I...Enabling Collaboration on Semiformal Mathematical Knowledge by Semantic Web I...
Enabling Collaboration on Semiformal Mathematical Knowledge by Semantic Web I...Christoph Lange
 
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...Christoph Lange
 
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...Christoph Lange
 

Mais de Christoph Lange (20)

OSCOSS: Opening Scholarly Communication in Social Sciences
OSCOSS: Opening Scholarly Communication in Social SciencesOSCOSS: Opening Scholarly Communication in Social Sciences
OSCOSS: Opening Scholarly Communication in Social Sciences
 
WDAqua ITN – Answering Questions using Web Data
WDAqua ITN – Answering Questions using Web DataWDAqua ITN – Answering Questions using Web Data
WDAqua ITN – Answering Questions using Web Data
 
Machine Support for Interacting with Scientific Publications Improving Inform...
Machine Support for Interacting with Scientific Publications Improving Inform...Machine Support for Interacting with Scientific Publications Improving Inform...
Machine Support for Interacting with Scientific Publications Improving Inform...
 
Interlinking Data and Knowledge in Enterprises, Research and Society with Lin...
Interlinking Data and Knowledge in Enterprises, Research and Society with Lin...Interlinking Data and Knowledge in Enterprises, Research and Society with Lin...
Interlinking Data and Knowledge in Enterprises, Research and Society with Lin...
 
Linked Open (Geo)Data and the Distributed Ontology Language – a perfect match
Linked Open (Geo)Data and the Distributed Ontology Language – a perfect matchLinked Open (Geo)Data and the Distributed Ontology Language – a perfect match
Linked Open (Geo)Data and the Distributed Ontology Language – a perfect match
 
Linking Big Data to Rich Process Descriptions
Linking Big Data to Rich Process DescriptionsLinking Big Data to Rich Process Descriptions
Linking Big Data to Rich Process Descriptions
 
The Distributed Ontology Language (DOL): Use Cases, Syntax, and Extensibility
The Distributed Ontology Language (DOL): Use Cases, Syntax, and ExtensibilityThe Distributed Ontology Language (DOL): Use Cases, Syntax, and Extensibility
The Distributed Ontology Language (DOL): Use Cases, Syntax, and Extensibility
 
Bringing Mathematics To the Web of Data: the Case of the Mathematics Subject ...
Bringing Mathematics To the Web of Data: the Case of the Mathematics Subject ...Bringing Mathematics To the Web of Data: the Case of the Mathematics Subject ...
Bringing Mathematics To the Web of Data: the Case of the Mathematics Subject ...
 
Semantic Web Technology: The Key to Making Scientific Information Systems Social
Semantic Web Technology: The Key to Making Scientific Information Systems SocialSemantic Web Technology: The Key to Making Scientific Information Systems Social
Semantic Web Technology: The Key to Making Scientific Information Systems Social
 
TCP – zuverlässiger Ende-zu-Ende-Datenstrom
TCP – zuverlässiger Ende-zu-Ende-DatenstromTCP – zuverlässiger Ende-zu-Ende-Datenstrom
TCP – zuverlässiger Ende-zu-Ende-Datenstrom
 
Making Heterogeneous Ontologies Interoperable Through Standardisation
Making Heterogeneous Ontologies Interoperable Through StandardisationMaking Heterogeneous Ontologies Interoperable Through Standardisation
Making Heterogeneous Ontologies Interoperable Through Standardisation
 
Previewing OWL Changes and Refactorings Using a Flexible XML Database
Previewing OWL Changes and Refactorings Using a Flexible XML DatabasePreviewing OWL Changes and Refactorings Using a Flexible XML Database
Previewing OWL Changes and Refactorings Using a Flexible XML Database
 
JOBAD – Interactive Mathematical Documents
JOBAD – Interactive Mathematical DocumentsJOBAD – Interactive Mathematical Documents
JOBAD – Interactive Mathematical Documents
 
Publishing Math Lecture Notes as Linked Data
Publishing Math Lecture Notes as Linked DataPublishing Math Lecture Notes as Linked Data
Publishing Math Lecture Notes as Linked Data
 
sTeX+ – a System for Flexible Formalization of Linked Data
sTeX+ – a System for Flexible Formalization of Linked DatasTeX+ – a System for Flexible Formalization of Linked Data
sTeX+ – a System for Flexible Formalization of Linked Data
 
Krextor – An Extensible Framework for Contributing Content Math to the Web of...
Krextor – An Extensible Framework for Contributing Content Math to the Web of...Krextor – An Extensible Framework for Contributing Content Math to the Web of...
Krextor – An Extensible Framework for Contributing Content Math to the Web of...
 
Mathematical Semantics of Statistical Data
Mathematical Semantics of Statistical DataMathematical Semantics of Statistical Data
Mathematical Semantics of Statistical Data
 
Enabling Collaboration on Semiformal Mathematical Knowledge by Semantic Web I...
Enabling Collaboration on Semiformal Mathematical Knowledge by Semantic Web I...Enabling Collaboration on Semiformal Mathematical Knowledge by Semantic Web I...
Enabling Collaboration on Semiformal Mathematical Knowledge by Semantic Web I...
 
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...
 
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...
Ontology Integration and Interoperability (OntoIOp) – Part 1: The Distributed...
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 

Último (20)

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 

Easily Editing and Browsing Complex OpenMath Markup with SWiM

  • 1. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Easily Editing and Browsing Complex OpenMath Markup with SWiM Mathematical User Interfaces 2008 Christoph Lange, Alberto González Palomo Jacobs University, Bremen, Germany Universität des Saarlandes, Saarbrücken, Germany KWARC – Knowledge Adaptation and Reasoning for Content June 27, 2008 Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 1
  • 2. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion OpenMath Content Dictionaries OpenMath: semantic markup language for math. formulæ and content dictionaries (CDs) CDs semi-formally define new mathematical symbols: informal description formal description in terms of other symbols optional: type declaration, human-readable notation Formula editors exist, . . . . . . and ways to make CDs readable for humans (www.openmath.org/cd/) . . . but no proper editors for CDs Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 2
  • 3. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Why create or edit CDs? standard CDs exist; pick your favourite ones from www.openmath.org/cd/ your favourite field of mathematics may not be covered (cf. geometry) or you want to have it more rigorously cf. James Davenport’s landau_in operator for f = O(n) Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 3
  • 4. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Collaboration on CDs: The Good, the Bad, and the Ugly writing, structuring; also browsing, collaborating CDs reuse symbols from other CDs (link symbol occurrences to their definitions) use case: revising a notation of a symbol in a CD; one author revises, the other one tests The bad way: Notepad, send file to collaborator by e-mail Manual transformation to XHTML+MathML, open browser The ugly way: Emacs with nxml-mode, commit into shared Subversion repository Update, run make, open browser (Michael Kohlhase’s favorite ) The wiki way: interactive editing right in the browser ⇒ instant feedback for both collaborators Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 4
  • 5. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Debugging Notation Definitions Consider the symbol times in arith1.ocd: <OMA> <OMS name="times" cd="arith1"/> Possible renderings: <OMI>2</OMI> 2 · x , 2 × x , or 2x <OMV name="x"/> (defined in arith1.ntn) </OMA> Typical workflow: Change/fix/improve/enhance the notation definition (ND) for a symbol Check the appearance of a sample formula in a sample document Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 5
  • 6. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion SWiM, a Semantic Wiki for Mathematics SWiM: semantic wiki + OMDoc. Added OpenMath and MathML 3 notation definitions mmlproc/JOMDoc renderer (→ MKM talk “notations for living documents”) editing, import, export (exchange with external repositories, legacy editors) Try it at http://swim.kwarc.info, see more in the demo session! Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 6
  • 7. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion SWiM, a Semantic Wiki for Mathematics Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 7
  • 8. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Knowledge Representation in OpenMath CDs have metadata (e. g. review date) and contain symbol definitions Symbols have name informal, natural-language description (authoritative) metadata mathematical properties: informal (CMP), formal (FMP), examples FMPs and Examples contain mathematical formulæ Separate dictionary files with type signatures notation definitions (in a few minutes) for symbols. Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 8
  • 9. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Knowledge Representation on the Semantic Web Ontologies: smarter, extensible, web-scalable metadata vocabularies RDF: graph with nodes and edges have types from ontologies, e. g. <christoph> foaf:knows <paul>. We have developed an ontology that models the structures of CDs semantics given by OpenMath spec more expressive than Relax NG XML schema e. g. for dependent CDs (URIref vs. CD): <CDUses>arith1 transc1</CDUses> reused existing vocabularies where appropriate (→ OpenMath 3) e. g. Dublin Core: om:Name→dc:identifier Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 9
  • 10. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Knowledge Representation in SWiM small pages are more suitable for wiki collaboration page granularity: CD, symbol, CMP, FMP, example split imported CDs into these parts, preserve containment information by XInclude links, reassemble on export OpenMath 3: review units below CD granularity) extract RDF graph from OpenMath for a more networked, searchable, web-scalable representation exploit links for navigation, soon for editing, too represent formulæ shallowly (FMP/Example uses symbol) Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 10
  • 11. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Editing SWiM uses the HTML WYSIWYG editor TinyMCE Great potential for more user-friendliness, but first need to get the basics running Make any (OpenMath) XML element editable as a table, e. g. <element xml:id="id" attr="value">...</element>: element id attr=value ... Not user-friendly for deeply nested structures Dedicated editing support for special aspects of the markup form-based metadata editor (e. g. CDName, CDDate) differently arranged tables in some cases: notation prototype rendering visual formula editor (next slides) Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 11
  • 12. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion The Formula Editor visual OpenMath formula editor from Sentido environment integrated it into TinyMCE encode formulæ as HTML <span/> elements, editable in a “linear” ASCII/Unicode syntax supporting own syntax, but also popular CAS syntaxes pop-up window with linear input (undoable), OpenMath CD symbol tool palette, 2D MathML preview when done with editing, linear formula is parsed to OpenMath XML Sorry, we cannot easily display MathML inside TinyMCE Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 12
  • 13. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion The Formula Editor Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 13
  • 14. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion The Formula Editor Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 14
  • 15. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Defining Notations for Symbols Notation definitions map patterns of semantic markup to fragments of presentation markup, apply rules recursively (MathML 3 extension → MKM talk) √ e. g. @(arith1#root, arg, n) n arg (actually written in XML) link notation definition → symbol definition in RDF: <url/of/NotDef> omo:rendersSymbol <url/of/arith1/root> What if an author changes this? 1 identify the change: XML diff 2 identify documents affected by the change: query RDF graph for all resources using the symbol in a formula – and for all resources that xi:include the former Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 15
  • 16. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Determining the Effect of Changing a Notation Definition 1 SELECT DISTINCT ?page WHERE { 2 <changed-ntn-def> omo:rendersSymbol ?sym . 3 { ?page omo:usesSymbol ?sym } UNION 4 { ?exOrFMP omo:usesSymbol ?sym . 5 { ?page omo:contains ?exOrFMP } UNION 6 { ?page omo:contains ?symDef . 7 ?symDef omo:contains ?exOrFMP } } } fmp fmp fmp renders- usesSymbol (3,4) contains (5,7) Symbol (2) contains (6) notDef sym symDef symDef symDef cd cd cd usesSymbol (3,4) contains (5,7) ex ex ex Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 16
  • 17. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Related Work ProofWiki: wiki with Coq proof assistant integrated. Content either A completely formal or LTEX, SWiM aims at the full formality scale between that (→ OMDoc) OMPE: OpenMath Presentation Editor from ActiveMath, visual editor for notation definitions (add this to our roadmap!). No integrated authoring/browsing environment ⇒ no immediate debugging PlatΩ: TEXmacs with semantic markup. Parsing notations from natural language (not a focus of SWiM), efficiently reacting to notation changes. Visual editors: two examples of extending HTMLArea (former TinyMCE competitor) with Presentation MathML ASciencePad: Tiddly“Wiki” plus a translation from linear math syntax to Presentation MathML WIRIS: 2D visual editor (Java applet) OpenMath editor exists, but not integrated Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 17
  • 18. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Future Work (OpenMath) Cover full OpenMath object spec in linear syntax; particularly CDBase! Deploy SWiM as an editor for the OpenMath CDs on www.openmath.org Integrate upcoming OpenMath 3 extensions (in ontology and GUI) Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 18
  • 19. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Future Work (Use Cases) So far one notation per symbol. The mmlproc/JOMDoc renderer can do more (e. g. user’s preferred notation) Browsing CDs and SPARQL queries are nice, but formula search? – Integrate MathWebSearch! (→ MKM demo) Splitting CDs on import works, but users also want refactoring within SWiM. Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 19
  • 20. OpenMath CDs SWiM Knowledge Representation Editing Related Work Outlook/Conclusion Conclusion SWiM facilitates editing OpenMath CDs . . . by integrating a visual formula editor . . . by immediately re-rendering documents affected by notational changes How would you like to edit your CDs? Lange/González Palomo (Jacobs/Saarland Univ.) Editing and Browsing OpenMath with SWiM June 27, 2008 20