Posts

Showing posts from August, 2020

Structured data meaning

Google uses structured data such as RDFa, Microdata or JSON-LD to understand the contents of the page. RDFa is based on the RDF and HTML5 extension. JOSN-LD can be created from the same RDF Turtle. Learn RDF Turtle to create structured data for SEO. RDFa 1 (Resource Description Framework in Attributes) is attribute-based, for example, a , href in the HTML/XHTML. RDFa does not affect the HTML code which appears in the HTML. If you violate General structured data guidelines 2 ; as a result, your page ranked lower, therefore, it is important to know how to use structured data properly. You can use Google Rich Result test 3 to test and verify your page. Valid structured data can be eligible to visible in graphical search results. RDFa can have the number of vocabularies (as I show in this blog), but currently, Google support only schema.org 4 . ⚠️ Currently google permits only to use the schema.org vocabulary for the structured data. Google has recommended to use JSON-LD. Turtle is...

Apache Jena to learn RDF and SPARQL

RDF is one of the semantic web technology as well as the foundation for Turtle, N-Triples including JSON-LD. SPARQL is the query language for RDF. Use Apache Jena tools to learn RDF. For example, if you see the web page, that is human readable, because the end-user is human. However, there are search engines who choose the page on behalf of the consumer. Therefore, a search engine is a machine who wants to read the web page metadata. There should be well-structured data in the web page to be understood by the search engines by semantic parsing. GitHub Introduction to RDF Triples of the Data Model RDF family Embedding Turtle in HTML Some of the machine-readable metadata are: meta tag Microsdta Microformats RDFa JSON-LD It is necessary to know where the Resource Description Framework(RDF) 1 and SPARQL fit in the semantic web 2 . The semantic web is Web of data. RDF provides a foundation for publishing and linking data of all OWL 3 , SKOS, RDFS 4 and so on. If t...

JSF and RichFaces

Image
Recently, I got a project to work on JSF RichFaces 1 . RichFaces project reached end-of-life in June 2016. Thanks to Java backward compatibility I managed to run the RichFaces application on TomEE 7 using Intellij Idea as IDE. Run the following maven archytype in your command prompt as explained in the JBoss Community guide 2 : mvn archetype:generate -DarchetypeGroupId=org.richfaces.archetypes -DarchetypeArtifactId=richfaces-archetype-simpleapp -DarchetypeVersion=4.5.17.Final -DgroupId=au.com.blogspot.ojitha.jsf.ex1 -DartifactId=JSFEx1 Import the project into IntelliJ IDEA (I am using Ultimate 2020.2) Download and install TomEE 3 7.0.81: nothing more than unzip. As shown in the following screenshot, you have to configure TomEE First, open the configuration configure TomEE After configuring the TomEE home directory, goto the deployment tab and add the exploded project because development is easy: changes reflected without redeployment. Add exploded web project to TomE...