Advertisement
Aleso1

Global Data Projects - Structured Data

Oct 18th, 2024
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="application/ld+json">
  2. {
  3.   "@context": "https://schema.org/",
  4.   "@type": "CreativeWork",
  5.   "name": "Sustainable Energy Solutions", // el campo de title
  6.   "dateCreated": "2024-10-01", // campo date
  7.   "image": "https://example.com/images/sustainable-energy.jpg", // el campo de imagen principal dentro del schema
  8.   "description": "This project explores innovative solutions for sustainable energy in urban environments. It focuses on reducing carbon emissions and promoting renewable energy sources.", // el campo de description
  9.   "author": {
  10.     "@type": "Person", // el campo de author no debería distinguir entre "teacher" o "student", solo volcar los datos. Lo complejo viene de que si seleccionamos  "teacher" podemos añadir un dato global teacher.
  11.     "name": "Jane Smith", // el nombre
  12.     "role": "Student" // esto sí puede venir del checkbox al que hago mención más arriba
  13.   },
  14.   "url": "https://example.com/projects/sustainable-energy-solutions", // la url del project
  15.   "about": {
  16.     "@type": "EducationalOccupationalProgram",
  17.     "name": "Environmental Science" // esto se rellena con el campo de asignatura
  18.   }
  19. }
  20. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement