Submitted:
30 October 2024
Posted:
31 October 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
Structure of the Paper
2. Literature Review
2.1. Metadata Generation and Linked Data Representation
2.2. Automated Data Acquisition and Content Extraction
2.2.1. DOM-Based Approaches
2.2.2. AI-Driven Approaches
2.3. Challenges and Opportunities
3. Methodology
- Validate the results on the Google Rich Results Checker [24].
- Perform a word-by-word comparison of the original and generated texts.
- Extraction of News Articles: Gather news web pages containing the original JSON-LD object.
- Analyze/Remove JSON-LD: Remove the original JSON-LD object and save it externally for comparison.
- Generate & Inject JSON-LD: Use pattern mining to generate a new JSON-LD object and inject it into the original page to replace the original.
- Check JSON-LD: Validate the new page with the injected JSON-LD using the Rich Results Checker.
- Check the JSON-LD Content: Compare the content word by word to compute a similarity score between properties.
3.1. Algorithm 1: Extraction of News Articles
| Algorithm 1 ExtractNewsArticles |
|
3.2. Algorithm 2: Cleaning the Article Body
| Algorithm 2 CleanArticleBody |
|
3.3. Algorithm 3: Generation of JSON-LD
| Algorithm 3 GenerateJSONLD |
|
3.4. Algorithm 4: Validation of JSON-LD
| Algorithm 4 ValidateJSONLD |
|
4. Implementation


