Comments (5)
A remodelling of the Facade-X interpretation of PPTx was needed to extract hyperlinks. In the previous implementation, slides contained shapes as slots, where each shape had a single slot containing the text of the shape. This avoids "attaching" annotations (e.g. hyperlinks) to individual pieces of text (as the text is a single mass).
Therefore, a bit more structure was needed to extract the hyperlinks.
Here is the structure extracted from this file
[ rdf:type fx:root , xyz:Presentation ;
rdf:_1 [ rdf:type xyz:Slide ;
rdf:_1 [ rdf:type xyz:CENTERED_TITLE ;
rdf:_1 [ rdf:type xyz:Paragraph ;
rdf:_1 [ rdf:type xyz:TextRun ;
rdf:_1 [ rdf:type xyz:Text ;
rdf:_1 "This is a test presentation"
]
]
]
] ;
rdf:_2 [ rdf:type xyz:SUBTITLE ;
rdf:_1 [ rdf:type xyz:Paragraph ;
rdf:_1 [ rdf:type xyz:TextRun ;
rdf:_1 [ rdf:type xyz:Text ;
rdf:_1 "This is the subtitle"
]
]
]
]
] ;
rdf:_2 [ rdf:type xyz:Slide ;
rdf:_1 [ rdf:type xyz:TITLE ;
rdf:_1 [ rdf:type xyz:Paragraph ;
rdf:_1 [ rdf:type xyz:TextRun ;
rdf:_1 [ rdf:type xyz:Text ;
rdf:_1 "First slide"
]
]
]
] ;
rdf:_2 [ rdf:type xyz:CONTENT ;
rdf:_1 [ rdf:type xyz:Paragraph ;
rdf:_1 [ rdf:type xyz:TextRun ;
rdf:_1 [ rdf:type xyz:Text ;
rdf:_1 "Link"
] ;
rdf:_2 [ rdf:type xyz:Hyperlink ;
rdf:_1 "https://sparql-anything.cc/"
]
]
] ;
rdf:_2 [ rdf:type xyz:Paragraph ;
rdf:_1 [ rdf:type xyz:TextRun ;
rdf:_1 [ rdf:type xyz:Text ;
rdf:_1 "Bullet 2"
]
]
]
]
] ;
rdf:_3 [ rdf:type xyz:Slide ;
rdf:_1 [ rdf:type xyz:TITLE ;
rdf:_1 [ rdf:type xyz:Paragraph ;
rdf:_1 [ rdf:type xyz:TextRun ;
rdf:_1 [ rdf:type xyz:Text ;
rdf:_1 "Second "
]
] ;
rdf:_2 [ rdf:type xyz:TextRun ;
rdf:_1 [ rdf:type xyz:Text ;
rdf:_1 "slide"
]
]
]
] ;
rdf:_2 [ rdf:type xyz:CONTENT ;
rdf:_1 [ rdf:type xyz:Paragraph ;
rdf:_1 [ rdf:type xyz:TextRun ;
rdf:_1 [ rdf:type xyz:Text ;
rdf:_1 "Bullet 1"
]
]
] ;
rdf:_2 [ rdf:type xyz:Paragraph ;
rdf:_1 [ rdf:type xyz:TextRun ;
rdf:_1 [ rdf:type xyz:Text ;
rdf:_1 "Bullet 2"
]
]
]
]
]
] .
There is a deep nesting, I agree, but I don't see any other solution.
from sparql.anything.
@kvistgaard v1.0-DEV.1 has been released, so you can test the new features related to the #429
https://github.com/SPARQL-Anything/sparql.anything/releases/tag/v1.0-DEV.1
from sparql.anything.
Can you also include a link to the source pptx?
from sparql.anything.
from sparql.anything.
@luigi-asprino, when is a 1.0.0-RC planned? I guess that will be the first opportunity to test PPTX hyperlinks.
from sparql.anything.
Related Issues (20)
- Prepare v1.0-DEV
- Document how to extend SPARQL Anything by adding new Triplifiers HOT 1
- How to get comments from DOCX?
- Generate format page automatically HOT 5
- Rename bib module as bibliograpghy HOT 2
- Move Triplifier.getPropertyValues() to PropertyUtils class
- CodeQL action fails HOT 6
- Add SVG among XML extensions
- Wrong dependency sparql-anything-bib HOT 1
- Docker not working in branch v1.0-DEV HOT 5
- `fx:literal` should work for longer lang tags HOT 4
- How to capture piece of XML to a literal as is? HOT 11
- `whatwg:innerText` is duplicated several times HOT 2
- Update copyright year
- Update branches in workflows
- Skip tests requiring HTTP connections when offline
- Missing information in the RDF format page
- Remove format pages that has been renamed
- Repair broken links in formats/RDF.md
- Sponsoring the project through Patreon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparql.anything.