Coder Social home page Coder Social logo

akarakoc / mystream Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 18.05 MB

Social Media Platform for City Life.

License: MIT License

Python 10.25% JavaScript 44.24% CSS 16.05% HTML 8.35% Java 1.12% Less 9.52% SCSS 10.47%
w3c webannotation activitystreams social-network django

mystream's Introduction

License Issues Contributors Commits Sİze



Welcome to the project main page!

We will update here as the project goes on

Stay tuned and follow the Wiki!!

mystream's People

Contributors

akarakoc avatar mateskarayol avatar tutkubayri avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mystream's Issues

Mockup designs

We will create mockups to understand whether our understandigs meet the expectations or not.

Fixing properties of Annotation in json-ld

Hello @uskudarli ,

We prepare a sample json-ld structure in order to save annotation.

Based on the W3C standards, we have to define a list of properties, but I could not clearly understand the required value types for the properties on json-ld.

"textAnno" :  {
    "id": "http://example.org/anno1",
    "type": ["Annotation"],
    "motivation": ["tagging", "commenting"],
    "annotatedBy": {
      "id": "http://example.org/agent1",
      "type": "Text",
      "name": "A. Person",
      "nick": "agent1"
    },
    "body": [
      {
        "type": "Text",
        "related": "http://dbpedia.org/resource/London"
      },
      {
        "type": "Text",
        "value": "One of my favorite cities",
        "format": "text/plain",
        "language": "en"
      }
    ],
    "target": [{
      "id": "http://example.org/sptarget1",
      "type": "Text",
      "source": "http://example.org/source1",
      "selector": {
        "id": "http://example.org/selector1",
        "type": "Text",
        "start": 4096,
        "end": 4104
      }
    }]
  }

Have some questions based on the w3c documentation.

Q1- Should we store class names in Type parameter ? May these class names custom defined classes in our project ? Should we provide a web IRI for them ?

Q2 - Will these be changed for type in each property ie. type of annotation, type of annotatedBy ? Should we limit class names for each property on backend?

Q4 - How should we interpret the explation below ? It is quoted from w3c documentation. I try to look at each parameter of each property ( id of annotation is different than id of body ).

Is it nullable or not ? Is is variable or list ?
format
Property
The format of the Web Resource's content.
The Body or Target should have exactly 1 format associated with it, but may have 0 or more.
The value of the property should be the media-type of the format, following the [rfc6838] specification.

Q5 - How could we set value to id properties ? These should be IRI value.

I annotate a "cat" word with an image on the web.
Target would be like below.

"target": [{
      "id": "???????", ------------------- May it be Url locating the word "cat" ? 
      "type": "Text",
      "source": "???",------------------- May it be  same with id value ?
      "selector": {
        "id": "???",----------------------- I think I could use predefined selector class name ?
        "type": "Text",
        "start": 4096,
        "end": 4104
      }
    }]

Q6 - Is there any difference between storing id property as "id" and "@id" ? This changes for each property of json-ld and stated differently in different samples.

These are the questions arising during development.

fyi : @akarakoc and @tutkubayri

Regards,

Melike,

Software Requirement Specification Review

Software requirements and mockups would be reviewed and enhanced based on the feedbacks from last week.
More detailed version of the mockups ( previous screen and last screen parts will be prepared ).

Creating Requirements.txt

Requirements.txt will be created and committed and updated for each new library added in the project and installed in project environment.

Report Post

Post will be reported to the community owners

Activity Stream Structure

I searched about django.actstream but it uses a library called "django.utils.six" and it is not supported in Django 3.

Adsız

I found an alternative way that has these steps:

  • Creating a table that has an integer field as primary key and a JSON field.
  • In backend, in every action like create, join, follow and likewise will save to the table that is mentioned above by using W3C structure of activity stream.

Adsız

Is it correct to follow this way? If not which way I can follow to create activity streams?

Research on Wikidata

Wikidata will be used in the project and its need to be make a research about it!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.