4.1. Data Extraction Layer
- Web Scraping Module: This module employs the Beautiful Soup library for HTML parsing and the requests library to fetch the web content from Google News articles.
- Data Storage: The extracted data is stored in a NoSQL database (MongoDB) to facilitate easy access and manipulation during subsequent analysis stages.
4.2. Transformation Layer
- Pattern Mining Algorithm: This algorithm utilizes a set of predefined rules to identify and extract the title and body of the news articles based on font sizes and element types.
- Data Cleaning Module: Implemented using the OpenAI API, this module cleans the extracted article body by removing irrelevant content, enhancing the quality of the information retrieved.
4.3. Loading Layer
- JSON-LD Generation: The cleaned and structured data is converted into a JSON-LD format, ensuring compliance with schema.org standards for linked data representation.
- Database Integration: The generated JSON-LD is stored back into the database for future retrieval and validation purposes.
4.4. Validation Layer
- Google Rich Results Checker Integration: This component automates the validation of the generated JSON-LD, verifying its structural integrity against Google’s standards.
- Similarity Comparison Module: This module employs the Jensen-Shannon Divergence metric to quantitatively assess the similarity between the original and generated JSON-LD content.
5. Experiment and Results
6. Impact Analysis
6.1. Technological Impact
6.2. Business Impact
6.3. Social Impact
7. Conclusions
Funding
Institutional Review Board Statement
Informed Consent Statement
References
- Yu, Liyang. Introduction to the semantic web and semantic web services. Chapman and Hall/CRC, 2007.
- Wang, Qun. Normalization and differentiation in Google News: a multi-method analysis of the world’s largest news aggregator. Diss. Rutgers The State University of New Jersey, School of Graduate Studies, 2020.
- Bizer, C.,Meusel, R., Primpeli, A., Brinkmann, A.: Web Data Commons - RDFa, Microdata Microformat Data Sets - Section 3.2 Extraction Results from the October 2022 Common Crawl Corpus. 2023. accessed on 2023-01-29. Retrieved from: http://webdatacommons.org/structureddata/index.html#toc4.
- Salem, Hamza, and Manuel Mazzara. "Pattern Matching-based scraping of news websites." Journal of Physics: Conference Series. Vol. 1694. No. 1. IOP Publishing, 2020. [CrossRef]
- Sporny, Manu, et al. "JSON-LD 1.0." W3C recommendation 16 (2014): 41.
- Berners-Lee, Tim, James Hendler, and Ora Lassila. "The semantic web." Scientific american 284.5 (2001): 34-43.
- Adida, Ben, et al. "RDFa in XHTML: Syntax and processing." Recommendation, W3C 7.41 (2008): 14.
- Chandrasekaran, Balakrishnan, John R. Josephson, and V. Richard Benjamins. "What are ontologies, and why do we need them?." IEEE Intelligent Systems and their applications 14.1 (1999): 20-26. [CrossRef]
- McKeown, Kathleen, et al. "Columbia multi-document summarization: Approach and evaluation." (2001).
- A. F. R. Rahman, H. Alam and R. Hartono. “Content Extraction from HTML Documents”. In 1st Int. Workshop on Web Document Analysis (WDA2001), 2001.
- Fumarola, F.; Weninger, T.; Barber, R.; et al.: Extracting General Lists from Web Documents: A Hybrid Approach. In Proceedings of the 24th International Conference on Industrial Engineering and Other Applications of Applied Intelligent Systems Conference on Modern Approaches in Applied Intelligence - Volume Part I. IEA/AIE’11. Berlin, Heidelberg: Springer-Verlag. 2011. ISBN 978-3-642-21821-7. pp. 285–294.
- Hong, J. L.; Siew, E.-G.; Egerton, S.: Information Extraction for Search Engines Using Fast Heuristic Techniques. Data Knowl. Eng.. vol. 69, no. 2. February 2010: pp. 169–196. ISSN 0169-023X. [CrossRef]
- Safi, W.; Maurel, F.; Routoure, J.-M.; et al.: A Hybrid Segmentation of Web Pages for Vibro-Tactile Access on Touch-Screen Devices. In 3rd Workshop on Vision and Language (VL 2014) associated to 25th International Conference on Computational Linguistics (COLING 2014). dublin, Ireland. Aug 2014. pp. 95 – 102.
- Lima, R.; Espinasse, B.; Oliveira, H.; et al.: Information Extraction from the Web: An Ontology-Based Method Using Inductive Logic Programming. In 2013 IEEE 25th International Conference on Tools with Artificial Intelligence. Nov 2013. ISSN 2375-0197. pp. 951–958. [CrossRef]
- Zheng, S.; Song, R.; Wen, J.-R.: Template-Independent News Extraction Based on Visual Consistency. In Proceedings of the 22nd National Conference on Artificial Intelligence - Volume 2. AAAI’07. AAAI Press. 2007. ISBN 9781579953232. pp. 1507–1512.
- Zhu, W.; Dai, S.; Song, Y.; et al.: Extracting news content with visual unit of web pages. In Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing (SNPD), 2015 16th IEEE/ACIS International Conference on. June 2015. pp. 1–5.
- Suhit Gupta, Gail Kaiser, David Neistadt, and Peter Grimm. DOM-based content extraction of HTML documents. In Proceedings of the 12th International Conference on World Wide Web, pages 207–214, 2003.
- Mehdi Mirzaaghaei and Ali Mesbah. DOM-based test adequacy criteria for web applications. In Proceedings of the 2014 International Symposium on Software Testing and Analysis, pages 71–81, 2014.
- Johannes Behr, Peter Eschler, Yvonne Jung, and Michael Zöllner. X3DOM: a DOM-based HTML5/X3D integration model. In Proceedings of the 14th International Conference on 3D Web Technology, pages 127–135, 2009.
- A. Milani Fard, M. Mirzaaghaei, and A. Mesbah, “Leveraging existing tests in automated test generation for web applications,” in Proceedings of the 29th ACM/IEEE International Conference on Automated Software Engineering, pp. 67–78, 2014.
- J. Xia, F. Xie, Y. Zhang, and C. Caulfield, “Artificial intelligence and data mining: algorithms and applications,” Abstract and Applied Analysis, vol. 2013, no. 1, pp. 524720, 2013. Hindawi Publishing Corporation.
- D. Menaga and S. Saravanan, “Application of artificial intelligence in the perspective of data mining,” in Artificial Intelligence in Data Mining, pp. 133–154, Elsevier, 2021.
- OpenAI, T. B. "Chatgpt: Optimizing language models for dialogue." OpenAI (2022).
- “Rich Results Test.” Google Search Console, Google, https://search.Google.com/test/rich-results.
- M. L. Menéndez, J. A. Pardo, L. Pardo, and M. C. Pardo, “The Jensen-Shannon divergence,” Journal of the Franklin Institute, vol. 334, no. 2, pp. 307–318, 1997. Elsevier. [CrossRef]
- Mitchell, Ryan. Web scraping with Python: Collecting more data from the modern web. " O’Reilly Media, Inc.", 2018.
- Patel, Jay M. "Web Scraping in Python Using Beautiful Soup Library." Getting Structured Data from the Internet. Apress, Berkeley, CA, 2020. 31-84.
- “Plagiarism Detector Software: Anti-Plagiarism Tools.” Copyleaks, 4 Oct. 2022, https://copyleaks.com/.
- N. Shadbolt, T. Berners-Lee, and W. Hall, “The Semantic Web Revisited,” IEEE Intelligent Systems, vol. 21, no. 3, pp. 96–101, 2006. [CrossRef]






| Website | Rich Results | Title Similarity | Article Body Similarity | Lang. |
|---|---|---|---|---|
| Skynewsarabia.com | Pass | >93% | >90% | AR |
| arabic.cnn.com | Pass | >93% | >90% | AR |
| youm7.com | Pass | >93% | >90% | AR |
| bbc.com | Pass | >93% | >90% | AR |
| cnn.com | Pass | >95% | >90% | EN |
| reuters.com | Pass | >95% | >90% | EN |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).